bug-gawk
[Top][All Lists]
Advanced

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

Re: [bug-gawk] : in debug mode, every eval causes double free of memory


From: Hermann Peifer
Subject: Re: [bug-gawk] : in debug mode, every eval causes double free of memory
Date: Wed, 07 May 2014 16:16:40 +0200
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:24.0) Gecko/20100101 Thunderbird/24.5.0

Hi,

I noted the below hehaviour using gawk from git, on Mac OS X, Version 10.9.2. Crash report attached.

Hermann


$ touch emptygawk.awk

$ gawk -f emptygawk.awk --debug
gawk> info functions
All defined functions:

gawk> eval ""
gawk> info functions
All defined functions:

gawk: fatal error: internal error
Abort trap: 6



On 2014-05-06 21:04, Aharon Robbins wrote:
Hi. Thanks for this report.

Date: Tue, 06 May 2014 15:44:36 +0200
From: Jan Chaloupka <address@hidden>
To: bug-gawk-mXXj517/address@hidden
Subject: [bug-gawk] : in debug mode, every eval causes double free of memory

Hi,

every time a gawk is started in debug mode, eval command is run
correctly, but then double free of memory occurs. Occurs on Fedora 20.

Steps to reproduce:

1) gawk -f /tmp/emptygawk.awk --debug
2) type eval ""

/tmp/emptygawk.awk is empty file.

Reported in https://bugzilla.redhat.com/show_bug.cgi?id=1089073.

I've been able to trace the problem to debug.c:5567 and debug.c:5569.
free_context frees memory. destroy_symbol then frees it for the second
time. But why it is happening, it requires deeper knowledge of the
source code.

Regards
Jan

You don't state which version of gawk you're using. The bugzilla looks
like it's based on 4.1.0. I cannot reproduce this problem using 4.1.1
on my 64 bit Ubuntu 12.04 system.

I don't have access to a Fedora 20 system.

Can you please try with either the released 4.1.1 code or the
gawk-4.1-stable branch in the git repo from Savannah?

Thanks,

Arnold



Attachment: gawk_2014-05-07-155533_Hermanns-MacBook-Air.crash
Description: Text document


reply via email to

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