#1908: Haskell code as a DLL triggers timeouts in the client program
----------------------+-----------------------------------------------------
Reporter: mafo | Owner:
Type: bug | Status: new
Priority: normal | Milestone:
Component: Compiler | Version: 6.8.1
Severity: normal | Keywords:
Testcase: | Architecture: x86
Os: Linux |
----------------------+-----------------------------------------------------
A Haskell application compiled as a dynamic link library interferes
with the Timeout mechanisms of i.e. Sicstus Prolog.
It is likely that this problem also shows up with other clients of
Haskell DLLs.
The reason for the problem is that the RTS installs its own signal-handler
for timeout in /rts/posix/Itimer.c
The RTS option '--install-signal-handlers=no' really should prevent this,
but at the moment it does not.
A workaround is to also use the RTS option '-V0'
Proposal:
Also check the option --install-signal-handlers=no
in initTimer(void) in rtc/Timer.c
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/1908>
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