Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 1 Aug 2013 23:00:01 GMT
From:      Andrey Chernov <ache@freebsd.org>
To:        freebsd-bugs@FreeBSD.org
Subject:   Re: misc/180990: bsdgrep segfaults when pattern file contains many lines
Message-ID:  <201308012300.r71N012a000933@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
The following reply was made to PR misc/180990; it has been noted by GNATS.

From: Andrey Chernov <ache@freebsd.org>
To: Nathan Weeks <nathan.weeks@ars.usda.gov>
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201308012300.r71N012a000933>