#5866: Interrupting interleaved STM and resuming it produces segfault
---------------------------------+------------------------------------------
    Reporter:  joeyadams         |       Owner:  simonmar        
        Type:  bug               |      Status:  new             
    Priority:  high              |   Milestone:  7.4.2           
   Component:  Runtime System    |     Version:  7.4.1           
    Keywords:                    |          Os:  Unknown/Multiple
Architecture:  Unknown/Multiple  |     Failure:  Runtime crash   
  Difficulty:  Unknown           |    Testcase:                  
   Blockedby:                    |    Blocking:                  
     Related:                    |  
---------------------------------+------------------------------------------

Comment(by simonmar):

 I have a fix for the segfault that I'll commit shortly.

 The reason that `getLine` does not resume correctly is that the IO library
 does not recognise `Timeout` as an asynchronous exception - it looks for
 the `AsyncException` type.  Really this is wrong, because whether an
 exception is asynchronous is a property of how it was thrown, not the
 exception itself, but we don't currently have a way for the handler to
 tell whether an exception was thrown asynchronously or not.  That is a
 topic for another ticket, which I'll create...

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

_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs

Reply via email to