RE: takeMVar causes 'Segentation fault' when called from C

2002-09-02 Thread Simon Marlow
> Following example causes 'Segentation fault' under > Linux (Mandrake). Under Windows it works well. This is a known bug in 5.04; the fix will be in 5.04.1. Thanks for the report. Cheers, Simon ___ Glasgow-haskell-bugs mailing list [EMAIL PRO

takeMVar causes 'Segentation fault' when called from C

2002-08-30 Thread Krasimir Angelov
Following example causes 'Segentation fault' under Linux (Mandrake). Under Windows it works well. --- module Main where import Control.Concurrent.MVar import System.IO.Unsafe main = cfun >> main foreign export ccall hfun :: IO () foreign import c