crash after writing around 40 gigabytes to stdout
After writing about 40GiB to stdout program crashes with one of these errors:
<stdout>: commitBuffer: invalid argument (Invalid argument)
<stdout>: hPutBuf: invalid argument (Invalid argument)
depending on which print function is used (Data.ByteString.Lazy.putStr or IO.putStrLn)
Occurs with 7.0.3, 7.0.2, win7 64bit, winxp 32bit
Compiled with one of these ghc calls:
ghc -rtsopts -threaded --make rec.hs -O2 -o rec.exe
ghc --make rec.hs -O2 -o rec.exe
ghc --make rec.hs -o rec.exe
Failed for both, with and without runtime settings:
rec +RTS -N2 -RTS > rec.txt
rec > rec.txt
Trac metadata
| Trac field | Value |
|---|---|
| Version | 7.0.3 |
| Type | Bug |
| TypeOfFailure | OtherFailure |
| Priority | normal |
| Resolution | Unresolved |
| Component | Compiler |
| Test case | |
| Differential revisions | |
| BlockedBy | |
| Related | |
| Blocking | |
| CC | |
| Operating system | |
| Architecture |