logo       

[ ghc-Bugs-1277825 ] segmentation fault when profiling large case: msg#00045

lang.haskell.glasgow.bugs

Subject: [ ghc-Bugs-1277825 ] segmentation fault when profiling large case

Bugs item #1277825, was opened at 2005-09-01 00:31
Message generated for change (Comment added) made by simonmar
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=108032&aid=1277825&group_id=8032

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Profiling
Group: 6.4
Status: Open
Resolution: None
Priority: 5
Submitted By: Nobody/Anonymous (nobody)
Assigned to: Nobody/Anonymous (nobody)
Summary: segmentation fault when profiling large case

Initial Comment:
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.

----------------------------------------------------------------------

>Comment By: Simon Marlow (simonmar)
Date: 2005-09-13 08:51

Message:
Logged In: YES
user_id=48280

Fergus - are you the original submitter?

What was different about the environment in which the bug
exhibits?

----------------------------------------------------------------------

Comment By: Fergus Henderson (fergus)
Date: 2005-09-05 21:48

Message:
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.

----------------------------------------------------------------------

You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=108032&aid=1277825&group_id=8032


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise