bug-gnu-utils
[Top][All Lists]
Advanced

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

Re: grep 2.5: --only for long line runs forever


From: Sven Hartrumpf
Subject: Re: grep 2.5: --only for long line runs forever
Date: Mon, 20 Jan 2003 12:15:32 +0100 (CET)

The problem disappears when I run the same grep-2.5 binary on a more recent
Linux distribution (SuSE 8.1 instead of SuSE 7.2). So, an old libc or old 
libpcre 
is the culprit, not grep itself.
I think I will upgrade Linux or use a recent gawk.
Thanks for all your help
Sven

P.S.
Under SuSE 7.2 backtraces on endlessly running grep looks like this:
(gdb) bt
#0  0x400e6388 in re_match_2_internal () from /lib/libc.so.6
#1  0x400e5e7d in re_search_2 () from /lib/libc.so.6
#2  0x400e999a in re_search () from /lib/libc.so.6
#3  0x08054993 in EGexecute (
    buf=0x401c4000 "((focus #f) (net ((sub \"c66371\" \"sie.2.1\" categ situa) 
(sub \"c66372\" \"sie.1.1\" categ situa) (sub \"c66377\" \"vorteil.1.1\" categ 
situa) (chsp2 \"c66378\" \"c66310\" categ categ) (assoc \"c66378\" \"c66372\" 
ktyp"..., size=242456, match_size=0xbfffed58, exact=1) at search.c:411
#4  0x0804a1fe in prline (
    beg=0x401c4000 "((focus #f) (net ((sub \"c66371\" \"sie.2.1\" categ situa) 
(sub \"c66372\" \"sie.1.1\" categ situa) (sub \"c66377\" \"vorteil.1.1\" categ 
situa) (chsp2 \"c66378\" \"c66310\" categ categ) (assoc \"c66378\" \"c66372\" 
ktyp"..., lim=0x401ff318 "", sep=58) at grep.c:536
#5  0x0804a955 in prtext (
    beg=0x401c4000 "((focus #f) (net ((sub \"c66371\" \"sie.2.1\" categ situa) 
(sub \"c66372\" \"sie.1.1\" categ situa) (sub \"c66377\" \"vorteil.1.1\" categ 
situa) (chsp2 \"c66378\" \"c66310\" categ categ) (assoc \"c66378\" \"c66372\" 
ktyp"..., lim=0x401ff318 "", nlinesp=0x0) at grep.c:687
#6  0x0804aa44 in grepbuf (
    beg=0x401c4000 "((focus #f) (net ((sub \"c66371\" \"sie.2.1\" categ situa) 
(sub \"c66372\" \"sie.1.1\" categ situa) (sub \"c66377\" \"vorteil.1.1\" categ 
situa) (chsp2 \"c66378\" \"c66310\" categ categ) (assoc \"c66378\" \"c66372\" 
ktyp"..., lim=0x401ff318 "") at grep.c:715

> ldd ./grep
        libpcre.so.0 => /usr/lib/libpcre.so.0 (0x40017000)
        libc.so.6 => /lib/libc.so.6 (0x4002d000)
        /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000)




reply via email to

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