[Top][All Lists]

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

gawk 3.1.5 invalid free() when END and unreadable input

From: Karl Berry
Subject: gawk 3.1.5 invalid free() when END and unreadable input
Date: Mon, 15 Aug 2005 14:46:50 +0200

Hi Arnold,

gawk-3.1.5 crashes with the following (3.1.4 was ok):

$ mkdir empty
$ cd empty
$ ls
$ gawk-3.1.5 'END{}' \*
*** glibc detected *** free(): invalid pointer: 0x080a15e0 ***

gdb backtrace shows:
... useless internal frames ...
#5  0x00b89e3a in free () from /lib/tls/libc.so.6
#6  0x080722fa in iop_alloc (fd=-1, name=0x80a61d0 "*", iop=0x80a15e0)
    at io.c:2498
#7  0x080709f1 in iop_open (name=0x80a61d0 "*", mode=0x8099080 "r",
    iop=0x80a15e0) at io.c:1602
#8  0x0806d437 in nextfile (skipping=0) at io.c:280
#9  0x0806da0c in do_input () at io.c:445
#10 0x08074481 in main (argc=3, argv=0xbfffe9a4) at main.c:595

Wild guess is that the unreadable input file named "*" isn't being
handled right when END{} is present.  (No crash with empty program ''.)

This is on Red Hat WS 4 (i386), compiled with gcc 4.0.0.
Linux tug.org 2.6.9-11.ELsmp #1 SMP Fri May 20 18:26:27 EDT 2005 i686 unknown 
unknown GNU/Linux

Happy hacking,

reply via email to

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