Bug in GHC 6.2.1
Benjamin Franksen
benjamin.franksen at bessy.de
Fri Apr 2 15:01:08 EST 2004
This is the program:
import Control.Concurrent
main = do
m <- newEmptyMVar
forkIO $ do
s <- getLine
putMVar m s
s <- takeMVar m
putStrLn s
> ghc --make Bug.hs [21:54]
Chasing modules from: Bug.hs
Compiling Main ( Bug.hs, Bug.o )
Linking ...
> ./a.out [21:57]
# Now hit Ctrl-C
a.out: internal error: main thread has been GC'd
Please report this as a bug to glasgow-haskell-bugs at haskell.org,
or http://www.sourceforge.net/projects/ghc/
Ben
More information about the Glasgow-haskell-bugs
mailing list