Public bug reported:
Binary package hint: gawk
Depending on the value of LANG, the script below either aborts due to a
failed assertion or runs to completion.
$ cat reducedscript
echo \001 |\
gawk '{
if ( match($NF,"001")) {
x = 1;
$NF = "[1,2]\\001";
$x = x+1;
print $0;
}
}'
$ echo $LANG
en_GB.UTF-8
$ ./reducedscript
gawk: node.c:515: unref: Assertion `(tmp->flags & 4096) != 0' failed.
./reducedscript: line 9: 5089 Done echo \001
5095 Aborted | gawk '{
if ( match($NF,"001")) {
x = 1;
$NF = "[1,2]\\001";
$x = x+1;
print $0;
}
}'
$ export LANG=C
$ ./reducedscript
2
** Affects: gawk (Ubuntu)
Importance: Untriaged
Status: Unconfirmed
--
LANG specific assertion failure
https://launchpad.net/bugs/58371
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs