Haskell code as a DLL triggers timeouts in the client program
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
Trac metadata
Trac field | Value |
---|---|
Version | 6.8.1 |
Type | Bug |
TypeOfFailure | OtherFailure |
Priority | normal |
Resolution | Unresolved |
Component | Compiler |
Test case | |
Differential revisions | |
BlockedBy | |
Related | |
Blocking | |
CC | |
Operating system | |
Architecture |