ByteString causes C stack overflow in generated code
I accidentally left off the apostrophe in the following code.
cData = L.copy cData'
That's how I found out that 'fix copy' causes Haskell programs to die.
import Data.ByteString.Lazy
import Control.Monad.Fix
main = print (fix copy)
>ghc file.hs
>main
C stack overflow in generated code
>ghci
GHCi, version 6.10.1: http://www.haskell.org/ghc/ :? for help
Loading package ghc-prim ... linking ... done.
Loading package integer ... linking ... done.
Loading package base ... linking ... done.
Prelude> Control.Monad.Fix.fix Data.ByteString.copy
Loading package bytestring-0.9.1.4 ... linking ... done.
"
>ghci
GHCi, version 6.10.1: http://www.haskell.org/ghc/ :? for help
Loading package ghc-prim ... linking ... done.
Loading package integer ... linking ... done.
Loading package base ... linking ... done.
Prelude> Control.Monad.Fix.fix Data.ByteString.Lazy.copy
Loading package bytestring-0.9.1.4 ... linking ... done.
>
Trac metadata
Trac field | Value |
---|---|
Version | 6.10.1 |
Type | Bug |
TypeOfFailure | OtherFailure |
Priority | normal |
Resolution | Unresolved |
Component | Compiler |
Test case | |
Differential revisions | |
BlockedBy | |
Related | |
Blocking | |
CC | |
Operating system | |
Architecture |