[GHC] #7299: threadDelay broken in ghci, Mac OS X

GHC cvs-ghc at haskell.org
Wed Jan 16 10:28:55 CET 2013


#7299: threadDelay broken in ghci, Mac OS X
---------------------------------+------------------------------------------
    Reporter:  tmcdonell         |       Owner:  igloo     
        Type:  bug               |      Status:  new       
    Priority:  highest           |   Milestone:  7.6.2     
   Component:  GHCi              |     Version:  7.6.1     
    Keywords:                    |          Os:  MacOS X   
Architecture:  Unknown/Multiple  |     Failure:  GHCi crash
  Difficulty:  Unknown           |    Testcase:            
   Blockedby:  3658              |    Blocking:            
     Related:                    |  
---------------------------------+------------------------------------------

Comment(by simonmar):

 The state in `libraries/base/cbits/DarwinUtils.c` would explain why
 `threadDelay` would return immediately in GHCi, but I don't see anything
 that would cause it to crash.

 In any case, the fix is to move `initialize_timer` and `scaling_factor`
 into the RTS (or maybe just use the existing RTS facilities).

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



More information about the ghc-tickets mailing list