bug-grep
[Top][All Lists]
Advanced

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

[bug-grep] segfaults with -m1 -A99


From: Pavol Gono
Subject: [bug-grep] segfaults with -m1 -A99
Date: Tue, 15 Mar 2005 12:56:01 -0800 (PST)

Hi

I noticed segfaults while using egrep with parameters
--max-count and --after-context. Maybe I use wrong combination
of parameters, but I didn't find workaround. Or something else
is wrong?

$ cat bla1
4
40
$ cat bla2
4
04
$ cat bla3
4
444
$ egrep -m1 -A99 "^4$" bla1
4
Segmentation fault
$ egrep -m1 -A99 "^4$" bla2
4
Segmentation fault
$ egrep -m1 -A99 "^4$" bla3
4
Segmentation fault
$ egrep -m1 -A99 "^4" bla1
4
$ egrep -m1 -A99 "^4" bla2
4
Segmentation fault
$ egrep -m1 -A99 "^4" bla3
4
$ egrep -m1 -A99 "4$" bla1
4
Segmentation fault
$ egrep -m1 -A99 "4$" bla2
4
$ egrep -m1 -A99 "4$" bla3
4


The same for grep.
Tested with grep-2.5.1-302 on Suse and grep 2.5.1.ds1-4 on
Debian. On machine with 1GB RAM I saw message "grep: Memory
exhausted" instead of segfaults.

Pavol


                
__________________________________ 
Do you Yahoo!? 
Read only the mail you want - Yahoo! Mail SpamGuard. 
http://promotions.yahoo.com/new_mail 




reply via email to

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