Bug 56594 - App is crashing on startup on Android 6.0 with condition `dest' not met SIGABRT error
Summary: App is crashing on startup on Android 6.0 with condition `dest' not met SIGAB...
Status: NEEDINFO
Alias: None
Product: Android
Classification: Xamarin
Component: Mono runtime / AOT Compiler (show other bugs)
Version: 7.3 (15.2)
Hardware: Macintosh Mac OS
: Normal major
Target Milestone: ---
Assignee: Jonathan Pryor
URL:
Depends on:
Blocks:
 
Reported: 2017-05-18 05:56 UTC by alex
Modified: 2017-08-23 08:29 UTC (History)
5 users (show)

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


Attachments

Description alex 2017-05-18 05:56:56 UTC
Origin: https://forums.xamarin.com/discussion/95285/update-to-visual-studio-mac-with-mono-etc-broke-app-on-emulator

My app is crashing on 6.0, though works on 4.2, 5.0 and 7.0. Same code, same version of Xamarin, etc.

Crash report from logcat:

05-18 01:52:44.047: I/GAv4(5315): * Assertion at /Users/builder/jenkins/workspace/xamarin-android/xamarin-android/external/mono/mono/metadata/icall.c:5160, condition `dest' not met
05-18 01:52:44.527: A/libc(5315): Fatal signal 6 (SIGABRT), code -6 in tid 5351 (Threadpool work)
05-18 01:52:44.579: A/DEBUG(2175): *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
05-18 01:52:44.579: A/DEBUG(2175): Build fingerprint: 'Android/sdk_google_phone_x86_64/generic_x86_64:6.0/MASTER/3738108:userdebug/test-keys'
05-18 01:52:44.579: A/DEBUG(2175): Revision: '0'
05-18 01:52:44.579: A/DEBUG(2175): ABI: 'x86_64'
05-18 01:52:44.580: A/DEBUG(2175): pid: 5315, tid: 5351, name: Threadpool work  >>> com.dreamteammobile.taxidriver <<<
05-18 01:52:44.580: A/DEBUG(2175): signal 6 (SIGABRT), code -6 (SI_TKILL), fault addr --------
05-18 01:52:44.587: W/PlatformStatsUtil(3324): Could not retrieve Usage & Diagnostics setting. Giving up.
05-18 01:52:44.592: A/DEBUG(2175): Abort message: '* Assertion at /Users/builder/jenkins/workspace/xamarin-android/xamarin-android/external/mono/mono/metadata/icall.c:5160, condition `dest' not met
05-18 01:52:44.592: A/DEBUG(2175): '
05-18 01:52:44.592: A/DEBUG(2175):     rax 0000000000000000  rbx 00007f383b47d500  rcx ffffffffffffffff  rdx 0000000000000006
05-18 01:52:44.593: A/DEBUG(2175):     rsi 00000000000014e7  rdi 00000000000014c3
05-18 01:52:44.593: A/DEBUG(2175):     r8  0000000000000012  r9  0000000000000003  r10 0000000000000008  r11 0000000000000206
05-18 01:52:44.593: A/DEBUG(2175):     r12 00000000000014e7  r13 0000000000000006  r14 0000000000000000  r15 00007f383b94ce00
05-18 01:52:44.593: A/DEBUG(2175):     cs  0000000000000033  ss  000000000000002b
05-18 01:52:44.593: A/DEBUG(2175):     rip 00007f3858593447  rbp 0000000000000002  rsp 00007f383b47bac8  eflags 0000000000000206
05-18 01:52:44.595: A/DEBUG(2175): backtrace:
05-18 01:52:44.595: A/DEBUG(2175):     #00 pc 0000000000088447  /system/lib64/libc.so (tgkill+7)
05-18 01:52:44.595: A/DEBUG(2175):     #01 pc 0000000000085b11  /system/lib64/libc.so (pthread_kill+65)

05-18 01:52:44.595: A/DEBUG(2175):     #02 pc 000000000002e841  /system/lib64/libc.so (raise+17)
05-18 01:52:44.595: A/DEBUG(2175):     #03 pc 00000000000288fd  /system/lib64/libc.so (abort+61)
05-18 01:52:44.595: A/DEBUG(2175):     #04 pc 00000000002646c0  /data/app/Mono.Android.DebugRuntime-1/lib/x86_64/libmonosgen-64bit-2.0.so
05-18 01:52:44.596: A/DEBUG(2175):     #05 pc 0000000000279b69  /data/app/Mono.Android.DebugRuntime-1/lib/x86_64/libmonosgen-64bit-2.0.so
05-18 01:52:44.596: A/DEBUG(2175):     #06 pc 0000000000171229  /data/app/Mono.Android.DebugRuntime-1/lib/x86_64/libmonosgen-64bit-2.0.so
05-18 01:52:44.596: A/DEBUG(2175):     #07 pc 00000000000747b9  <unknown>
05-18 01:52:44.700: A/DEBUG(2175): Tombstone written to: /data/tombstones/tombstone_02
05-18 01:52:44.700: E/DEBUG(2175): AM write failed: Broken pipe



