Crash on printing a ClockTime with a negative value for number of seconds since the epoch
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
Trac metadata
Trac field | Value |
---|---|
Version | 6.8.3 |
Type | Bug |
TypeOfFailure | OtherFailure |
Priority | normal |
Resolution | Unresolved |
Component | Compiler |
Test case | |
Differential revisions | |
BlockedBy | |
Related | |
Blocking | |
CC | |
Operating system | |
Architecture |