[GHC] #10199: Sending SIGINT to a program that uses forkOS may crash with various errors

GHC ghc-devs at haskell.org
Mon Apr 6 07:52:21 UTC 2015


#10199: Sending SIGINT to a program that uses forkOS may crash with various errors
-------------------------------------+-------------------------------------
        Reporter:  adeon             |                   Owner:  simonmar
            Type:  bug               |                  Status:  new
        Priority:  low               |               Milestone:
       Component:  Runtime System    |                 Version:  7.10.1
      Resolution:                    |                Keywords:
Operating System:  Linux             |            Architecture:  x86_64
 Type of failure:  Runtime crash     |  (amd64)
      Blocked By:                    |               Test Case:
 Related Tickets:                    |                Blocking:
                                     |  Differential Revisions:
-------------------------------------+-------------------------------------

Comment (by simonmar):

 Yes, what happens here is that the RTS shuts down while one of the forkOS
 calls is just about to call back into Haskell to create the bound thread.
 The effect is similar to calling a foreign exported function before
 calling `hs_init()` - that's where the `newBoundTask` message comes from.
 Depending on the timing, we might have got past the `newBoundTask` check
 when the RTS shuts down.  We should close that race condition.

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


More information about the ghc-tickets mailing list