logo       

[GHC] #747: Unloading a dll does not clean up properly: msg#00038

lang.haskell.glasgow.bugs

Subject: [GHC] #747: Unloading a dll does not clean up properly

#747: Unloading a dll does not clean up properly
-------------------------------+--------------------------------------------
Reporter: guest | Owner:
Type: bug | Status: new
Priority: normal | Milestone:
Component: Runtime System | Version: 6.4.2
Severity: major | Keywords:
Os: Multiple | Difficulty: Unknown
Architecture: Multiple |
-------------------------------+--------------------------------------------
When a DLL is loaded it calls initUserSignals() and initDefaultHandlers().
This sets up some signal (event) handlers.
When the DLL is unloaded it does not remove those handlers.
This means that if the events happen after the DLL has been unloaded
it will dispatch into non-loaded code. This is, obviously, bad.

It's very dubious if a DLL should install these handlers at all.
At least there should be a flag if they should be installed or not.
And if installed they should be removed on exit.

--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/747>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler_______________________________________________
Glasgow-haskell-bugs mailing list
Glasgow-haskell-bugs@xxxxxxxxxxx
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs
<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise