On Thu, Jul 20, 2006 at 01:24:59AM +0200, Michael Brennan wrote:
> giving gawk a nonexistent file as argument at the command line
> will invoke free() on an invalid pointer.
> This occurs with version 1.3.5
>
> Example:
> gawk '{}' abc
> *** glibc detected *** free(): invalid pointer: 0x08093340 ***
> Abort
>
> I've traced the error to function iop_alloc() which tries to
> free *iop, which is static, if fd is invalid.
FYI, this is a known bug. The fix is here:
http://lists.gnu.org/archive/html/bug-gnu-utils/2006-07/msg00002.html
Regards,
Andy