Does ghc have daemon threads again?

Simon Marlow simonmar at microsoft.com
Mon Feb 4 05:34:23 EST 2002


> I have a program which comes to the end of the main action, 
> but nevertheless won't go away.  Is this
> a bug?  When I give up and interrupt it, I get a message 
> "fatal error: resurrectThreads: thread blocked in a strange 
> way"; could this be connected?

The behaviour hasn't changed: when the main thread completes, the
program ends.  However, we do run finalizers first, and if one of the
finalizers blocks on an unavailable resource (perhaps something the main
thread forgot to free?), then you'll get a deadlock.

However, you shouldn't get the resurrectThreads error msg; any chance of
a repeatable example?  (or is it the whole of UniForm again :-()

Cheers,
	Simon



More information about the Glasgow-haskell-bugs mailing list