[GHC] #9423: shutdownCapability sometimes loops indefinitely on OSX after hs_exit()

GHC ghc-devs at haskell.org
Fri Aug 8 15:28:06 UTC 2014


#9423: shutdownCapability sometimes loops indefinitely on OSX after hs_exit()
-------------------------------------+-------------------------------------
              Reporter:              |            Owner:  simonmar
  AndreasVoellmy                     |           Status:  new
                  Type:  bug         |        Milestone:
              Priority:  normal      |          Version:  7.8.2
             Component:  Runtime     |         Keywords:
  System                             |     Architecture:  Unknown/Multiple
            Resolution:              |       Difficulty:  Unknown
      Operating System:  MacOS X     |       Blocked By:
       Type of failure:  Incorrect   |  Related Tickets:  9284
  result at runtime                  |
             Test Case:              |
              Blocking:              |
Differential Revisions:              |
-------------------------------------+-------------------------------------

Comment (by AndreasVoellmy):

 The attached program illustrates the problem. Compile like this, where
 `<your-ghc>` should be a recent (7.8.x) GHC:

 {{{
 <your-ghc> -c Foo.hs
 <your-ghc> -threaded -no-hs-main FooMain.c Foo.o
 }}}

 Then run `a.out`. You should see some printouts and then it should hang
 (i.e. fail to terminate). You may need to run it a few times t see the
 behavior.

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


More information about the ghc-tickets mailing list