Bug 28236 - Problem with generics on arm64
Summary: Problem with generics on arm64
Status: VERIFIED FIXED
Alias: None
Product: iOS
Classification: Xamarin
Component: XI runtime ()
Version: XI 8.8.0
Hardware: Macintosh Mac OS
: Normal normal
Target Milestone: 8.10
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2015-03-20 08:13 UTC by YuraS
Modified: 2015-05-05 07:50 UTC (History)
5 users (show)

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


Attachments
sample project (2.41 KB, application/zip)
2015-03-20 08:13 UTC, YuraS
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 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 YuraS 2015-03-20 08:13:32 UTC
Created attachment 10425 [details]
sample project

Sample app crashes on arm64 device during call generic method. Works fine when generic parameter is a class.

Exception info:
2015-03-20 14:40:39.286 Test[4385:852413] critical: Stacktrace:

2015-03-20 14:40:39.286 Test[4385:852413] critical:   at <unknown> <0xffffffff>
2015-03-20 14:40:39.287 Test[4385:852413] critical:   at (wrapper managed-to-native) object.__icall_wrapper_mono_helper_compile_generic_method (object,intptr,intptr) <0xffffffff>
2015-03-20 14:40:39.287 Test[4385:852413] critical:   at Test.Application.Process<Test.Structure, string> (Test.Structure,Test.IGenericFunction`1<Test.Structure>) [0x00003] in /Users/samkevichy/Projects/Test/Test/Main.cs:26
2015-03-20 14:40:39.287 Test[4385:852413] critical:   at Test.Application.Main (string[]) [0x0000f] in /Users/samkevichy/Projects/Test/Test/Main.cs:31
2015-03-20 14:40:39.288 Test[4385:852413] critical:   at (wrapper runtime-invoke) object.runtime_invoke_dynamic (intptr,intptr,intptr,intptr) <0xffffffff>
2015-03-20 14:40:39.288 Test[4385:852413] critical: 
Native stacktrace:

2015-03-20 14:40:39.310 Test[4385:852413] critical: 	0   Test                                0x0000000100219e48 mono_handle_native_sigsegv + 268
2015-03-20 14:40:39.311 Test[4385:852413] critical: 	1   Test                                0x0000000100223c88 mono_sigsegv_signal_handler + 316
2015-03-20 14:40:39.311 Test[4385:852413] critical: 	2   libsystem_platform.dylib            0x00000001983dc95c _sigtramp + 68
2015-03-20 14:40:39.311 Test[4385:852413] critical: 	3   Test                                0x0000000100222e88 get_shared_inst + 108
2015-03-20 14:40:39.311 Test[4385:852413] critical: 	4   Test                                0x0000000100222dcc mini_get_shared_method_full + 376
2015-03-20 14:40:39.312 Test[4385:852413] critical: 	5   Test                                0x00000001002232e0 mono_jit_compile_method_with_opt + 364
2015-03-20 14:40:39.312 Test[4385:852413] critical: 	6   Test                                0x0000000100223120 mono_jit_compile_method + 56
2015-03-20 14:40:39.312 Test[4385:852413] critical: 	7   Test                                0x0000000100213bbc mono_helper_compile_generic_method + 148
2015-03-20 14:40:39.312 Test[4385:852413] critical: 	8   Test                                0x0000000100177150 wrapper_managed_to_native_object___icall_wrapper_mono_helper_compile_generic_method_object_intptr_intptr + 112
2015-03-20 14:40:39.312 Test[4385:852413] critical: 	9   Test                                0x00000001000c86d4 Test_Application_Process_Test_Structure_string_Test_Structure_Test_IGenericFunction_1_Test_Structure + 196
2015-03-20 14:40:39.313 Test[4385:852413] critical: 	10  Test                                0x00000001000c8368 Test_Application_Main_string__ + 232
2015-03-20 14:40:39.313 Test[4385:852413] critical: 	11  Test                                0x000000010017440c wrapper_runtime_invoke_object_runtime_invoke_dynamic_intptr_intptr_intptr_intptr + 156
2015-03-20 14:40:39.313 Test[4385:852413] critical: 	12  Test                                0x0000000100225d90 mono_jit_runtime_invoke + 1264
2015-03-20 14:40:39.313 Test[4385:852413] critical: 	13  Test                                0x00000001002711e0 mono_runtime_invoke + 128
2015-03-20 14:40:39.314 Test[4385:852413] critical: 	14  Test                                0x0000000100275354 mono_runtime_exec_main + 404
2015-03-20 14:40:39.314 Test[4385:852413] critical: 	15  Test                                0x00000001002d48c0 xamarin_main + 2120
2015-03-20 14:40:39.314 Test[4385:852413] critical: 	16  Test                                0x00000001001ed724 main + 112
2015-03-20 14:40:39.314 Test[4385:852413] critical: 	17  libdyld.dylib                       0x000000019822ea08 <redacted> + 4
2015-03-20 14:40:39.314 Test[4385:852413] critical: 
=================================================================
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.
=================================================================


=== Xamarin Studio ===

Version 5.8 (build 443)
Installation UUID: c7358736-b0b5-4f8d-99e6-701f92a37bd3
Runtime:
	Mono 3.12.1 ((detached/b7764aa)
	GTK+ 2.24.23 (Raleigh theme)

	Package version: 312010000

=== Apple Developer Tools ===

Xcode 6.2 (6776)
Build 6C131e

=== Xamarin.iOS ===

Version: 8.8.0.2 (Enterprise Edition)
Hash: ccfcd59
Branch: 
Build date: 2015-03-10 02:20:32-0400

=== Xamarin.Android ===

Version: 4.20.0.37 (Enterprise Edition)
Android SDK: /Users/samkevichy/Library/Developer/Xamarin/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)
		4.0.3 (API level 15)
		4.4   (API level 19)
		5.0   (API level 21)
Java SDK: /usr
java version "1.7.0_71"
Java(TM) SE Runtime Environment (build 1.7.0_71-b14)
Java HotSpot(TM) 64-Bit Server VM (build 24.71-b01, mixed mode)

=== Xamarin Android Player ===

Not Installed

=== Xamarin.Mac ===

Not Installed

=== Build Information ===

Release ID: 508000443
Git revision: 73883239470cbe8e261c94d95f7c3d0452fd393b
Build date: 2015-03-10 07:22:51-04
Xamarin addins: a2ff7b617f09d9c45d8bbf3d010b5db0d7d36100

=== Operating System ===

Mac OS X 10.10.2
Darwin samkevichy.local 14.1.0 Darwin Kernel Version 14.1.0
    Thu Feb 26 19:26:47 PST 2015
    root:xnu-2782.10.73~1/RELEASE_X86_64 x86_64
Comment 1 Sebastien Pouliot 2015-03-20 17:53:26 UTC
The app crash because it does not completely initialize (unrelated to the crash above). I do get this in the device console log.

> Mar 20 17:45:37 spouliot-x-ipadair2 Test[971] <Warning>: UIKit.UIWindow

so the code is being executed.

It would seems this was fixed recently: maybe* it was in 8.8.1 (available in beta channel now) since it contains some AOT and ARM64 fixes.

* I tried on, not yet released, 8.10.

[1] http://developer.xamarin.com/releases/ios/xamarin.ios_8/xamarin.ios_8.8/
Comment 2 YuraS 2015-03-20 19:04:28 UTC
On 8.8.1.9 I still get this crash. (Device is iPhone 6+)
Comment 3 Sebastien Pouliot 2015-04-20 10:51:15 UTC
XI 8.8.x did not have the fix.
It's fixed only in XI 8.10 (beta).
Comment 4 Akhilesh kumar 2015-05-05 07:50:41 UTC
I have checked this issue with attached test sample.

I am able to reproduce this issue with XI 8.8.2.7, on running test sample application to iPAD mini iOS 8.0.2, it throws exception.

http://screencast.com/t/PJb1eLlVGCVn

However, with XI 8.10.1.24 application run successfully and does not throw any exception in Application output window.

http://screencast.com/t/M0063Orz

Device info: iPAD mini iOS 8.0.2

Hence closing this issue.