verilog-parser icon indicating copy to clipboard operation
verilog-parser copied to clipboard

`undef at end of file causes segfault in some cases.

Open ben-marshall opened this issue 9 years ago • 0 comments

Issue Description

When parsing large numbers of files, a `undef directive appearing as the penultimate token in a file will cause a segfault. When running with valgrind however, it does not, so it is very much a heisenbug.

Steps to re-create:

Feed the parser a set of files, and one of them should have a `undef on the last line.

$> make clean
$> make all
$> ./src/parser ../../tests/*.v

ben-marshall avatar Jul 16 '16 14:07 ben-marshall