[GHC] #3808: piping binary files sometimes fail
GHC
trac at galois.com
Thu Jan 7 04:53:57 EST 2010
#3808: piping binary files sometimes fail
-------------------------------+--------------------------------------------
Reporter: paolino | Owner:
Type: bug | Status: new
Priority: normal | Component: Compiler
Version: 6.12.1 | Keywords: pipe binary IO
Os: Linux | Testcase:
Architecture: x86_64 (amd64) | Failure: None/Unknown
-------------------------------+--------------------------------------------
I'm having this random bug , sometimes code succeed, sometimes not.
It must be noted that I had to choose 5000 to exploit the randomness of it
With 10000 it always fail, with 100 it always succeed.
Also substituting "take 5000 fibs" with [0..5000] it always succeed,
probably because it's much faster.
This is the console output, for 2 consecutive shots. Notice that faster
machines, or different kernels could need a different 5000, or never show
the bug.
paolino at paolino-desktop:~$ ./prod | cat |./cons
5000
paolino at paolino-desktop:~$ ./prod | cat |./cons
cons: <stdin>: hLookAhead: invalid argument (Invalid or incomplete
multibyte or wide character)
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/3808>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the Glasgow-haskell-bugs
mailing list