bug-gawk
[Top][All Lists]
Advanced

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

Re: [bug-gawk] length() crash


From: Aharon Robbins
Subject: Re: [bug-gawk] length() crash
Date: Fri, 24 Jun 2011 12:14:44 +0300
User-agent: Heirloom mailx 12.4 7/29/08

Greetings. Re this:

> Date: Thu, 23 Jun 2011 00:39:10 +0200
> From: miro drahos <address@hidden>
> To: address@hidden
> Subject: [bug-gawk] length() crash
>
> Hi there,
> I experienced awk crash (BIG surprise to me), when calling length() on
> non-existent field.
> My version:
> GNU Awk 3.1.6
> system: bash on Ubuntu Linux 2.6.32-32-generic i686
>
> here is what i did:
> //-------------------------------------------------------------------------
> $ echo 'one two' | awk '{if(length($3)!=3)$4="000000000000" ; print}'
> *** glibc detected *** awk: double free or corruption (fasttop): 0x08d57d60
> ***
> ======= Backtrace: =========
> .....

Thank you for the report.

This is indeed a bug that shows up outside the "C" locale.

You can pull the current gawk code from the git repository on Savannah
(start at http://savannah.gnu.org, put 'gawk' into the Project box
and follow the info for getting the code).

You can check out the gawk-stable branch, which has the problem fixed
and is closer to 3.1.6, or just build off the master branch which also
has the problem fixed.

Thanks,

Arnold



reply via email to

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