#952 Iverilog crashes with no assertion message when compiling ANY file.

v0.9
closed
nobody
None
5
2014-06-02
2014-03-19
William D. Jones
No

Per directions on the website:
Operating System: Windows 7 Professional, 64-bit
CPU: Core-i7 Sandy Bridge
Compiler version: 0.9.5 and 0.9.7

To duplicate:

Test program:
module main;
initial
begin
$display("Hello, World");
$finish ;
end
endmodule

Command Line: iverilog -o hello hello.v

Iverilog will crash silently with no assertion messages and Windows will notify "ivl.exe has stopped working," with (as typical) no useful information about the crash. Return code is -1,073,741,819, which is access violation (0xc0000005).

I have found this bug in both 0.9.5 and 0.9.7. The only other information I can give is that: At one time in the past, this bug did not exist in 0.9.5 (Nov 2011 or thereabouts), and programs would compile successfully.

I compiled 0.9.5 on my own using MinGW, and used a pre-built binary for 0.9.7.

Discussion

  • Some additional information I forgot:
    I upgraded mingw recently (gcc 4.8.1), which is likely the cause of the issues. Perhaps something changed in the dlls recently?

    Completely uninstalling 0.9.7, and recompiling 0.9.5 against GCC 4.8.1 fixed the problem. I assume the problems are related.

     
  • Cary R.
    Cary R.
    2014-03-19

    • Group: devel --> v0.9
     
  • Cary R.
    Cary R.
    2014-03-19

    This certainly sounds like a MinGW issue so it is likely not an Icarus bug. If you compile 0.9.7 does that also work? If so I would recommend using that since it has a number of bug fixes over 0.9.5. It certainly makes sense that there could be a DLL conflict between the precompiled binaries and the latest MinGW. I think Pablo used a much older version when compiling the binaries.

    I will leave this report open for a bit if you want to reply, but will close it before too long.

     
    Last edit: Cary R. 2014-03-19
  • 0.9.7 also works when compiling against my MinGW distribution... whoops!

    Well, I doubt I'm the only person who has/will run into this problem, so this should hopefully help others out.

     
    Last edit: William D. Jones 2014-03-19
  • Cary R.
    Cary R.
    2014-03-19

    I will let Pablo know about this report so he is aware of the issue.

     
    Last edit: Cary R. 2014-03-19
  • Cary R.
    Cary R.
    2014-06-02

    Pablo has verified that this is a problem with DLL incompatibilities between the different versions of MinGW. He has put up a development snapshot that should fix this issue, but has not updated the V0.9 release.

    I am closing this since it is not a base Icarus issue.

     
  • Cary R.
    Cary R.
    2014-06-02

    • status: open --> closed