[Haskell-cafe] FFI in threaded mode (was Re: New runtime crash, not sure what to make of it)

Joel Reymont joelr1 at gmail.com
Tue Dec 6 22:29:46 EST 2005


The program runs fine in non-threaded mode, including from within  
ghci. The crash below hapens when using -threaded.

I tried to come up with a repro case but could not reproduce the crash.

	Thanks, Joel

On Dec 7, 2005, at 12:51 AM, Joel Reymont wrote:

> Program compiled with -threaded on Mac OSX. Crash happens when  
> waiting in select, I think.
>
> Program received signal EXC_BAD_ACCESS, Could not access memory.
> Reason: KERN_PROTECTION_FAILURE at address: 0x00000000
> [Switching to process 832 thread 0x2303]
> 0x0011ce20 in stg_enter_info ()
> (gdb) where
> #0  0x0011ce20 in stg_enter_info ()
> #1  0x00170e7c in StgRunIsImplementedInAssembler ()
> #2  0x001247a4 in schedule ()
> #3  0x00124468 in taskStart ()
> #4  0x0017f800 in startProcWrapper ()
> #5  0x9002b200 in _pthread_body ()

--
http://wagerlabs.com/







More information about the Haskell-Cafe mailing list