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: arnold
Subject: Re: fatal error: internal error with Gawk 5.2.1
Date: Tue, 24 Jan 2023 00:24:49 -0700
User-agent: Heirloom mailx 12.5 7/5/10

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]