Building ghc-6.4 on Solaris x86

Simon Marlow simonmarhaskell at gmail.com
Tue May 2 07:16:27 EDT 2006


Georg Sauthoff wrote:

> [..]
> 
>>If I go into ghc/rts and manually execute the last command, it terminates
>>sometimes. I.e. if I execute it manually 20 times, 1 time it hangs and
>>19 times it terminates ...
> 
> [..]
> 
> to give more information:
> 
> In the log from a truss[1] after hanging this block gets repeated on and on:
> /1:     88.5631 setcontext(0x08046AD0)
> /1:     88.5830     Received signal #14, SIGALRM, in lwp_park() [caught]
> /1:     88.5831 lwp_park(0x00000000, 0)                         Err#91 ERESTART
> /1:     88.5831 lwp_sigmask(SIG_SETMASK, 0x00002000, 0x00000000) = 0xFFBFFEFF [0
> x0000FFFF]

There appears to be a problem with the threaded RTS on some platforms: 
Solaris and possibly FreeBSD.  I haven't been able to track down the 
problem yet - if someone could build GHC with -threaded -debug and send 
me the output from +RTS -Ds, that might help.

You could work around this by removing the -threaded option in 
ghc/compiler/Makefile.

Cheers,
	Simon


More information about the Glasgow-haskell-users mailing list