Bug 29173 - Crash on Breakpoint (After converting to Unified API)
Summary: Crash on Breakpoint (After converting to Unified API)
Status: RESOLVED FIXED
Alias: None
Product: iOS
Classification: Xamarin
Component: Debugger ()
Version: XI 8.10
Hardware: Macintosh Mac OS
: --- normal
Target Milestone: Untriaged
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2015-04-16 21:52 UTC by pperera
Modified: 2015-04-21 02:43 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 FIXED

Description pperera 2015-04-16 21:52:52 UTC
I've converted an app I'm working on for my company to Unified API for the June 1st Deadline. However when debugging the app on device, the app crashes wherever I set a breakpoint (removing the breakpoint or running without the debugger attached the app works fine)

Follows is the stacktrace:
Native stacktrace:
Apr 17 10:04:16 iPhone highProfileApp[284] <Warning>: critical: 	0   highProfileApp                        0x0000000100e950e8 mono_handle_native_sigsegv + 264
Apr 17 10:04:16 iPhone highProfileApp[284] <Warning>: critical: 	1   highProfileApp                        0x0000000100e9ef08 mono_sigsegv_signal_handler + 316
Apr 17 10:04:16 iPhone highProfileApp[284] <Warning>: critical: 	2   libsystem_platform.dylib            0x000000019896c95c _sigtramp + 68
Apr 17 10:04:16 iPhone highProfileApp[284] <Warning>: critical: 	3   highProfileApp                        0x0000000100e85414 frame_commands + 704
Apr 17 10:04:16 iPhone highProfileApp[284] <Warning>: critical: 	4   highProfileApp                        0x0000000100e85414 frame_commands + 704
Apr 17 10:04:16 iPhone highProfileApp[284] <Warning>: critical: 	5   highProfileApp                        0x0000000100e7ee24 debugger_thread + 2280
Apr 17 10:04:16 iPhone highProfileApp[284] <Warning>: critical: 	6   highProfileApp                        0x0000000100f4b9d0 inner_start_thread + 196
Apr 17 10:04:16 iPhone highProfileApp[284] <Warning>: critical: 	7   libsystem_pthread.dylib             0x0000000198973dc8 <redacted> + 164
Apr 17 10:04:16 iPhone highProfileApp[284] <Warning>: critical: 	8   libsystem_pthread.dylib             0x0000000198973d24 <redacted> + 0
Apr 17 10:04:16 iPhone highProfileApp[284] <Warning>: critical: 	9   libsystem_pthread.dylib             0x0000000198970ef8 thread_start + 4
Apr 17 10:04:16 iPhone highProfileApp[284] <Warning>: critical:
=================================================================
Got a SIGSEGV while executing native code. This usually indicates
a fatal error in the mono runtime or one of the native libraries
used by your application.
=================================================================
Apr 17 10:04:16 iPhone ReportCrash[286] <Error>: task_set_exception


To be sure nothing else is interfering with the debugger, I've removed anything that might catch any of the iOS Error interrupts, i.e.  Crash Reporting Libs; such as Insights, and other analytics libs.

I am able to set a breakpoint in Main, which resolves, but anything after that either doesn't resolve (in FinishLaunching) or crashes (after a UI event in the app).
Comment 1 Rolf Bjarne Kvinge [MSFT] 2015-04-17 12:04:37 UTC
These breakpoint crashes are very specific, so could you give us access to your project so that we can reproduce this ourselves and fix it?
Comment 2 pperera 2015-04-20 19:50:39 UTC
I need to remove some dependancies in the code that I'm under NDA to reveal. 

In the meantime we have identified this is a regression from Xamarin.iOS 8.8.1.9 (Enterprise Edition) to Version: 8.9.1.3 (Enterprise Edition). I've been able to set a breakpoint which resolves without a crash on 8.8.1.9. 

I've tried to make a small test case that would be simpler to share but this problem isn't so easy to reproduce on a simple project.
Comment 3 pperera 2015-04-21 02:43:56 UTC
It appears the problem was a bad upgrade of Xamarin.iOS (8.8.1.9 > 8.9.1.3) after restoring to the latest version I'm not able to reproduce this issue.