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

#9423: shutdownCapability sometimes loops indefinitely on OSX after hs_exit() -------------------------------------+------------------------------------- Reporter: AndreasVoellmy | Owner: simonmar Type: bug | Status: new Priority: normal | Milestone: Component: Runtime System | Version: 7.8.2 Keywords: | Operating System: MacOS X Architecture: Unknown/Multiple | Type of failure: Incorrect Difficulty: Unknown | result at runtime Blocked By: | Test Case: Related Tickets: 9284 | Blocking: | Differential Revisions: -------------------------------------+------------------------------------- Issue #9284 relates to `forkProcess`, which previously invoked the same code that is invoked by `hs_exit` and uncovered this problem. The resolution of #9284 is to not invoke the equivalent of `hs_exit` (for reasons that you can see in #9284). However, `hs_exit` can be called by programs that explicitly create and teardown a Haskell runtime, so the problem displayed by #9284 can still occur for those programs. The problem has only been observed on OS X, though it probably could occur on Linux OSes as well. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/9423 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#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

#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: Phab:D129 | -------------------------------------+------------------------------------- Changes (by AndreasVoellmy): * differential: => Phab:D129 -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/9423#comment:2 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#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: Phab:D129 |
-------------------------------------+-------------------------------------
Comment (by Austin Seipp

#9423: shutdownCapability sometimes loops indefinitely on OSX after hs_exit() -------------------------------------+------------------------------------- Reporter: | Owner: simonmar AndreasVoellmy | Status: closed Type: bug | Milestone: 7.10.1 Priority: normal | Version: 7.8.2 Component: Runtime | Keywords: System | Architecture: Unknown/Multiple Resolution: fixed | Difficulty: Unknown Operating System: MacOS X | Blocked By: Type of failure: Incorrect | Related Tickets: 9284 result at runtime | Test Case: | Blocking: | Differential Revisions: Phab:D129 | -------------------------------------+------------------------------------- Changes (by thoughtpolice): * status: new => closed * resolution: => fixed * milestone: => 7.10.1 Comment: Merged, thanks Andreas! -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/9423#comment:4 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

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

#9423: shutdownCapability sometimes loops indefinitely on OSX after hs_exit() -------------------------------------+------------------------------------- Reporter: | Owner: AndreasVoellmy | Status: new Type: bug | Milestone: 7.10.1 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: Phab:D129 | -------------------------------------+------------------------------------- Changes (by thoughtpolice): * owner: simonmar => * status: closed => new * resolution: fixed => -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/9423#comment:6 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#9423: shutdownCapability sometimes loops indefinitely on OSX after hs_exit() -------------------------------------+------------------------------------- Reporter: | Owner: AndreasVoellmy | Status: new Type: bug | Milestone: 7.10.1 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: Phab:D129 | -------------------------------------+------------------------------------- Comment (by AndreasVoellmy): Are there ticket numbers for the "Windows fallout" stuff? -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/9423#comment:7 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#9423: shutdownCapability sometimes loops indefinitely on OSX after hs_exit()
-------------------------------------+-------------------------------------
Reporter: | Owner:
AndreasVoellmy | Status: new
Type: bug | Milestone: 7.10.1
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: Phab:D129 |
-------------------------------------+-------------------------------------
Comment (by Austin Seipp

#9423: shutdownCapability sometimes loops indefinitely on OSX after hs_exit() -------------------------------------+------------------------------------- Reporter: | Owner: AndreasVoellmy | Status: closed Type: bug | Milestone: 7.10.1 Priority: normal | Version: 7.8.2 Component: Runtime | Keywords: System | Architecture: Unknown/Multiple Resolution: fixed | Difficulty: Unknown Operating System: MacOS X | Blocked By: Type of failure: Incorrect | Related Tickets: 9284 result at runtime | Test Case: | Blocking: | Differential Revisions: Phab:D129 | -------------------------------------+------------------------------------- Changes (by thoughtpolice): * status: new => closed * resolution: => fixed Comment: OK, this should be fixed For Real this time. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/9423#comment:9 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#9423: shutdownCapability sometimes loops indefinitely on OSX after hs_exit()
-------------------------------------+-------------------------------------
Reporter: AndreasVoellmy | Owner:
Type: bug | Status: closed
Priority: normal | Milestone: 7.10.1
Component: Runtime System | Version: 7.8.2
Resolution: fixed | Keywords:
Operating System: MacOS X | Architecture:
Type of failure: Incorrect result | Unknown/Multiple
at runtime | Test Case:
Blocked By: | Blocking:
Related Tickets: 9284 | Differential Revisions: Phab:D129
-------------------------------------+-------------------------------------
Comment (by Andreas Voellmy
participants (1)
-
GHC