bug-grep
[Top][All Lists]
Advanced

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

[bug #19491] Segmentation fault: -m 1 -A 99 '^a .b$'


From: Stan Behrens
Subject: [bug #19491] Segmentation fault: -m 1 -A 99 '^a .b$'
Date: Mon, 02 Apr 2007 16:51:17 +0000
User-agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.8.1.3) Gecko/20070322 Firefox/2.0.0.3

URL:
  <http://savannah.gnu.org/bugs/?19491>

                 Summary: Segmentation fault: -m 1 -A 99 '^a .b$'
                 Project: grep
            Submitted by: sbeh
            Submitted on: Monday 04/02/2007 at 16:51
                Category: None
                Severity: 3 - Normal
              Item Group: None
                  Status: None
                 Privacy: Public
             Assigned to: None
             Open/Closed: Open
         Discussion Lock: Any

    _______________________________________________________

Details:

Hi,

Here is a way to get grep into trouble:

> cat >test.txt
a .b
a .c
^D
> grep -m 1 -A 99 '^a .b$' test.txt
a .b
Segmentation fault (core dumped)


Backtrace is:

(gdb) bt
#0  0x0804de4d in dfaexec (d=0x8059a40, begin=0x8062005 "a .c\n",
    size=4160348156, backref=0xbfbfe680) at dfa.c:2854
#1  0x08053a1e in EGexecute (buf=0x8062005 "a .c\n", size=4, match_size=0x1,
    exact=0) at search.c:430
#2  0x0804f8f0 in prpending (lim=0x806200a "") at grep.c:672
#3  0x08050366 in grepfile (file=0xbfbfea71 "test.txt", stats=0x8059680)
    at grep.c:887
#4  0x080514d7 in main (argc=7, argv=0xbfbfe944) at grep.c:1850 


Bye.




    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?19491>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/





reply via email to

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