#5402: Exit code is wrong with dynamically loaded libraries
---------------------------------+------------------------------------------
Reporter: Lennart | Owner:
Type: bug | Status: new
Priority: normal | Milestone:
Component: Runtime System | Version: 7.1
Keywords: | Testcase:
Blockedby: | Difficulty:
Os: Unknown/Multiple | Blocking:
Architecture: Unknown/Multiple | Failure: None/Unknown
---------------------------------+------------------------------------------
Comment(by Lennart):
It's clearly an RTS bug. All the application is doing is to loading a
shared library which will call hs_init() (unless calling hs_init(0 more
than once is now banned) and then trying to exit.
I don't know what you think the proper fix is. Right now we FFI import
stg_exit() and call that instead of exitWith, and that works.
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/5402#comment:4>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs