[GHC] #7528: Non terminating thunk resolution blocks world, even in the case of forkOS

GHC cvs-ghc at haskell.org
Tue Dec 25 15:32:39 CET 2012


#7528: Non terminating thunk resolution blocks world, even in the case of forkOS
----------------------------------------+-----------------------------------
Reporter:  timthelion                   |          Owner:                         
    Type:  bug                          |         Status:  new                    
Priority:  normal                       |      Component:  Runtime System         
 Version:  7.4.2                        |       Keywords:  forkOS Concurrent thunk
      Os:  Unknown/Multiple             |   Architecture:  x86_64 (amd64)         
 Failure:  Incorrect result at runtime  |      Blockedby:                         
Blocking:                               |        Related:                         
----------------------------------------+-----------------------------------
 Please see:
 http://comments.gmane.org/gmane.comp.lang.haskell.cafe/102479

 >{-# LANGUAGE ScopedTypeVariables #-}
 >import Control.Concurrent

 >main = do
 > putStrLn "Hello"
 > forkOS neverEnds
 > putStrLn "Bye bye" --We never get here(or at least I don't).

 >neverEnds = do
 > let (a::String) = a
 > putStrLn a

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/7528>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler



More information about the Glasgow-haskell-bugs mailing list