bug-gawk
[Top][All Lists]
Advanced

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

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


From: Jan Chaloupka
Subject: [bug-gawk] : in debug mode, every eval causes double free of memory
Date: Tue, 06 May 2014 15:44:36 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.4.0

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







reply via email to

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