#3790: control-C causes segfault, siginfo_t* can be NULL on Solaris
-----------------------------+----------------------------------------------
  Reporter:  duncan          |          Owner:         
      Type:  bug             |         Status:  new    
  Priority:  normal          |      Milestone:  6.12.2 
 Component:  Runtime System  |        Version:  6.12.1 
Resolution:                  |       Keywords:         
Difficulty:                  |             Os:  Solaris
  Testcase:                  |   Architecture:  sparc  
   Failure:  Runtime crash   |  
-----------------------------+----------------------------------------------
Changes (by simonmar):

  * milestone:  => 6.12.2

Comment:

 Your analysis looks reasonable.  I think it should be ok to just
 `memset(buf+1, 0, sizeof(siginfo_t))` in the case that `info == NULL`,
 because looking at the code in `libraries/unix/System/Posix/Signals.hsc`
 we use the `si_errno` field of the `siginfo_t`, but we only look at the
 rest if the signal is `SIGCHLD`.  A value of zero for `si_errno` is a
 reasonable default.

 Would you like to test and submit a patch?

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