[GHC] #10629: threadWaitRead throws BlockedIndefinitelyOnMVar
GHC
ghc-devs at haskell.org
Wed Jul 15 15:06:59 UTC 2015
#10629: threadWaitRead throws BlockedIndefinitelyOnMVar
-------------------------------------+-------------------------------------
Reporter: | Owner: simonmar
facundo.dominguez | Status: new
Type: bug | Milestone:
Priority: normal | Version: 7.10.1
Component: Runtime System | Keywords:
Resolution: | concurrency sockets
Operating System: Linux | Architecture:
Type of failure: Incorrect result | Unknown/Multiple
at runtime | Test Case:
Blocked By: | Blocking:
Related Tickets: | Differential Revisions:
-------------------------------------+-------------------------------------
Comment (by simonmar):
`BlockedIndefinitelyOnMVar` is thrown when the thread is blocked on an
`MVar` that isn't reachable from anywhere else, which means that it will
never be woken up.
There are two possibilities:
- the exception is being thrown erroneously (unlikely, I'd guess)
- the IO manager has somehow lost the `MVar` that the thread is waiting
on.
You could proceed by instrumenting code below `GHC.Event` to find out what
happens to the `MVar` the thread is waiting on.
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/10629#comment:9>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list