Bug 31390 - Debugger crashing with error
Summary: Debugger crashing with error
Status: RESOLVED ANSWERED
Alias: None
Product: iOS
Classification: Xamarin
Component: Debugger ()
Version: XI 8.10
Hardware: PC Mac OS
: High major
Target Milestone: Untriaged
Assignee: Zoltan Varga
URL:
Depends on:
Blocks:
 
Reported: 2015-06-25 17:40 UTC by David Hathaway
Modified: 2015-06-29 05:25 UTC (History)
2 users (show)

Tags:
Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.


Please create a new report on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:
Status:
RESOLVED ANSWERED

Comment 3 Rolf Bjarne Kvinge [MSFT] 2015-06-26 11:28:22 UTC
Zoltan, can you have a look?

I can reproduce the crash with current stable (8.10.1.74) with both simulator (both i386 and x86_64) and device.

With maccore master I can only reproduce the crash with the simulators, not on device.

Unfortunately the crash report isn't very helpful (to me at least), and attaching a debugger doesn't help much since it'll run into the expected breakpoint signals.

Crash report (using maccore/master): https://gist.github.com/rolfbjarne/0dd048aa65ce7fcbf58b
Comment 4 Zoltan Varga 2015-06-26 16:35:36 UTC
That library seems to install its own signal handlers, which is probably whats causing the crash:

* thread #1: tid = 0x16b275, 0x00000001966730f0 libsystem_c.dylib`sigaction, queue = 'com.apple.main-thread', stop reason = breakpoint 1.2
  * frame #0: 0x00000001966730f0 libsystem_c.dylib`sigaction
    frame #1: 0x0000000100456a5c iOSSample`-[PLCrashSignalHandler registerHandlerWithSignal:error:] + 272
    frame #2: 0x0000000100456bfc iOSSample`-[PLCrashSignalHandler registerHandlerForSignal:callback:context:error:] + 40
    frame #3: 0x0000000100459954 iOSSample`-[PLCrashReporter enableCrashReporterAndReturnError:] + 780
    frame #4: 0x0000000100437ebc iOSSample`-[ADEumCrashReporter enableCrashReporting] + 104
    frame #5: 0x00000001004558b4 iOSSample`-[ADEumCrashReportingFeature init] + 204
    frame #6: 0x00000001004557ac iOSSample`-[ADEumCrashReportingFeatureFactory createFeature] + 32

The reason this doesn't happen on cycle6 is that we no longer use signals to implement debugging on arm64.
Comment 5 Rolf Bjarne Kvinge [MSFT] 2015-06-29 05:25:50 UTC
Zoltan is right, the library is installing it's own crash reporter, which interferes with our debugger.

The workaround is explained here: http://stackoverflow.com/a/14499336/183422