Bug 17580 - Debugging to device crashes silently
Summary: Debugging to device crashes silently
Alias: None
Product: iOS
Classification: Xamarin
Component: General ()
Version: 7.0.6.x
Hardware: PC Mac OS
: Normal normal
Target Milestone: Untriaged
Assignee: Bugzilla
Depends on:
Reported: 2014-02-03 17:37 UTC by Doug G
Modified: 2014-03-17 13:02 UTC (History)
6 users (show)

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

Test application (1.24 MB, application/x-zip-compressed)
2014-02-03 17:37 UTC, Doug G
XCode log (12.86 KB, text/plain)
2014-02-03 17:37 UTC, Doug G
Device Crash Log (24.30 KB, application/octet-stream)
2014-02-19 17:19 UTC, Sebastien Pouliot

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 Doug G 2014-02-03 17:37:18 UTC
Created attachment 5965 [details]
Test application

Attached is a test application that crashes upon trying to access the ServiceStack.Text project included trying to debug to a device. There isn't any output in Xamarin Studio that indicates the cause of the crash or that it even happened. The log from XCode suggests that it's an issue with the linker (also attached). I've tried flipping between link SDK assemblies and link all assemblies to no avail.

Doing debug and release builds to the iPhone simulator work fine, as do release builds to a device.
Comment 1 Doug G 2014-02-03 17:37:49 UTC
Created attachment 5966 [details]
XCode log
Comment 2 Zoltan Varga 2014-02-04 01:33:32 UTC
I can't reproduce this with
Comment 3 Mohit Kheterpal 2014-02-04 04:14:14 UTC
Today we have checked this issue and when we deploy attached sample then it crashed as soon as it launches on device.

Device Log : https://gist.github.com/saurabh360/5d76d3c96d2048018b2d

Device info : iPhone 4S : 7.0.4

Environment Details :
=== Xamarin Studio ===

Version 4.2.2 (build 2)
Installation UUID: 6ea47b0d-1852-4aaf-808d-373ff0a5002b
	Mono 3.2.6 ((no/9b58377)
	GTK+ 2.24.23 theme: Raleigh
	GTK# (
	Package version: 302060000

=== Xamarin.Android ===

Version: 4.12.0 (Trial Edition)
Android SDK: /Users/jatin66/Desktop/Backup/android-sdk-macosx
	Supported Android versions:
		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)
Java SDK: /usr
java version "1.7.0_25"
Java(TM) SE Runtime Environment (build 1.7.0_25-b15)
Java HotSpot(TM) 64-Bit Server VM (build 23.25-b01, mixed mode)

=== Apple Developer Tools ===

Xcode 4.6.2 (2067.2)
Build 4H1003

=== Xamarin.iOS ===

Version: (Business Edition)
Hash: 8400ec3
Build date: 2014-28-01 13:38:01-0500

=== Xamarin.Mac ===

Xamarin.Mac: Not Installed

=== Build Information ===

Release ID: 402020002
Git revision: c5f82958ae7d9af652b44b87ceff777b3ad19b91
Build date: 2013-11-19 15:35:40+0000
Xamarin addins: a4044fee09138f6fd031a9944b7caaeb51e57e80

=== Operating System ===

Mac OS X 10.7.5
Darwin Jatin66s-iMac.local 11.4.2 Darwin Kernel Version 11.4.2
    Thu Aug 23 16:25:48 PDT 2012
    root:xnu-1699.32.7~1/RELEASE_X86_64 x86_64
Comment 4 Sebastien Pouliot 2014-02-19 17:19:05 UTC
When experiencing a crash please look at Xcode's organizer. You'll see a crash report (and that will symbolicate it) that you can attach to the bug report. That will tell us where the crash occured (useful if it cannot be duplicated).

I will attached mine.

> The log from XCode suggests that it's an issue with the linker (also attached)

The only reference to the linker I can see (in your attached log) is the name of your application. Can you pinpoint which line you're referring to ?

I do not think this is related to the linker since:

* Enabling the linker on simulator builds does not crash (nothing extra got removed);

* Disabling the "Enable debugging" on the Debug|iPhone configuration works;

@Zoltan I had no problem to reproduce this crash using 7.0.7 and my iPhone5. Could you look again ?

I wonder if it could this be related to ld's 24bits limit bug we have often seen with ServiceStack.Text ?

Even with the linker enabled the debug builds are much larger (53,193,920) than the release version (15,935,168). Both sizes are the executable binary (not the .app folder) size.
Comment 5 Sebastien Pouliot 2014-02-19 17:19:41 UTC
Created attachment 6094 [details]
Device Crash Log
Comment 6 Zoltan Varga 2014-02-20 13:58:13 UTC
I still can't reproduce this on an iphone5s, mt
I use the 'ServiceStackLinkerTest' solution in Debug|iPhone mode.
Comment 10 Rolf Bjarne Kvinge [MSFT] 2014-03-17 13:02:57 UTC
This seems to be something Apple fixed in their native linker in Xcode 5.1, so I'm closing this bug report.