[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 10:48:38 -0500 |
User-agent: |
Mutt/1.5.13 (2006-08-11) |
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 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?
grep (GNU grep) 2.5.1
Copyright 1988, 1992-1999, 2000, 2001 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Installed/Config-files/Unpacked/Failed-config/Half-installed
|/ Err?=(none)/Hold/Reinst-required/X=both-problems (Status,Err: uppercase=bad)
||/ Name Version Description
+++-==============-==============-============================================
ii grep 2.5.1.ds2-6 GNU grep, egrep and fgrep
It segfaults on redhat too (with the same upstream version).
Justin