Bug 13179 - MonoTouch: SIGSEGV at application launch
Summary: MonoTouch: SIGSEGV at application launch
Status: RESOLVED INVALID
Alias: None
Product: Runtime
Classification: Mono
Component: Debugger ()
Version: unspecified
Hardware: Macintosh Mac OS
: --- normal
Target Milestone: ---
Assignee: Zoltan Varga
URL:
Depends on:
Blocks:
 
Reported: 2013-07-11 12:08 UTC by Yvan Rodrigues
Modified: 2013-07-15 10:09 UTC (History)
2 users (show)

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


Attachments
Test case (1.10 MB, application/x-zip-compressed)
2013-07-11 14:14 UTC, Yvan Rodrigues
Details


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 GitHub or Developer Community 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 INVALID

Description Yvan Rodrigues 2013-07-11 12:08:33 UTC
FOR MORE INFORMATION SEE SUPPORT CASE #39927.

VERSION INFORMATION AT BOTTOM OF MESSAGE:

The solution consists of two projects:
Project A targets a Mono/.NET 3.5 MSIL library assembly.
Project B is a Xamarin.iOS application. It is noteworthy that the assemblies referenced by this project are from Xamarin.iOS 6.0.10 for compatibility with developers still using MonoDevelop and unsigned assemblies. These include monotouch.dll, System.dll, System.Core.dll, System.Xml.dll, System.Xml.Linq.dll.

When I start debugging the application I (more or less) immediately get a crash:

Starting iOS simulator 6.1
Launching application
Application launched. PID = 2667
mono-rt: Stacktrace:
(YR:this is blank)

mono-rt: 
Native stacktrace:
(YR:this is blank)

mono-rt: 
=================================================================
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.
=================================================================

If I insert a breakpoint at the first line of executable code in the entry point of the application, it is never reached.

If I instruct the debugger to break at all first-chance exceptions of type System.Exception, it never breaks.

I am using the beta branch of the software (see version info). This is due to an unrelated issue.

This issue appears to be unique to the beta branch i.e. it worked fine until I switched.

I will try to make a test case. This project is 700+ MB and I had to sign an extensive NDA to work on it.











Xamarin Studio
Version 4.1.4 (build 117)
Installation UUID: af08c980-f975-4eb5-a819-06b92ee680fd
Runtime:
	Mono 3.0.12 ((no/d6c5db8)
	GTK 2.24.18
	GTK# (2.12.0.0)
	Package version: 300120000

Apple Developer Tools
Xcode 4.6.3 (2068)
Build 4H1503

Xamarin.iOS
Version: 6.3.6.76 (Business Edition)
Hash: cdd868f
Branch: 
Build date: 2013-03-06 10:32:55-0400

Xamarin.Android
Version: 4.7.11 (Business Edition)
Android SDK: /Users/yvan/Library/Developer/Xamarin/android-sdk-mac_x86
	Supported Android versions:
		2.1   (API level 7)
		2.2   (API level 8)
		2.3   (API level 10)
		3.1   (API level 12)
		4.0   (API level 14)
		4.0.3 (API level 15)
Java SDK: /usr
java version "1.6.0_51"
Java(TM) SE Runtime Environment (build 1.6.0_51-b11-457-11M4509)
Java HotSpot(TM) 64-Bit Server VM (build 20.51-b01-457, mixed mode)

Xamarin.Mac
Xamarin.Mac: Not Installed

Build Information
Release ID: 401040117
Git revision: e0f38912731e43ed9d3f1a410dd4fd907e7f1ba0
Build date: 2013-06-11 19:29:58+0000
Xamarin addins: 8fd84026361c1969794b85bee48efab97a5f33b3

Operating System
Mac OS X 10.8.4
Darwin Yvans-Mac-mini.local 12.4.0 Darwin Kernel Version 12.4.0
    Wed May  1 17:57:12 PDT 2013
    root:xnu-2050.24.15~1/RELEASE_X86_64 x86_64
Comment 1 Yvan Rodrigues 2013-07-11 14:12:06 UTC
By process of elimination I have found the root of the problem.

PROBLEM:
The monotouch.dll 6.0.10 is incompatible with _____ (not sure).

STEPS TO REPRODUCE:
1. Create a new Single View iPad solution.
2. Remove all referenced.
3. Reference monotouch.dll 6.0.10 
4. Compile and run -- SIGSEGV crash

WORKAROUND:
Downgrade Studio.
Comment 2 Yvan Rodrigues 2013-07-11 14:14:57 UTC
Created attachment 4319 [details]
Test case
Comment 3 Zoltan Varga 2013-07-15 09:08:33 UTC
xamarin.ios only works with the monotouch.dll included in it, it doesn't work with previous versions. This was never a supported scenario.
Comment 4 Yvan Rodrigues 2013-07-15 10:09:10 UTC
Thanks Zoltan. Is there a way to run two-version side-by-size without virtualization?
Comment 5 Zoltan Varga 2013-07-15 10:09:46 UTC
Not currently.