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

Parsing multiple files

Open zhanghongce opened this issue 6 years ago • 2 comments

In scan_end function, the lexer state was popped. However in scan_begin, it was not pushed. Initially, I was thinking this should be okay. But it turned out that if I instantiate another VCDFileParser after the first one was destructed, the second would result in segmentation fault even if it is parsing the same file.

zhanghongce avatar Mar 28 '19 00:03 zhanghongce

In my case, after adding the change below: https://github.com/zhanghongce/verilog-vcd-parser/commit/10b408cc419be2df01fadf879fd46fbea2f0a813 it seems to work. But I'm not sure if this is the right fix.

zhanghongce avatar Mar 28 '19 00:03 zhanghongce

It works. Thanks!

mjc0608 avatar Feb 09 '23 07:02 mjc0608