[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
gawk bug?
From: |
Laurent Vogel |
Subject: |
gawk bug? |
Date: |
Mon, 8 Sep 2003 23:02:53 +0200 |
Hi,
GNU Awk 3.1.2 (cygwin version) displays weird error messages
on scripts having long lines:
first, unterminated strings: BEGIN{x="...}
$ perl -e 'print "BEGIN{x=\"", "." x 249, "}";' > foo
$ awk -f foo
awk: foo:1:
BEGIN{x="...........................................................
............................................................BEGIN{x=".......
....
............................................................................
....
............................................................................
....
............................................................................
..}
awk: foo:1: fatal error: internal error
Aborted (core dumped)
$ perl -e 'print "BEGIN{x=\"", "." x 149, "}";' > foo
$ awk -f foo
awk: foo:1:
BEGIN{x="...........................................................
............................................................BEGIN{x=".......
....
............................................................................
....
..........................................................}
awk: foo:1: fatal: yyerror: buf: can't allocate -1 bytes of memory (Not
enough c
ore)
then, terminated strings: BEGIN{x="..."}
$ perl -e 'print "BEGIN{x=\"", "." x 7157, "\"}";' > foo
$ awk -f foo
awk: foo:1: fatal error: internal error
Aborted (core dumped)
I admit that some of the inputs are not necessarily valid, but I don't
think it is a valid reason for Gawk dumping core.
best regards,
Laurent Vogel
- gawk bug?,
Laurent Vogel <=