[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [bug-gawk] array corruption bug in stable branch
From: |
Andrew J. Schorr |
Subject: |
Re: [bug-gawk] array corruption bug in stable branch |
Date: |
Sun, 22 Jan 2017 18:30:55 -0500 |
User-agent: |
Mutt/1.5.21 (2010-09-15) |
Here's a simplified example. My current guess is that there's a memory
management problem when assigning to $0.
For the attached script, the master branch prints the following (correctly):
0 Transmit Delay is 1 sec, State DROther, Priority 3
1 Neighbor Count is 2, Adjacent neighbor count is 2
But using the gawk-4.1-stable branch, the output is:
0 Neighbor Count is 2, Adjacent neighbor count is 2
1 Neighbor Count is 2, Adjacent neighbor count is 2
Regards,
Andy
On Sun, Jan 22, 2017 at 05:37:16PM -0500, Andrew J. Schorr wrote:
> Hi,
>
> I don't know why yet, but the attached script gives the wrong result
> in the stable branch. In the master branch, there is no output, which I
> believe to be correct. But in the gawk-4.1-stable branch, I see
> this output:
>
> sh-4.2$ ./gawk_bug5.sh
> < Transmit Delay is 1 sec, State DROther, Priority 3
> > Neighbor Count is 2, Adjacent neighbor count is 2
>
> Something about that gensub statement is corrupting things. I will continue
> to troubleshoot. Any insights appreciated.
>
> Regards,
> Andy
gawk_bug.sh
Description: Bourne shell script
- [bug-gawk] array corruption bug in stable branch, Andrew J. Schorr, 2017/01/22
- Re: [bug-gawk] array corruption bug in stable branch,
Andrew J. Schorr <=
- Re: [bug-gawk] $0 assignment bug in stable branch, Andrew J. Schorr, 2017/01/22
- Re: [bug-gawk] $0 assignment bug in stable branch, Andrew J. Schorr, 2017/01/22
- Re: [bug-gawk] UNFIELD bug in stable branch, Andrew J. Schorr, 2017/01/22
- Re: [bug-gawk] UNFIELD bug in stable branch, arnold, 2017/01/23
- Re: [bug-gawk] UNFIELD bug in stable branch, Andrew J. Schorr, 2017/01/23
- Re: [bug-gawk] UNFIELD bug in stable branch, arnold, 2017/01/23
- Re: [bug-gawk] UNFIELD bug in stable branch, Andrew J. Schorr, 2017/01/23