Details about environment:


=== Visual Studio Community 2017 for Mac ===

Version 7.0 (build 3146)
Installation UUID: 342bdda9-56a7-4af9-9043-d5727330c0e4
Runtime:
	Mono 5.0.0.100 (2017-02/9667aa6) (64-bit)
	GTK+ 2.24.23 (Raleigh theme)

	Package version: 500000100

=== NuGet ===

Version: 4.0.0.2323

=== .NET Core ===

Runtime: /usr/local/share/dotnet/dotnet
SDK: /usr/local/share/dotnet/sdk/1.0.1/Sdks
MSBuild SDKs: /Library/Frameworks/Mono.framework/Versions/5.0.0/lib/mono/msbuild/15.0/bin/Sdks

=== Xamarin.Profiler ===

Version: 1.5.4
Location: /Applications/Xamarin Profiler.app/Contents/MacOS/Xamarin Profiler

=== Xamarin.Android ===

Version: 7.3.0.13 (Visual Studio Community)
Android SDK: /Users/alex/Library/Developer/Xamarin/android-sdk-macosx
	Supported Android versions:
		4.2 (API level 17)
		5.0 (API level 21)
		6.0 (API level 23)
		7.0 (API level 24)
		7.1 (API level 25)

SDK Tools Version: 26.0.2
SDK Platform Tools Version: 26.0.0 rc2
SDK Build Tools Version: 25.0.3

Java SDK: /usr
java version "1.8.0_101"
Java(TM) SE Runtime Environment (build 1.8.0_101-b13)
Java HotSpot(TM) 64-Bit Server VM (build 25.101-b13, mixed mode)

Android Designer EPL code available here:
https://github.com/xamarin/AndroidDesigner.EPL

=== Apple Developer Tools ===

Xcode 8.3.2 (12175)
Build 8E2002

=== Xamarin.iOS ===

Version: 10.10.0.33 (Visual Studio Community)
Hash: 3e5ac5ff
Branch: d15-2
Build date: 2017-05-05 18:11:38-0400

=== Xamarin Inspector ===

Version: 1.2.2
Hash: b71b035
Branch: d15-1
Build date: Fri, 21 Apr 2017 17:57:12 GMT

=== Xamarin.Mac ===

Version: 3.4.0.33 (Visual Studio Community)

=== Build Information ===

Release ID: 700003146
Git revision: 7553fda2e327d15807298d444007896e5b975dba
Build date: 2017-05-09 12:12:36-04
Xamarin addins: c3d580752be79fc902422f1d55d1cdc2d8b98799
Build lane: monodevelop-lion-d15-2

=== Operating System ===

Mac OS X 10.12.4
Darwin 16.5.0 Darwin Kernel Version 16.5.0
    Fri Mar  3 16:52:33 PST 2017
    root:xnu-3789.51.2~3/RELEASE_X86_64 x86_64
Comment 1 alex 2017-05-18 05:59:47 UTC
My best guess this is the assert failing: https://github.com/mono/mono/blob/master/mono/metadata/icall.c#L5172
Comment 2 Jim Bennett 2017-05-25 10:04:06 UTC
I'm seeing this on VS2017, latest everything
Comment 3 Dominique NORMAND 2017-05-28 15:12:27 UTC
It seems to affect only 64bits emulators. 
I haven't tried on a 64bits device.
Comment 4 Jim Bennett 2017-06-04 08:27:17 UTC
I'm also seeing this on a build from Visual Studio Mobile Center
Comment 5 Jim Bennett 2017-06-04 10:11:32 UTC
Update - I see this on a build done using Mobile Center but only when running on a device using lollipop, on a marshmallow emulator it works fine. I can grant access to the app if you let me know which email address to add as a collaborator.
Comment 6 Jon Douglas [MSFT] 2017-06-27 15:27:29 UTC
Thank you for taking the time to submit the bug. Please attach a reproduction to the bug by starting with a clean Xamarin.Android project and adding just the code necessary to demonstrate the issue. If there are any other special setup instructions, please let me know such as what version of Android it needs to run on, and if architecture matters in this case.

I am marking this bug as NEEDINFO until we have a reproduction that confirms the issue. Feel free to upload this to the bugzilla report via an attachment or link to a storage provider.
Comment 7 Jon Douglas [MSFT] 2017-08-21 20:29:07 UTC
@Jim

Feel free to add me as a collaborator to: jodou (at) microsoft.com

Thanks!
Comment 8 Jim Bennett 2017-08-23 08:29:15 UTC
@Jon - done

Note You need to log in before you can comment on or make changes to this bug.