Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#507 segmentation fault when profiling large case

6.4
open
nobody
Profiling (10)
5
2005-09-01
2005-09-01
Anonymous
No

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.

Discussion

  • code to reproduce bug

     
    Attachments
  • 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.

     
  • Simon Marlow
    Simon Marlow
    2005-09-13

    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.