[GHC] #8298: +RTS -hb crash when blocking on empty TChan

#8298: +RTS -hb crash when blocking on empty TChan ------------------------------------------------+-------------------------- Reporter: exFalso | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: Runtime System | Version: 7.6.3 Keywords: biographical stm tchan block | Operating System: Linux Architecture: x86_64 (amd64) | Type of failure: Difficulty: Unknown | Runtime crash Blocked By: | Test Case: Related Tickets: | Blocking: ------------------------------------------------+-------------------------- Running the following code {{{ module Main where import Control.Concurrent import Control.Concurrent.STM main :: IO () main = do c <- newTChanIO forkIO . atomically $ readTChan c return () }}} produces: {{{ $ ./tmp +RTS -hb tmp: internal error: Invalid object in processHeapClosureForDead(): 0 (GHC version 7.6.3 for x86_64_unknown_linux) }}} It crashes without forkIO as well, I inserted it so that a plain run doesn't result in "thread blocked indefinitely in an STM transaction". -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/8298 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#8298: +RTS -hb crash when blocking on empty TChan --------------------------+------------------------------------------------ Reporter: | Owner: exFalso | Status: new Type: bug | Milestone: Priority: | Version: 7.6.3 normal | Keywords: biographical stm tchan block Component: | Architecture: x86_64 (amd64) Runtime System | Difficulty: Unknown Resolution: | Blocked By: 8275 Operating System: Linux | Related Tickets: Type of failure: | Runtime crash | Test Case: | Blocking: | --------------------------+------------------------------------------------ Changes (by ezyang): * blockedby: => 8275 Comment: Investigate this when profiling is fixed on HEAD. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/8298#comment:1 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#8298: +RTS -hb crash when blocking on empty TChan --------------------------+------------------------------------------------ Reporter: | Owner: exFalso | Status: new Type: bug | Milestone: Priority: | Version: 7.6.3 normal | Keywords: biographical stm tchan block Component: | Architecture: x86_64 (amd64) Runtime System | Difficulty: Unknown Resolution: | Blocked By: 8275 Operating System: Linux | Related Tickets: Type of failure: | Runtime crash | Test Case: | Blocking: | --------------------------+------------------------------------------------ Changes (by jstolarek): * cc: simonmar (added) Comment: Loopification is now turned off by default in HEAD. Perhaps this ticket can now be investigated? -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/8298#comment:2 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#8298: +RTS -hb crash when blocking on empty TChan --------------------------+------------------------------------------------ Reporter: | Owner: exFalso | Status: new Type: bug | Milestone: Priority: | Version: 7.6.3 normal | Keywords: biographical stm tchan block Component: | Architecture: x86_64 (amd64) Runtime System | Difficulty: Unknown Resolution: | Blocked By: 8275 Operating System: Linux | Related Tickets: Type of failure: | Runtime crash | Test Case: | Blocking: | --------------------------+------------------------------------------------ Comment (by jstolarek): Ooops, I accidentally added simonmar - sorry about that (FF auto- complete?). -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/8298#comment:3 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#8298: +RTS -hb crash when blocking on empty TChan --------------------------+------------------------------------------------ Reporter: | Owner: exFalso | Status: new Type: bug | Milestone: Priority: | Version: 7.6.3 normal | Keywords: biographical stm tchan block Component: | Architecture: x86_64 (amd64) Runtime System | Difficulty: Unknown Resolution: | Blocked By: 8275 Operating System: Linux | Related Tickets: Type of failure: | Runtime crash | Test Case: | Blocking: | --------------------------+------------------------------------------------ Comment (by simonmar): I fixed a bug in `-hb` recently: 83be3d7b8881eca63adf834e425e6799e572bd1f/ghc I haven't tested this example though, it might be that there are more bugs to find. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/8298#comment:4 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#8298: +RTS -hb crash when blocking on empty TChan
--------------------------+------------------------------------------------
Reporter: | Owner:
exFalso | Status: new
Type: bug | Milestone:
Priority: | Version: 7.6.3
normal | Keywords: biographical stm tchan block
Component: | Architecture: x86_64 (amd64)
Runtime System | Difficulty: Unknown
Resolution: | Blocked By: 8275
Operating System: Linux | Related Tickets:
Type of failure: |
Runtime crash |
Test Case: |
Blocking: |
--------------------------+------------------------------------------------
Comment (by Simon Marlow

#8298: +RTS -hb crash when blocking on empty TChan --------------------------+------------------------------------------------ Reporter: | Owner: exFalso | Status: closed Type: bug | Milestone: Priority: | Version: 7.6.3 normal | Keywords: biographical stm tchan block Component: | Architecture: x86_64 (amd64) Runtime System | Difficulty: Unknown Resolution: fixed | Blocked By: Operating System: Linux | Related Tickets: Type of failure: | Runtime crash | Test Case: | Blocking: | --------------------------+------------------------------------------------ Changes (by simonmar): * status: new => closed * resolution: => fixed * blockedby: 8275 => Comment: Optimistically assuming fixed. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/8298#comment:6 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler
participants (1)
-
GHC