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: Aharon Robbins
Subject: Re: [bug-gawk] : in debug mode, every eval causes double free of memory
Date: Wed, 07 May 2014 20:28:06 +0300
User-agent: Heirloom mailx 12.5 6/20/10

I don't currently have access to a Fedora 20 system. Valgrind reports
no problems for me.

What does valgrind report for you on Fedora 20?

Thanks,

Arnold

> Date: Wed, 07 May 2014 08:16:59 +0200
> From: Jan Chaloupka <address@hidden>
> To: Aharon Robbins <address@hidden>, address@hidden
> Subject: Re: [bug-gawk] : in debug mode, every eval causes double free of
>  memory
>
> Hi,
>
> it is up-to date version from repo, i.e. gawk-4.1.1.tar.xz . Also tested 
> on the latest source codes from git from 2014-05-05 16:50:23, hash 
> bce72232ae0d79d8af6b5aa1986b78c04d6c7c28 . Crash occurs again.
>
> Have you tried to run it with valgrind? This does not occur on all 
> systems, as glibc does not have to be so strict about double frees.
>
> Jan
>
> On 05/06/2014 09:04 PM, Aharon Robbins wrote:
> > Hi. Thanks for this report.
> >
> >> Date: Tue, 06 May 2014 15:44:36 +0200
> >> From: Jan Chaloupka <address@hidden>
> >> To: 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
>
> -- 
> Jan Chaloupka
> ------------------------------
> * Software Engineer          *
> * ENG Base Operating Systems *
> * Red Hat Czech, s. r. o.    *
> * UTC+1 (CET), jchaloup      *



reply via email to

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