'interrupted' when exiting

Akio Takano tkn.akio at gmail.com
Mon Mar 4 07:02:57 CET 2013


If I compile and run the attached program in the following way, it
crashes on exit:

$ ghc -threaded thr_interrupted.hs
$ ./thr_interrupted
thr_interrupted: Main_dtl: interrupted

This is particularly bad when profiling, because the program
terminates before writing to the .prof file.

Is this a bug in GHC, or am I supposed to terminate the thread before
exiting? If it's a GHC issue, how should it be fixed? It seems that
the error was raised in the C stub code GHC generated for the foreign
import "wrapper" function.

Takano Akio
-------------- next part --------------
A non-text attachment was scrubbed...
Name: thr_interrupted.hs
Type: application/octet-stream
Size: 381 bytes
Desc: not available
URL: <http://www.haskell.org/pipermail/glasgow-haskell-users/attachments/20130304/29259fa6/attachment.obj>

More information about the Glasgow-haskell-users mailing list