#5305: crash after writing around 40 gigabytes to stdout
---------------------------------+------------------------------------------
Reporter: lava | Owner:
Type: bug | Status: new
Priority: normal | Component: Compiler
Version: 7.0.3 | Keywords:
Testcase: | Blockedby:
Os: Windows | Blocking:
Architecture: Unknown/Multiple | Failure: Runtime crash
---------------------------------+------------------------------------------
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
}}}
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/5305>
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