#924 A malformed input program crashes the compiler

v0.9
closed-fixed
5
2013-03-31
2013-03-29
No

Under 64-bit Ubuntu, a malformed input program crashes the compiler:

$ iverilog -v
Icarus Verilog version 0.9.5  (v0_9_5)
$ iverilog ADT2.v
ADT2.v:109: error: No function Second in this context (ADT2).
Segmentation fault (core dumped)

I suspect the problem will go away once I fix my (computer-generated) input file (the function Second is, indeed, missing), but as you say, no amount of gibberish in the input should crash a compiler.

1 Attachments

Discussion

  • Cary R.

    Cary R. - 2013-03-29

    I can confirm this still crashes using both the v0.9.6 release and the latest V0.9 from git. This does not crash using the latest development from git.

     
  • Martin Whitaker

    Martin Whitaker - 2013-03-31
    • assigned_to: Martin Whitaker
     
  • Martin Whitaker

    Martin Whitaker - 2013-03-31

    I have pushed a patch to the v0.9 branch that fixes this bug. This is available from git, and will be included in the next v0.9 release.

     
  • Martin Whitaker

    Martin Whitaker - 2013-03-31
    • status: open --> closed-fixed
     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks