[Haskell-cafe] threads + IORefs = Segmentation fault?

Alfonso Acosta alfonso.acosta at gmail.com
Sat Jan 19 14:36:55 EST 2008


On Jan 19, 2008 2:36 PM, David Roundy <droundy at darcs.net> wrote:
> Using ghc 6.6, but I've since isolated the bug as being unrelated to the
> IORefs and threading, it was in an FFI binding that somehow never died
> until I was testing this new code.

In case the you are creating a binding of haskell code. Did you make
sure that the runtime constructor and destructor (hs_* functions) are
properly called? The could be the source of the segfault.


More information about the Haskell-Cafe mailing list