[GHC] #10793: Incorrect blocked on MVar detection

GHC ghc-devs at haskell.org
Thu Aug 27 14:50:57 UTC 2015


#10793: Incorrect blocked on MVar detection
-------------------------------------+-------------------------------------
        Reporter:  NeilMitchell      |                   Owner:  simonmar
            Type:  bug               |                  Status:  closed
        Priority:  normal            |               Milestone:
       Component:  Runtime System    |                 Version:  7.10.1
      Resolution:  wontfix           |                Keywords:
Operating System:  Windows           |            Architecture:
                                     |  Unknown/Multiple
 Type of failure:  None/Unknown      |               Test Case:
      Blocked By:                    |                Blocking:
 Related Tickets:                    |  Differential Revisions:
-------------------------------------+-------------------------------------
Changes (by simonmar):

 * status:  new => closed
 * resolution:   => wontfix


Comment:

 This is working as intended.  At the time the forked thread is deadlocked,
 the main thread is also deadlocked (the dependency between them is not
 visible to the GC).  If you want to keep the main thread alive manually,
 you can do this:

 {{{
   newStablePtr =<< myThreadId
 }}}

 from the main thread.

--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/10793#comment:1>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler


More information about the ghc-tickets mailing list