bug-gawk
[Top][All Lists]
Advanced

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

fatal error: internal error with Gawk 5.2.1


From: Volodymyr Gubarkov
Subject: fatal error: internal error with Gawk 5.2.1
Date: Mon, 23 Jan 2023 23:41:17 +0200

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]