Bug 6536 - MT crash reports aren't symbolicated properly
Summary: MT crash reports aren't symbolicated properly
Alias: None
Product: iOS
Classification: Xamarin
Component: General ()
Version: 5.99.x
Hardware: PC Linux
: --- normal
Target Milestone: Untriaged
Assignee: Bugzilla
Depends on:
Reported: 2012-08-15 08:12 UTC by Marek Habersack
Modified: 2012-08-15 15:05 UTC (History)
3 users (show)

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:

Description Marek Habersack 2012-08-15 08:12:44 UTC
  Xcode: 4.4.1
  OSX: 10.8
  MonoTouch: 5.1.13
  MonoDevelop: git master rev c666196ba

When the application crashes (or is forcibly killed on device), looking at the crash report in Organizer reveals that only the SDK symbols have been resolved, the MT app ones are not.

Steps to reproduce:

 * Open Hello_iPad sample in MonoDevelop
 * Set configuration to Debug|iPhone
 * Start debugging on device
Comment 1 Marek Habersack 2012-08-15 08:16:17 UTC
submitted the report prematurely :). The remaining repro steps:

 * Force the application to quit (Hold the On/Off button until Slide to power off apears, hold the Home button until the app crashes)
 * Open Organizer
 * Open the crash report from the device, Xcode will symbolicate the output automatically

The generated dSym output is correct, since it's possible to resolve the symbols using atos like so:

atos -arch arm7 -o Hello_iPad.app/Hello_iPad 0xXXXXXXXX

provided that both Hello_iPad.app and Hello_iPad.app.dSYM are siblings in the same directory
Comment 3 Miguel de Icaza [MSFT] 2012-08-15 15:05:04 UTC
The problem is that symbolication actually requires MacOS Spotlight to run and process your file.

So you really are at the mercy of mdworker.   Sometimes it might be busy, sometimes it might be waiting, sometimes it might not know that the code was added.

Recent mtouch versions manually call the tool to force a reload of the metadata, but ssymbols for other apps (like the runtime) must be dealt with manually.