Segfault in reportCCSProfiling
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 ()
Trac metadata
Trac field | Value |
---|---|
Version | 7.1 |
Type | Bug |
TypeOfFailure | OtherFailure |
Priority | normal |
Resolution | Unresolved |
Component | Profiling |
Test case | |
Differential revisions | |
BlockedBy | |
Related | |
Blocking | |
CC | |
Operating system | |
Architecture |