Xcode7 Coverage Crash

iMac :10.10.5 (14F27)

Xcode7:Version 7.0 (7A220)

when I set(just follow this page:https://developer.apple.com/library/ios/qa/qa1514/_index.html)

Generate Debug Symbols -> YES

Generate Test Coverage Files -> YES

Instrument Program Flow -> YES

then I use __gcov_flush() to generate gcda datas, my app crash .

I'm seeing multiple messages like this

profiling: /Users/developex/repos/CodeComfort/rep/ObjectiveC.gcda: cannot merge previous GCDA file: corrupt arc tag (0x6375646f)

And the crash stacks:

0.llvm_emit_function

1.__gcov_flush()

2.my flush call



Anybody got any ideas on what to do?

I have same issue when I enable coverage flags for my static lib. Is there any way to find problem file from my static library (I mean such file, when emit coverage info for this file, crash is rised)?

I have a small progress. I find out 'problem' files which can't be emited. I did it with help of stack memory inspecting when I get crash. So in memory I found out clues about relating files. When I exclude these files from project (or comment some methods), I don't have any crashes. These files big enough but they are not the biggest in project. I didn't determine exact criteria of crash yet. I suspect it's a 'not enough memory' issue. Sometimes I also get a "_platform_memmove$VARIANT$sse42" error.


Does anyone know how can I control coverage files emiting process? Can I exclude specific files from coverage for certain target (static lib in my case)? Or maybe there is special directives which can increase keeping emiting data memory?

Also 'address sanytizer' enabling sometimes helps me to prevent crash.

Xcode7 Coverage Crash
 
 
Q