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.
Log in to post a comment.