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