[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
gawk-3.1.3: internal error and coredump with f(nothing) called twice
From: |
Michael Mauch |
Subject: |
gawk-3.1.3: internal error and coredump with f(nothing) called twice |
Date: |
Mon, 15 Mar 2004 21:57:19 +0100 |
User-agent: |
Mutt/1.5.6i |
Hi Arnold,
the test script:
#! /usr/local/bin/gawk -f
BEGIN {
f(nothing)
f(nothing)
}
function f(nothing)
{
print nothing
}
# End.
prints an internal error and throws a core:
gawk: ./orderNCMd_dbg:5: fatal error: internal error
It works fine with gawk-3.1.2 and older versions. This is on Linux
(Gentoo and Debian), i386.
Backtrace:
(gdb) bt
#0 0x42dfcf61 in kill () from /lib/libc.so.6
#1 0x42dfcd05 in raise () from /lib/libc.so.6
#2 0x42dfe1fc in abort () from /lib/libc.so.6
#3 0x08066378 in catchsig (sig=0) at main.c:1021
#4 <signal handler called>
#5 push_args (count=1, argp=0x808cab8, oldstack=0x0, func_name=0x808d080 "f",
varnames=0x808d0b0) at eval.c:1566
#6 0x08076d2c in func_call (tree=0x808caf8) at eval.c:1641
#7 0x080758d6 in r_tree_eval (tree=0x808caf8, iscond=0) at eval.c:884
#8 0x08075002 in interpret (tree=0x808caf8) at eval.c:787
#9 0x080742c2 in interpret (tree=0x808cb38) at eval.c:394
#10 0x08074225 in interpret (tree=0x808c9f8) at eval.c:373
#11 0x08064db8 in main (argc=3, argv=0xbffff074) at main.c:562
Of course the test script above is not the real script where I
experienced that problem, but it's the simplest version that triggered
this internal error.
Thank you for your great work!
Regards...
Michael
- gawk-3.1.3: internal error and coredump with f(nothing) called twice,
Michael Mauch <=