bug-grep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: grep -A1 -m1 segfaults with multiple line matches bug


From: David Liontooth
Subject: Re: grep -A1 -m1 segfaults with multiple line matches bug
Date: Fri, 23 Feb 2007 11:17:08 -0800
User-agent: Icedove 1.5.0.9 (X11/20061220)

Benno Schulenberg wrote:
> Justin Pryzby wrote:
>   
>> grep segfaults when invoked like:
>>
>> { echo h; echo yz; } |grep -A1 -m1 "`echo h; echo zz`"
>>     
>
> It does not segfault here:
>
> $ { echo h; echo yz; } | grep -A1 -m1 "`echo h; echo zz`"
> h
> yz
>
> This is with grep-2.5.1a, the released tarball, the Gentoo version, 
> and the CVS version -- all okay.  What version are you using?
>
> Benno
>
>
>   
Segfaults on Debian sid amd64:

# { echo h; echo yz; } |grep -A1 -m1 "`echo h; echo zz`"
h
Segmentation fault
# grep -V
grep (GNU grep) 2.5.1






reply via email to

[Prev in Thread] Current Thread [Next in Thread]