Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in / Register
  • GHC GHC
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 5,359
    • Issues 5,359
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
  • Merge requests 573
    • Merge requests 573
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
    • Test Cases
  • Deployments
    • Deployments
    • Releases
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Code review
    • Insights
    • Issue
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Glasgow Haskell CompilerGlasgow Haskell Compiler
  • GHCGHC
  • Issues
  • #488
Closed
Open
Issue created Nov 30, 2005 by nobody@trac-nobody

panic! 'impossible' happened, thread blocked indefinitely

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@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@gmail.com 
Edited Mar 09, 2019 by Simon Marlow
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking