Bug 19547 - Line numbers are off in crash reports
Summary: Line numbers are off in crash reports
Alias: None
Product: iOS
Classification: Xamarin
Component: XI runtime ()
Version: master
Hardware: PC Mac OS
: Normal normal
Target Milestone: 8.10
Assignee: Zoltan Varga
Depends on:
Reported: 2014-05-06 05:18 UTC by Rolf Bjarne Kvinge [MSFT]
Modified: 2015-07-13 16:49 UTC (History)
11 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 Rolf Bjarne Kvinge [MSFT] 2014-05-06 05:18:36 UTC
Test case:
* https://github.com/rolfbjarne/TestApp
* Deploy to device and tap on "Native crash".

The crash report from Xcode shows this:

8   testapp 0x0003c138 TestApp.AppDelegate:NativeCrash (AppDelegate.cs:58)
9   testapp 0x0003cdc0 TestApp.AppDelegate:<FinishedLaunching>m__2 (AppDelegate.cs:129)
10  testapp 0x0018b778 MonoTouch.Dialog.StringElement:Selected (Elements.cs:1420)
11  testapp 0x00194998 MonoTouch.Dialog.DialogViewController:Selected (DialogViewController.cs:1088)

and none of the frames are correct. AppDelegate.cs:58 is an empty line, AppDelegate.cs:129 doesn't exist (the file doesn't have that many lines), Elements.cs:1420 should be :711, and DialogViewController.cs:1088 should be :546

All the file names seem correct though.

If I change to the Release configuration I get different (but still wrong) line numbers.
Comment 1 Shruti 2014-05-06 06:17:22 UTC
I have tested this issue with TespApp sample. I deployed this sample to device. Sample get crashed When I tap on "Native crash, ".

iOS Device Log : https://gist.github.com/saurabh360/602e7bc840cb70c6a964
Symbolicate Log : https://gist.github.com/saurabh360/50853d873e7c2aa9e5b1
Environment Info :
=== Xamarin Studio ===

Version 5.0 (build 839)
Installation UUID: 1151d3d9-29c1-4339-b53c-a54856b47901
	Mono 3.4.0 ((no/c3fc3ba)
	GTK+ 2.24.23 (Raleigh theme)

	Package version: 304000204

=== Apple Developer Tools ===

Xcode 5.1 (5084)
Build 5B130a

=== Xamarin.iOS ===

Version: (Enterprise Edition)
Hash: c1bf29c
Build date: 2014-05-01 19:41:49-0400

=== Xamarin.Android ===

Version: 4.12.4 (Enterprise Edition)
Android SDK: /Users/shruti/Desktop/android-sdk-macosx
	Supported Android versions:
		2.1   (API level 7)
		2.2   (API level 8)
		2.3   (API level 10)
		3.1   (API level 12)
		3.2   (API level 13)
		4.0   (API level 14)
		4.0.3 (API level 15)
		4.1   (API level 16)
		4.2   (API level 17)
		4.3   (API level 18)
		4.4   (API level 19)
Java SDK: /usr
java version "1.7.0_55"
Java(TM) SE Runtime Environment (build 1.7.0_55-b13)
Java HotSpot(TM) 64-Bit Server VM (build 24.55-b03, mixed mode)

=== Xamarin.Mac ===

Xamarin.Mac: Not Installed

=== Build Information ===

Release ID: 500000839
Git revision: ea6a454f1af1af09dd11b1441507fae2dc0a8414
Build date: 2014-05-04 17:25:43-04
Xamarin addins: 4ace76e8c4a033f132d3c97d2d2159fa4bdba640

=== Operating System ===

Mac OS X 10.9.0
Darwin Shrutis-Mac-mini.local 13.0.0 Darwin Kernel Version 13.0.0
    Thu Sep 19 22:22:27 PDT 2013
    root:xnu-2422.1.72~6/RELEASE_X86_64 x86_64
Comment 2 Sebastien Pouliot 2014-06-09 14:02:12 UTC
There's another example in bug #20405. It's likely unrelated (to the bug itself) but it seems the line numbers are wrong, e.g.


Crash at line 110 of file StringAttributes.cs - but that file only has 77 lines.

27  monotouchtest                 	0x0017504c MonoTouchFixtures.Foundation.StringAttributesTests:SimpleValuesSet (StringAttributes.cs:110)
Comment 3 Lucas Romero 2015-01-02 08:57:07 UTC
We have also hit this. The line numbers in the crash reports we get from our deployed app all seem to be wrong.
Are there any plans to tackle this issue? This makes line numbers useless and debugging very hard!
Comment 4 Bernie Habermeier 2015-02-18 15:55:15 UTC
Yes, this needs fixing.

A thread related to this is here: https://forums.xamarin.com/discussion/comment/102594#Comment_102594

Customer Support seems to think this is a "low priority bug'....
Comment 5 matt 2015-02-19 05:08:05 UTC
Be interested in seeing a fix for this.
Comment 8 Nate Cook 2015-02-26 11:32:48 UTC
Please fix this.
Comment 9 Sebastien Pouliot 2015-03-03 15:11:33 UTC
Closing based on comment #6 to have QA verify this for XI 8.10.
Comment 10 Bernie Habermeier 2015-03-03 15:14:32 UTC
where is comment #6? Comments 6 and 7 don't show up... maybe they are private?  Just wondering.
Comment 11 Nate Cook 2015-03-03 15:29:34 UTC
I also do not see comment number 6 or 7.
Comment 12 Rolf Bjarne Kvinge [MSFT] 2015-03-03 17:44:16 UTC
Yes, comments 6 and 7 are private.
Comment 13 Nate Cook 2015-03-03 18:52:58 UTC
Since we are unable to see them, may we be informed of why the bug has been closed? Maybe a summary of their contents? What is XI 8.10?
Comment 14 Sebastien Pouliot 2015-03-03 21:04:15 UTC
Bugs are marked as RESOLVED/FIXED when engineering believe the issue to be fixed. Later QA verify the bugs with the milestone (8.10) and change the status to VERIFIED.

XI 8.10 is our next major version of Xamarin.iOS (after 8.6). Where 8.8 ? it's the version we plan to release when iOS 8.2 (watchkit) comes out but, beside the new API (and tooling), it will be nearly identical to the latest 8.6 service release (8.6.2 right now).
Comment 15 Parmendra Kumar 2015-05-07 09:10:49 UTC
I have checked this issue and observed that the line number is correct, after click on "Native crash".

Application output: https://gist.github.com/Parmendrak/2fafc61b86067bf9bb86

Hence closing this issue.

Environment info:
Xamarin Studio  5.9.1 (build 2)
Xcode 6.2 (6776)
Xamarin.iOS : (Enterprise Edition)
Xamarin.Android: (Enterprise Edition)
Xamarin.Mac: (Enterprise Edition)
Mac OS X 10.9.4