#3157: ghci segmentation fault when computation is interrupted
----------------------------+-----------------------------------------------
 Reporter:  fft1976         |          Owner:        
     Type:  bug             |         Status:  new   
 Priority:  normal          |      Milestone:        
Component:  Runtime System  |        Version:  6.10.2
 Severity:  critical        |     Resolution:        
 Keywords:  ghci            |       Testcase:        
       Os:  Linux           |   Architecture:  x86   
----------------------------+-----------------------------------------------
Comment (by int-e):

 If this is on x86, libedit is responsible for the segfault. It installs
 its own {{{SIGINT}}} signal handler using {{{signal()}}} and then
 reinstalls the RTS signal handler using {{{signal}}} again. This causes
 the {{{SA_SIGINFO}}} flag to be lost. As a result, the RTS' signal handler
 does not receive the {{{siginfo_t}}} data that it needs. I have a patch
 for editline, but I haven't reported this anywhere yet.

 N.B. This does not happen in x86_64 because there the {{{siginfo_t}}} is
 always passed to the signal handler.

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/3157#comment:2>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
_______________________________________________
Glasgow-haskell-bugs mailing list
Glasgow-haskell-bugs@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs

Reply via email to