#4247: getCPUTime on x86_64 Mac OS X 10.6
-------------------------------+--------------------------------------------
    Reporter:  quark           |       Owner:                             
        Type:  bug             |      Status:  new                        
    Priority:  normal          |   Component:  libraries/base             
     Version:  6.10.4          |    Keywords:                             
    Testcase:                  |   Blockedby:                             
          Os:  MacOS X         |    Blocking:                             
Architecture:  x86_64 (amd64)  |     Failure:  Incorrect result at runtime
-------------------------------+--------------------------------------------
 I have GHC 6.10.4 installed on a recent Mac Mini, which is running a
 32-bit kernel (Snow Leopard, 10.6) but has 64-bit GHC installed, using
 MacPorts.  I've compiled a very large commercial product with this
 installation (with FFI etc) and the product's testsuite passes, so I'm
 fairly confident that GHC is working ... except that "getCPUTime" is
 giving bogus values.

 This simple program:
 {{{
 import CPUTime
 fn = do t <- getCPUTime
         putStrLn ("t = " ++ show t)
         fn
 main :: IO ()
 main = fn
 }}}
 ought to produce increasing values of "t".  However, the output jumps
 around wildly, from 10^22^, to 10^24^, to 10^15^.

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/4247>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs

Reply via email to