#1980: sporadic segmentation faults
----------------------------+-----------------------------------------------
 Reporter:  maeder          |          Owner:  simonmar
     Type:  bug             |         Status:  new     
 Priority:  normal          |      Milestone:  6.8.3   
Component:  Runtime System  |        Version:  6.8.2   
 Severity:  normal          |     Resolution:          
 Keywords:                  |     Difficulty:  Unknown 
 Testcase:                  |   Architecture:  x86     
       Os:  Linux           |  
----------------------------+-----------------------------------------------
Comment (by simonmar):

 Thanks to your debug log, I've managed to construct an example that
 reproduces the bug, and I know how to fix it.  Great!

 {{{
 import Control.Exception
 import Control.Concurrent

 main = do
   thr <- myThreadId
   evaluate $ increase_stack 1000
   throwTo thr (AsyncException ThreadKilled)
  where
   increase_stack 0 = 1
   increase_stack n = increase_stack (n-1) + n
 }}}

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/1980#comment:5>
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