[Top][All Lists]

[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: Gecko/20070322 Firefox/


                 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




Here is a way to get grep into trouble:

> cat >test.txt
a .b
a .c
> 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 



Reply to this item at:


  Message sent via/by Savannah

reply via email to

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