#7303: RTS : Race condition with usage of timer_delete
 Reporter:  erikd                |          Owner:                  
     Type:  bug                  |         Status:  patch           
 Priority:  normal               |      Component:  Compiler        
  Version:  7.7                  |       Keywords:                  
       Os:  Linux                |   Architecture:  Unknown/Multiple
  Failure:  Building GHC failed  |       Testcase:                  
Blockedby:                       |       Blocking:                  
  Related:                       |  

Comment(by erikd@…):

 commit 5f3c1055c2a5a59117985420909dd9148d7b2ba6
 Author: Erik de Castro Lopo <er...@mega-nerd.com>
 Date:   Sat Oct 6 17:23:01 2012 +1000

     rts: Ignore signal before deleting timer. Fixes #7303.

     Was getting an ocassional hang or segfault when building GHC in a
     Qemu user space emulation of ARM. Turned out that the ITIMER_SIGNAL
     was being delivered *after* the call to timer_delete(). Setting the
     signal to SIG_IGN before deleting the timer solves the problem.

  rts/posix/Itimer.c |    3 +++
  1 files changed, 3 insertions(+), 0 deletions(-)

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

Glasgow-haskell-bugs mailing list

Reply via email to