[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: grep -A1 -m1 segfaults with multiple line matches bug
From: |
Justin Pryzby |
Subject: |
Re: grep -A1 -m1 segfaults with multiple line matches bug |
Date: |
Fri, 23 Feb 2007 14:07:09 -0500 |
User-agent: |
Mutt/1.5.13 (2006-08-11) |
On Fri, Feb 23, 2007 at 07:28:22PM +0100, Benno Schulenberg wrote:
> Justin Pryzby wrote:
> > On Fri, Feb 23, 2007 at 03:02:14PM +0100, Benno Schulenberg wrote:
> > > Justin Pryzby wrote:
> > > > grep segfaults when invoked like:
> > > >
> > > > { echo h; echo yz; } |grep -A1 -m1 "`echo h; echo zz`"
> >
> > It segfaults on redhat too (with the same upstream version).
>
> Confirmed on Feisty:
>
> # { echo h; echo yz; } | grep -A1 -m1 "`echo h; echo zz`"
> h
> Segmentation fault
>
>
> # dpkg --list grep | tail -3
> ||/ Name Version Description
> +++-==============-==============-============================================
> ii grep 2.5.1.ds2-6 GNU grep, egrep and fgrep
>
>
> You might try to find out which patches both Debian and Red Hat
> apply that Gentoo doesn't apply to their grep.
debian patch is at:
http://ftp.debian.org/debian/pool/main/g/grep/grep_2.5.1.ds2-6.diff.gz
I couldn't quickly find source packages for the other 2, but interdiff
would be useful here.
> Or build the source
> package on Debian and enable debugging symbols and get a usable
> backtrace.
Okay,
#0 0x080518ce in dfaexec ()
#1 0x08058fa6 in EGexecute ()
#2 0x0804af01 in grepfile ()
#3 0x0804cfbe in main ()
Justin