bug-gnu-utils
[Top][All Lists]
Advanced

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

locale-dependent assertion failure in gawk 3.1.5


From: Andrew J. Schorr
Subject: locale-dependent assertion failure in gawk 3.1.5
Date: Thu, 6 Jul 2006 17:01:25 -0400
User-agent: Mutt/1.4.2.1i

Hi,

Running unpatched gawk 3.1.5 on linux 2.6, the attached script
gives an assertion failure with LANG set to en_US.UTF-8, but not
with LANG of C or en_US:

bash-2.05b$ LANG=C /tmp/gawk-assert.sh 
bash-2.05b$ LANG=en_US /tmp/gawk-assert.sh 
bash-2.05b$ LANG=en_US.UTF-8 /tmp/gawk-assert.sh 
gawk: node.c:515: unref: Assertion `(tmp->flags & 4096) != 0' failed.
/tmp/gawk-assert.sh: line 17:  5853 Done                    echo "eth0.4 is up
  Transmit Delay is 1 sec, State DR, Priority 3"
      5854 Aborted                 | ./gawk '
(substr($1,1,1) == substr($0,1,1)) && ($2 == "is") {
   interface = $1
   nr = 0
}

/Transmit Delay is . sec, State .*, Priority/ {
   $0 = gensub(/(DR|Backup),/,"DROther,","g",$0)
}

{
   save[interface","nr++] = $0
}'

At the moment, I'm not sure what's going on, but I thought I'd submit
the bug report right away in case somebody else has quicker insight into
this.  I don't think that any of the previously disseminated patches
to 3.1.5 affect this problem...

Regards,
Andy

Attachment: gawk-assert.sh
Description: Bourne shell script


reply via email to

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