[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: gawk reports internal error
From: |
arnold |
Subject: |
Re: gawk reports internal error |
Date: |
Fri, 07 Oct 2022 04:22:00 -0600 |
User-agent: |
Heirloom mailx 12.5 7/5/10 |
Hi.
Thank you for the report. A particular "thank you" for using the gawkbug
program to report the bug.
The problem you mention has been reported earlier. The attached patch
is the fix.
Thanks!
Arnold
Matthias Meixner <Matthias.Meixner@VERIFONE.com> wrote:
> Configuration Information [Automatically generated, do not change]:
> Machine: x86_64
> OS: linux-gnu
> Compiler: gcc
> Compilation CFLAGS: -g -O2 -DNDEBUG
> uname output: Linux bhe-m1 5.15.0-48-generic #54-Ubuntu SMP Fri Aug 26
> 13:26:29 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
> Machine Type: x86_64-pc-linux-gnu
>
> Gawk Version: 5.2.0
>
> Attestation:
> I have read
> https://www.gnu.org/software/gawk/manual/html_node/Bugs.html.
> Yes
>
> Description:
>
> Running the following program reports an internal error:
>
> ======== test.awk ==========
> function addList(list,name)
> {
> if(index(","list"," , ","name",")) return list; # already in list
> if(list!="") list=list ","
> return list name
> }
>
> BEGIN {
> l[0]=addList(l[0],"bar")
> print l[0]
> }
> ===========================
>
> The error reported is:
>
> gawk: test.awk:5: fatal: internal error: file interpret.h, line 253:
> unexpected parameter type Node_val
>
>
> Repeat-By:
>
> Just run: ./gawk -f test.awk
>
>
interpret.h.diff
Description: Text document