Menu

#268 sdcdb - crash in msvc/win32 during shutdown

None
closed-accepted
None
5
2016-02-08
2016-02-07
No

Hello SDCC team,

Running the debugger in MSVC produces an error when quiting.

The reason is that the code closes the socket to the simulator and closes the associated streams.

This is wrong. When closing an associated stream, the socket is also closed, as it is associated and not a duplicate handle. On unix this is ignored, but on msvc this leads to an assert -> crash.

The following patch fixes it up and also removes some annoying win32 warnings.

Now only the socket is closed, and the streams are simply set to NULL.

Thanks,

/pedro

1 Attachments

Discussion

  • Maarten Brock

    Maarten Brock - 2016-02-08
    • status: open --> closed-accepted
    • assigned_to: Maarten Brock
    • Group: -->
     
  • Maarten Brock

    Maarten Brock - 2016-02-08

    Applied in [r9500]

     

Log in to post a comment.