misc/180990: bsdgrep segfaults when pattern file contains many lines
Andrey Chernov
ache at freebsd.org
Thu Aug 1 23:00:01 UTC 2013
The following reply was made to PR misc/180990; it has been noted by GNATS.
From: Andrey Chernov <ache at freebsd.org>
To: Nathan Weeks <nathan.weeks at ars.usda.gov>
Cc: freebsd-gnats-submit at 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 at 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
More information about the freebsd-bugs
mailing list