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

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

Re: gawk 3.1.4 core dump


From: Andrew J. Schorr
Subject: Re: gawk 3.1.4 core dump
Date: Fri, 12 Aug 2005 08:50:32 -0400
User-agent: Mutt/1.4.1i

On Fri, Aug 12, 2005 at 01:19:40PM +0300, Aharon Robbins wrote:
> > From: Ed Morton <address@hidden>
> >
> > $ cat t3                     
> > text /
> > $ gawk -vRS=" /( |$)\n" '1' t3
> > gawk: cmd. line:1: fatal error: internal error
> > Abort(coredump)
> > $ gawk --version | head -1   
> > GNU Awk 3.1.4
> > $ uname -a
> > SunOS ihgp 5.8 Generic_108528-29 sun4u sparc SUNW,Ultra-Enterprise
> 
> I cannot reproduce this under Linux, with 3.1.4 or 3.1.5.
> 
> First, please get a copy of 3.1.5 and see if the problem persists.
> 
> Second, let me know how it was compiled.  I've seen things where compiling
> regex.c and/or dfa.c without optimization made weird problems go away; it
> seems that those two files really stress out compiler optimizers.

FYI, it dumps core for me on Linux with 3.1.4 and 3.1.5:

   $ ./gawk -vRS=" /( |$)\n" '1' t3
   gawk: cmd. line:1: fatal error: internal error
   Aborted (core dumped)
   $ ./gawk --version | head -1
   GNU Awk 3.1.5
   $ uname -a
   Linux ti48 2.6.10-0.ti.4.fc1smp #1 SMP Wed Jan 19 12:15:34 EST 2005 i686 
i686 i386 GNU/Linux

I configured as follows:
env CFLAGS="-g -O2 -Wall -Wsign-compare -Wpointer-arith -Wbad-function-cast 
-Wwrite-strings -W -Wcast-qual -Wstrict-prototypes -Wmissing-declarations 
-Wmissing-noreturn -Wmissing-format-attribute -Wunreachable-code -Wpacked 
-Wpadded" ./configure --enable-switch --prefix=/usr

Curiously, if the file 't3' does not exist, I get this:
   $ ./gawk -vRS=" /( |$)\n" '1' t3
   free(): invalid pointer 0x808d4c0!
   gawk: cmd. line:1: fatal: cannot open file `t3' for reading (No such file or 
directory)
But perhaps that's the same bug you just fixed...

Regards,
Andy




reply via email to

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