[4832] in Athena Bugs
awk dumps core
daemon@ATHENA.MIT.EDU (John Carr)
Sat Apr 28 12:20:01 1990
To: bugs@ATHENA.MIT.EDU
Cc: jfc@ATHENA.MIT.EDU
Date: Sat, 28 Apr 90 12:19:49 EDT
From: John Carr <jfc@ATHENA.MIT.EDU>
The following input is illegal, but awk should exit with an error status
rather than dump core.
% awk '{DSIZ += $; DRS += $9; TSIZ += $11;}'
awk: syntax error near line 1
awk: illegal statement near line 1
Segmentation violation (core dumped)
This happens on RT and VAX. Stack trace on VAX looks like:
(dbx) where
genprint(0x114, 0x119c0) at 0x590e
yyparse() at 0x6ec
main.main(0x1, 0x7fffe724, 0x7fffe72c) at 0x2b00