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

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

gawk 3.1.1l (beta) sigsegv


From: John Leadeham
Subject: gawk 3.1.1l (beta) sigsegv
Date: Tue, 18 Feb 2003 23:37:15 -0000

The new beta 3.1.1l dumps core.

This behaviour is observed when running an awk program
which appears to work perfectly with gawk 3.1.1.
(The new version also seems about 20% slower, btw.)

So far, I have not been able to isolate a suitably small
and reliable demonstration case. That the input provoking
the core dump (and whether core is dumped at all) varies
with the presence or nature of print (or other) commands in
my awk program suggests a stray pointer. The only things
that seem constant are (1) SIGSEGV and (2) gdb points to
the regex code, and (3) there appears to be a problem only
when IGNORECASE = 1.

In the stack trace below, the string being searched
for the re ends at the first '=' (which is FS). The actual text
of the input string does not seem to be relevant. The quantity
of input needed varies with the awk program details.

(gdb) backtrace
#0  0x4008c861 in kill () from /lib/libc.so.6
#1  0x4008c665 in raise () from /lib/libc.so.6
#2  0x4008dc81 in abort () from /lib/libc.so.6
#3  0x08063cae in catchsig (sig=11) at main.c:978
#4  <signal handler called>
#5  0x0806a093 in re_string_context_at (input=0xbfffe230, idx=35, eflags=0,
    newline_anchor=0) at regex_internal.c:549
#6  0x08069ee4 in re_string_reconstruct (pstr=0xbfffe230, idx=36, eflags=0,
    newline=0) at regex_internal.c:448
#7  0x0806b933 in re_search_internal (preg=0x8089348,
    string=0x80890e3 "Led to 2 out: hrd ridden & btn when mistake last=0=rd 
ridden & drew clr approaching last=0=d=0=between last
2=0=h=0=at: ran on=0=g last=0=en=0=", length=48, start=0, range=48, stop=48, 
nmatch=1, pmatch=0x8094df0,
    eflags=0) at regexec.c:676
#8  0x0806b439 in re_search_stub (bufp=0x8089348,
    string=0x80890e3 "Led to 2 out: hrd ridden & btn when mistake last=0=rd 
ridden & drew clr approaching last=0=d=0=between last
2=0=h=0=at: ran on=0=g last=0=en=0=", length=48, start=0, range=48, stop=48, 
regs=0x0, ret_len=0)
    at regexec.c:408
#9  0x0806b1a9 in re_search (bufp=0x8089348,
    string=0x80890e3 "Led to 2 out: hrd ridden & btn when mistake last=0=rd 
ridden & drew clr approaching last=0=d=0=between last
2=0=h=0=at: ran on=0=g last=0=en=0=", length=48, start=0, range=48, regs=0x0) 
at regexec.c:278
#10 0x08065585 in research (rp=0x8089348,
    str=0x80890e3 "Led to 2 out: hrd ridden & btn when mistake last=0=rd ridden
& drew clr approaching last=0=d=0=between last 2=0=h=0=at: ran on=0=g 
last=0=en=0=", start=0, len=48, need_start=0) at re.c:176
#11 0x0807292d in match_op (tree=0x80880c0) at eval.c:1920
#12 0x0807068f in r_tree_eval (tree=0x80880c0, iscond=1) at eval.c:822
#13 0x08070f3b in eval_condition (tree=0x80880c0) at eval.c:1096
#14 0x0806f6ce in interpret (tree=0x8088300) at eval.c:400
#15 0x0806f698 in interpret (tree=0x8087cf0) at eval.c:395
#16 0x0806f5d3 in interpret (tree=0x8087b90) at eval.c:370
#17 0x0805d71e in do_input () at io.c:405
#18 0x08062b75 in main (argc=5, argv=0xbfffe804) at main.c:532
#19 0x4007b7ee in __libc_start_main () from /lib/libc.so.6

gawk 3.1.1l was compiled using gcc 2.95.3 on linux 2.4.10-4GB

John.





reply via email to

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