Bug in GHC 6.2.1
gwright at comcast.net
Tue Apr 13 10:09:21 EDT 2004
Is this bug the same as the one I reported on 25 March (Nit with 6.2.1)?
The original report:
> I built 6.2.1 on Mac OS X 10.3.3 from source with OpenGL support.
> I built the Cube.hs demo program and it compiles and runs fine, but if
> terminate it with crtl-C instead of hitting "q" in the OpenGL window,
> I get
> the error message
> > ./Cube
> ^CCube: internal error: unblockThread
> Please report this as a bug to glasgow-haskell-bugs at haskell.org,
> or http://www.sourceforge.net/projects/ghc/
> (Hitting "q" in the OpenGL display window causes graceful termination.)
> Perhaps the error message is simply overly enthusiastic. Or maybe there
> is something wrong.
> Best Wishes,
On Apr 13, 2004, at 9:49 AM, Simon Marlow wrote:
>> 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/
> Thanks, that's a bug. I've fixed it in CVS.
> As far as I can tell, only aborting a program with Ctrl-C should
> the bug.
> Glasgow-haskell-bugs mailing list
> Glasgow-haskell-bugs at haskell.org
More information about the Glasgow-haskell-bugs