#2479: Crash on printing a ClockTime with a negative value for number of seconds
since the epoch
-----------------------+----------------------------------------------------
Reporter: wozer | Owner:
Type: bug | Status: new
Priority: normal | Component: Compiler
Version: 6.8.3 | Severity: normal
Keywords: | Testcase:
Architecture: x86 | Os: Windows
-----------------------+----------------------------------------------------
This happened on a Windows XP machine.
Example program:
{{{
import System.Time
import Control.Exception
main= do
let agesAgo = TOD (-1000) 0
putStrLn "created"
test <- evaluate agesAgo
putStrLn "evaluated"
putStrLn $ show test -- crashes
putStrLn "printed"
}}}
Output:
{{{
created
evaluated
Segmentation fault/access violation in generated code
}}}
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/2479>
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