bug-gawk
[Top][All Lists]
Advanced

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

Re: fatal error: internal error with Gawk 5.2.1


From: Volodymyr Gubarkov
Subject: Re: fatal error: internal error with Gawk 5.2.1
Date: Wed, 25 Jan 2023 19:14:33 +0200

Sure, thank you for your work!

I'm not quite sure the error of Vincent is the same as mine (most likely).
But I've managed to derive even smaller example based on Vincent's code:

$ ./soft/gawk521 '
 function tailmatch(string) {
   length(string)
 }

 BEGIN {
     tailmatch(defanchors["test"])
     defanchors["test"] = defanchors["test"]
 }'
free(): double free detected in tcache 2
Aborted (core dumped)

Hope, this helps.

În mar., 24 ian. 2023 la 09:24, <arnold@skeeve.com> a scris:

> Thanks for the report. I will try to find some time to
> investigate.
>
> Arnold
>
> Volodymyr Gubarkov <xonixx@gmail.com> wrote:
>
> > Hi!
> >
> > I beg pardon for a huge test case, but still better than nothing.
> >
> > I've prepared a repo with reproducible code:
> > https://github.com/xonixx/bugreport-1
> >
> > So it appears, Gawk 5.2.x crashes on it with:
> >
> > $ ./soft/gawk521 -f makesure.awk 27_parameterized_goals_10_errors.sh -l
> > gawk521: makesure.awk:674:
> > (FILENAME=tests/27_parameterized_goals_10_errors.sh FNR=23) fatal error:
> > internal error
> > Aborted (core dumped)
> >
> > Interestingly, if you rewrite line 674 into two lines:
> >
> >     gii = goalNameInstantiated SUBSEP i
> >     Dependencies[gii] = instantiate(dep,newArgs)
> >
> > the error changes:
> >
> > free(): double free detected in tcache 2
> > Aborted (core dumped)
> >
> > Code works as intended with Gawk 5.1.1 and bwk.
> >
> > Just in case:
> >
> > $ uname -a ; cat /etc/issue
> > Linux xonix 5.4.0-136-generic #153-Ubuntu SMP Thu Nov 24 15:56:58 UTC
> 2022
> > x86_64 x86_64 x86_64 GNU/Linux
> > Linux Mint 20.3 Una \n \l
> >
> > Though, I'm observing the same problem on macOS as well:
> >
> https://github.com/xonixx/makesure/actions/runs/3989059129/jobs/6841018914
> >
> > Best regards,
> > Volodymyr
>


reply via email to

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