Ticket #5177 (closed bug: fixed)
Segfault in reportCCSProfiling
| Reported by: | dankna | Owned by: | simonmar |
|---|---|---|---|
| Priority: | high | Milestone: | 7.2.1 |
| Component: | Profiling | Version: | 7.1 |
| Keywords: | Cc: | dankna@… | |
| Operating System: | MacOS X | Architecture: | x86_64 (amd64) |
| Type of failure: | Runtime crash | Difficulty: | |
| Test Case: | Blocked By: | ||
| Blocking: | Related Tickets: |
Description
The test case is rather hard to reduce; sorry about that. I can provide my entire program on request, but it's hard to build, too, due to its polyglot nature. It may be relevant to know that I am running Haskell as a library from an Objective C main program. This does reproduce for me, so I can try further experiments if anyone can suggest any. The crash happens only when -O2 is turned on, not when only -O is. It also does not happen if -O2 and -funbox-strict-fields are on
My version is a GHC that I built myself from git; it comes up as 7.1.20110504-x86_64. I am running on OS X 10.6.7 with XCode 4. Here is a stack trace produced by gdb:
#0 0x00007fff83fac120 in strlen () #1 0x00007fff83fb7b1c in __vfprintf () #2 0x00007fff83ff8dcb in vfprintf_l () #3 0x00007fff83ff8d4e in fprintf () #4 0x0000000100250775 in reportCCSProfiling ()
