Hi,

two weeks ago we decided to go from ghc-0.29 to ghc-2.01. With Solaris
all seems to be quite well. Out sources make heavy use of the
concurrency features.

With Linux it does not at all seem to be OK. The following program
works well for ghc-0.29 when I call it with "+RTS -C". Without this,
it stops exactly after printing "500".

The program was compiled with:

ghc-0.29 -v -o ConcTest -syslib ghc -fhaskell-1.3 -fglasgow-exts
-concurrent -cpp -hi-diffs ConcTest.hs

or 

ghc-2.01 -v -o ConcTest -recomp -syslib ghc -fhaskell-1.3
-fglasgow-exts -concurrent -cpp -hi-diffs ConcTest.hs


-------------------------------------------------------
module Main (main) where

import Concurrent

main = sequence [forkIO (scr i) | i <- [1..1000]]
        where scr i = putStr ((show i) ++ "\n")

--------------------------------------------------------

ghc-2.01 produces:

stefan@eiger:/tmp > ConcTest
1
2
3
[..]
52
53
54
56
Segmentation fault
stefan@eiger:/tmp > 


or 


stefan@eiger:/tmp > ConcTest +RTS -C
Segmentation fault
stefan@eiger:/tmp > 



Can anyone help me with this !?

Thanks, Stefan.
-- 
Stefan Westmeier                              [EMAIL PROTECTED]
Schaphuser Str. 24                      [EMAIL PROTECTED]
D-28307 Bremen                             vox humana: +(49) 421 424001
Germany                                   fax machina: +(49) 421 424045

Reply via email to