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

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

Re: locale-dependent assertion failure in gawk 3.1.5


From: Jürgen Kahrs
Subject: Re: locale-dependent assertion failure in gawk 3.1.5
Date: Fri, 07 Jul 2006 17:52:57 +0200
User-agent: Thunderbird 1.5 (X11/20060317)

Andrew J. Schorr wrote:

> On 32-bit linux FC1 with gcc 3.3.2, it fails (with LANG set to en_US.UTF-8)
> with gawk 3.1.5, but not 3.1.3.
> 
> On 32-bit linux FC4 with gcc 4.0.2, it fails with gawk 3.1.5, but gawk
> 3.1.4 works fine.

It looks like the problem is somehow bound to UTF-8:

LANG=C ./gawk-assert.sh 
substr matches
0
substr matches
1
address@hidden:~> LANG=en_US ./gawk-assert.sh 
substr matches
0
substr matches
1
address@hidden:~> LANG=en_US.UTF-8 ./gawk-assert.sh
substr matches
0
substr matches
gawk: node.c:515: unref: Assertion `(tmp->flags & 4096) != 0' failed.
1./gawk-assert.sh: line 14:  4404 Done                    echo "test
foo"
      4405 Aborted                 | $cmd '
{
   if (substr($1,1,1) == substr($0,1,1))
      print "substr matches"
   sub(/foo/,"bar")
   print nr++
}'

gcc --version
gcc (GCC) 4.1.0 (SUSE Linux)
Copyright (C) 2006 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

gawk --version
GNU Awk 3.1.5

cat /etc/issue

Welcome to SUSE LINUX 10.1 (i586) - Kernel \r (\l).

uname -a
Linux linux 2.6.16.13-4-default #1 Wed May 3 04:53:23 UTC 2006 i686 athlon i386 
GNU/Linux

> In all cases, it works fine if LANG is set to C or en_US.
> 
> Can anybody duplicate this problem?  Any idea what's going wrong?

No idea. I could try on other Unixes next week if it helps.




reply via email to

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