ghc-6.8.1 segfaults with clean Parsec code
ghc -e and ghci segfault with this code. this should explain itself:
paczesiowa@paczesiowa ~ $ ghc Segfault.hs -e "main" -Wall -Werror
Segmentation fault
paczesiowa@paczesiowa ~ $ ghci Segfault.hs
GHCi, version 6.8.1: http://www.haskell.org/ghc/ :? for help
Loading package base ... linking ... done.
[1 of 1] Compiling Main ( Segfault.hs, interpreted )
Ok, modules loaded: Main.
*Main> main
Loading package parsec-2.1.0.0 ... linking ... done.
Segmentation fault
paczesiowa@paczesiowa ~ $ ghc Segfault.hs -package parsec -o segfault && ./segfault
Struct "john" [Numb 1]
I'm sorry that this file is that big, but I couldn't locate exact error-prone code. It happens on x86,x64,ppc-G4 linux and windows.
Trac metadata
Trac field | Value |
---|---|
Version | 6.8.1 |
Type | Bug |
TypeOfFailure | OtherFailure |
Priority | normal |
Resolution | Unresolved |
Component | Compiler |
Test case | |
Differential revisions | |
BlockedBy | |
Related | |
Blocking | |
CC | |
Operating system | Multiple |
Architecture | Multiple |