From owner-freebsd-bugs@FreeBSD.ORG Thu Aug 1 23:00:01 2013 Return-Path: Delivered-To: freebsd-bugs@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id A004883A for ; Thu, 1 Aug 2013 23:00:01 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 8CB202FBB for ; Thu, 1 Aug 2013 23:00:01 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.7/8.14.7) with ESMTP id r71N01aj000934 for ; Thu, 1 Aug 2013 23:00:01 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.7/8.14.7/Submit) id r71N012a000933; Thu, 1 Aug 2013 23:00:01 GMT (envelope-from gnats) Date: Thu, 1 Aug 2013 23:00:01 GMT Message-Id: <201308012300.r71N012a000933@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org Cc: From: Andrey Chernov Subject: Re: misc/180990: bsdgrep segfaults when pattern file contains many lines X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: Andrey Chernov List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 01 Aug 2013 23:00:01 -0000 The following reply was made to PR misc/180990; it has been noted by GNATS. From: Andrey Chernov To: Nathan Weeks Cc: freebsd-gnats-submit@FreeBSD.org Subject: Re: misc/180990: bsdgrep segfaults when pattern file contains many lines Date: Fri, 02 Aug 2013 02:52:56 +0400 On 02.08.2013 0:54, Nathan Weeks wrote: >> Environment: > FreeBSD fully.qualified.domain.name 9.1-RELEASE FreeBSD 9.1-RELEASE #0 r243825: Tue Dec 4 09:23:10 UTC 2012 root@farrell.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC amd64 >> Description: > "bsdgrep -f pattern_file file" segfaults when the pattern_file has more than a few dozen lines. >> How-To-Repeat: > $ echo 128 > file > $ seq 1 128 > pattern_file > $ bsdgrep -xf pattern_file file > Segmentation fault (core dumped) I don't see segfault on i386, but grep -x is fundamentally broken - it just finds nothing in contrast with gnu grep. -- http://ache.vniz.net/ bitcoin:1G6ugdNY6e5jx1GVnAU2ntj2NEfmjKG85r