Bug 13500 - SIGSEGV failures after Xamarin.Android 4.8 upgrade
Summary: SIGSEGV failures after Xamarin.Android 4.8 upgrade
Status: VERIFIED FIXED
Alias: None
Product: Android
Classification: Xamarin
Component: General ()
Version: 4.8.x
Hardware: PC Mac OS
: High critical
Target Milestone: ---
Assignee: Jonathan Pryor
URL:
: 13491 13496 ()
Depends on:
Blocks:
 
Reported: 2013-07-26 06:31 UTC by Prashant Cholachagudda
Modified: 2014-07-11 12:41 UTC (History)
8 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:
VERIFIED FIXED

Description Prashant Cholachagudda 2013-07-26 06:31:38 UTC
After upgrading to XA 4.8 the application crash with following error: 
07-25 14:32:43.787 F/        ( 3641): * Assertion at /Users/builder/data/lanes/monodroid-mlion-monodroid-4.8.0-branch/3f1c339b/source/mono/mono/mini/mini.c:3806, condition `l' not met
07-25 14:32:43.797 E/mono-rt ( 3641): Stacktrace:
07-25 14:32:43.797 E/mono-rt ( 3641): 
07-25 14:32:43.797 E/mono-rt ( 3641):   at <unknown> <0xffffffff>
07-25 14:32:43.797 E/mono-rt ( 3641):   at {Application}.{Project}.Thread.ThreadInfo.get_Instance () <IL 0x0000f, 0x0005f>
07-25 14:32:43.797 E/mono-rt ( 3641):   at Test.{Application}.{Project}.Thread.ThreadInfoTest.Instance () <IL 0x0000c, 0x00043>
07-25 14:32:43.797 E/mono-rt ( 3641):   at (wrapper runtime-invoke) object.runtime_invoke_void__this__ (object,intptr,intptr,intptr) <IL 0x0004e, 0xffffffff>
07-25 14:32:43.797 E/mono-rt ( 3641):   at <unknown> <0xffffffff>
07-25 14:32:43.797 E/mono-rt ( 3641):   at (wrapper managed-to-native) System.Reflection.MonoMethod.InternalInvoke (System.Reflection.MonoMethod,object,object[],System.Exception&) <IL 0x00030, 0xffffffff>
07-25 14:32:43.797 E/mono-rt ( 3641):   at System.Reflection.MonoMethod.Invoke (object,System.Reflection.BindingFlags,System.Reflection.Binder,object[],System.Globalization.CultureInfo) <IL 0x0004a, 0x0016b>
07-25 14:32:43.797 E/mono-rt ( 3641):   at System.Reflection.MethodBase.Invoke (object,object[]) <IL 0x00006, 0x00048>
07-25 14:32:43.797 E/mono-rt ( 3641):   at NUnit.Framework.Internal.Reflect.InvokeMethod (System.Reflection.MethodInfo,object,object[]) <IL 0x00027, 0x000eb>
07-25 14:32:43.797 E/mono-rt ( 3641):   at NUnit.Framework.Internal.Commands.TestMethodCommand.Execute (NUnit.Framework.Internal.TestExecutionContext) <IL 0x00017, 0x0006f>
07-25 14:32:43.797 E/mono-rt ( 3641):   at NUnit.Framework.Internal.Commands.SetUpTearDownCommand.Execute (NUnit.Framework.Internal.TestExecutionContext) <IL 0x0000f, 0x00056>
07-25 14:32:43.797 E/mono-rt ( 3641):   at NUnit.Framework.Internal.WorkItems.SimpleWorkItem.PerformWork () <IL 0x0000d, 0x00060>
07-25 14:32:43.797 E/mono-rt ( 3641):   at NUnit.Framework.Internal.WorkItems.WorkItem.RunTest () <IL 0x00054, 0x0016f>
07-25 14:32:43.797 E/mono-rt ( 3641):   at NUnit.Framework.Internal.WorkItems.WorkItem.Execute () <IL 0x00065, 0x001ef>
07-25 14:32:43.797 E/mono-rt ( 3641):   at NUnit.Framework.Internal.WorkItems.CompositeWorkItem.RunChildren () <IL 0x00037, 0x00184>
07-25 14:32:43.797 E/mono-rt ( 3641):   at NUnit.Framework.Internal.WorkItems.CompositeWorkItem.PerformWork () <IL 0x000a6, 0x002ff>
07-25 14:32:43.797 E/mono-rt ( 3641):   at NUnit.Framework.Internal.WorkItems.WorkItem.RunTest () <IL 0x00054, 0x0016f>
07-25 14:32:43.797 E/mono-rt ( 3641):   at NUnit.Framework.Internal.WorkItems.WorkItem.Execute () <IL 0x00065, 0x001ef>
07-25 14:32:43.797 E/mono-rt ( 3641):   at NUnit.Framework.Internal.WorkItems.CompositeWorkItem.RunChildren () <IL 0x00037, 0x00184>
07-25 14:32:43.797 E/mono-rt ( 3641):   at NUnit.Framework.Internal.WorkItems.CompositeWorkItem.PerformWork () <IL 0x000a6, 0x002ff>
07-25 14:32:43.797 E/mono-rt ( 3641):   at NUnit.Framework.Internal.WorkItems.WorkItem.RunTest () <IL 0x00054, 0x0016f>
07-25 14:32:43.797 E/mono-rt ( 3641):   at NUnit.Framework.Internal.WorkItems.WorkItem.Execute () <IL 0x00065, 0x001ef>
07-25 14:32:43.797 E/mono-rt ( 3641):   at NUnit.Framework.Internal.NUnitLiteTestAssemblyRunner.Run (NUnit.Framework.Api.ITestListener,NUnit.Framework.Api.ITestFilter) <IL 0x00056, 0x0016d>
07-25 14:32:43.797 E/mono-rt ( 3641):   at NUnitLite.Runner.TextUI.RunTests (NUnit.Framework.Api.ITestFilter) <IL 0x00008, 0x00044>
07-25 14:32:43.797 E/mono-rt ( 3641):   at NUnitLite.Runner.TextUI.Execute (string[]) <IL 0x001b2, 0x0071b>
07-25 14:32:43.797 E/mono-rt ( 3641):   at Test.{Application}.{Project}.Activity1.OnCreate (Android.OS.Bundle) <IL 0x00078, 0x00223>
07-25 14:32:43.797 E/mono-rt ( 3641):   at Android.App.Activity.n_OnCreate_Landroid_os_Bundle_ (intptr,intptr,intptr) <IL 0x00012, 0x00081>
07-25 14:32:43.797 E/mono-rt ( 3641):   at (wrapper dynamic-method) object.b7259208-3ecc-4dda-8032-524dadcfa28d (intptr,intptr,intptr) <IL 0x00017, 0x0001f>
07-25 14:32:43.797 E/mono-rt ( 3641):   at (wrapper native-to-managed) object.b7259208-3ecc-4dda-8032-524dadcfa28d (intptr,intptr,intptr) <IL 0x00023, 0xffffffff>
07-25 14:32:43.797 E/mono-rt ( 3641): 
07-25 14:32:43.797 E/mono-rt ( 3641): =================================================================
07-25 14:32:43.797 E/mono-rt ( 3641): Got a SIGSEGV while executing native code. This usually indicates
07-25 14:32:43.797 E/mono-rt ( 3641): a fatal error in the mono runtime or one of the native libraries 
07-25 14:32:43.797 E/mono-rt ( 3641): used by your application.
07-25 14:32:43.797 E/mono-rt ( 3641): =================================================================
07-25 14:32:43.797 E/mono-rt ( 3641): 
The program 'Mono' has exited with code 0 (0x0).
Comment 2 PJ 2013-07-26 09:13:56 UTC
After talking to vargaz yesterday, I believe the fix is in mono/180fb9b3f944eef328829d726a3308e2079855eb

It needs to be backported to the release branch of mono so we can get it out sometime soon.
Comment 4 Jonathan Pryor 2013-07-26 15:45:35 UTC
*** Bug 13496 has been marked as a duplicate of this bug. ***
Comment 5 Jonathan Pryor 2013-07-26 15:46:14 UTC
Closing as per Comment #2.
Comment 6 Jeremy Kolb 2013-07-26 16:30:43 UTC
*** Bug 13491 has been marked as a duplicate of this bug. ***
Comment 7 Peter Collins 2013-07-30 12:07:02 UTC
I've verified this fix using the test-case attached to Bug #13496.

Builds tested:
Mono 3.2.1 ((no/675bb0f) - currently in the beta channel.
X.A (4.8.0 branch / 36605a9a)