[ ghc-Bugs-1370370 ] panic! 'impossible' happened, thread blocked indefinitely

SourceForge.net noreply at sourceforge.net
Fri Dec 2 04:32:06 EST 2005


Bugs item #1370370, was opened at 2005-11-30 21:04
Message generated for change (Comment added) made by simonmar
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=108032&aid=1370370&group_id=8032

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: GHCi
Group: 6.4.1
Status: Open
Resolution: None
Priority: 5
Submitted By: Nobody/Anonymous (nobody)
Assigned to: Nobody/Anonymous (nobody)
Summary: panic! 'impossible' happened, thread blocked indefinitely

Initial Comment:
GHCi, version 6.4.1, crashed with the following error: 
 
ghc-6.4.1: panic! (the `impossible' happened, GHC 
version 6.4.1): 
        thread blocked indefinitely 
 
Please report it as a compiler bug to 
glasgow-haskell-bugs at haskell.org, 
or http://sourceforge.net/projects/ghc/. 
 
I was calling a test function which was forking a 
Thread which was blocking in an 'atomically' waiting 
on a TChan. 
If I ran the test function a second time, while the 
Thread from the first run is presumably still hanging 
around, I would receive the above error/crash. 
 
If I reloaded the source in GHCi after running the 
test function a single time GHCi would give an error 
message (but not crash): 
 
*** Exception: thread blocked indefinitely 
 
Most of the time after the error message there would 
be no modules loaded.  I could load again, and repeat 
the fun. 
_Very_ occasionaly the modules would remain loaded and 
I could repeat the cycle without having to reload the 
modules. 
 
Since fixing my test function so the forked Thread 
dies at the desired time (ie now it won't be hanging 
around blocked on the TChan) I haven't observed the 
failure. 
 
My email: kgrapone at gmail.com 

----------------------------------------------------------------------

>Comment By: Simon Marlow (simonmar)
Date: 2005-12-02 09:32

Message:
Logged In: YES 
user_id=48280

Please can you supply code to reproduce the bug.

This might be the same bug as #1274506.


----------------------------------------------------------------------

Comment By: Nobody/Anonymous (nobody)
Date: 2005-11-30 21:10

Message:
Logged In: NO 

Oh, yeah: Running a 32bit Linux 2.6 kernel 

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=108032&aid=1370370&group_id=8032



More information about the Glasgow-haskell-bugs mailing list