[Haskell-cafe] Signal 2 and -threaded

Simon Marlow simonmar at microsoft.com
Tue Dec 6 08:42:19 EST 2005

On 06 December 2005 10:59, Joel Reymont wrote:

> I'm seeing some funky behavior in my program compiled with -threaded.
> It runs for a little while and then catches signal 2 and quits. This
> does not happen when -threaded is not used.
> I'm compiling my library with -threaded so that is always constant.
> The above applies to my main module and another module that is part
> of it.
> Any ideas?

I don't know any reason your program should be getting signal 2 (SIGINT,
I assume), unless the program sends itself SIGINT or someone else does.
Maybe on your system a process gets SIGINT when it exceeds some resource

Have you tried strace or equivalent (truss?)?


More information about the Haskell-Cafe mailing list