If the attached file is compiled with -prof -auto-all,
the binary produced will segfault (even if RTS
profiling options are not present). This seems to be
caused by a combination of a case statement with a
large number of branches and a relatively complex value
at the end of each branch - reducing the number of
branches by one or changing any of the data
declarations to newtypes eliminates the segfault.
code to reproduce bug
Logged In: YES
user_id=135331
I tried reproducing this using ghc 6.4 on Debian Linux,
but I was unable to reproduce the bug. The program compiled
fine with "ghc -prof -auto-all bug.hs" and I was able to get
a profile
by running "./a.out +RTS -p" and looking at a.out.prof.
Logged In: YES
user_id=48280
Fergus - are you the original submitter?
What was different about the environment in which the bug
exhibits?
Logged In: YES
user_id=135331
No, I am not the original submitter.