Hi,

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.

Regards,
Takano Akio

Attachment: thr_interrupted.hs
Description: Binary data

_______________________________________________
Glasgow-haskell-users mailing list
Glasgow-haskell-users@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-users

Reply via email to