#4970: time002 and time004 (ghci) test failures on OS X 64 bit
------------------------------------------+---------------------------------
  Reporter:  gwright                      |          Owner:  igloo         
      Type:  bug                          |         Status:  new           
  Priority:  high                         |      Milestone:  7.2.1         
 Component:  GHCi                         |        Version:  7.0.1         
Resolution:                               |       Keywords:                
  Testcase:                               |      Blockedby:                
Difficulty:                               |             Os:  MacOS X       
  Blocking:                               |   Architecture:  x86_64 (amd64)
   Failure:  Incorrect result at runtime  |  
------------------------------------------+---------------------------------
Changes (by AntoineLatter):

 * cc: AntoineLatter (added)


Comment:

 I'm getting this issue in compiled code - the benchmark suite in the
 binary package produces great values for MB/s throughput.

 A simple:
 {{{
 import System.CPUTime
 import Control.Concurrent

 main :: IO ()
 main = do
   t1 <- getCPUTime   -- in picoseconds
   threadDelay (10^6) -- in microseconds
   t2 <- getCPUTime
   print $ fromIntegral (t2 - t1) / 10^12  -- should print ~1
 }}}
 produces nearly random output when compiled. At minimum the output should
 never be negative :-)

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/4970#comment:13>
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