Bug 26415 - App runs fine with ARM7(s) but fails with the addition of ARM64
Summary: App runs fine with ARM7(s) but fails with the addition of ARM64
Status: RESOLVED FIXED
Alias: None
Product: iOS
Classification: Xamarin
Component: XI runtime ()
Version: XI 8.6.0
Hardware: Macintosh Mac OS
: Normal normal
Target Milestone: Untriaged
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2015-01-26 08:19 UTC by Allan Ritchie
Modified: 2015-01-29 18:47 UTC (History)
5 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:
RESOLVED FIXED

Description Allan Ritchie 2015-01-26 08:19:32 UTC
I'm getting random crashes like this only on ARM64 builds as well.  ARMv7(s)
work without issue.  The app can sometimes run for 3-4 seconds, but usually it
dies right away.

SGEN - on
LLVM - off

3 stacktraces below

#1
2015-01-22 16:29:56.146 AsglTsiiOS[34071:5204609] critical:           0  
AsglTsiiOS                          0x0000000101974488
mono_handle_native_sigsegv + 268
2015-01-22 16:29:56.146 AsglTsiiOS[34071:5204609] critical:           1  
AsglTsiiOS                          0x0000000101980f10
mono_sigsegv_signal_handler + 316
2015-01-22 16:29:56.146 AsglTsiiOS[34071:5204609] critical:           2  
libsystem_platform.dylib            0x0000000196d7c95c _sigtramp + 68
2015-01-22 16:29:56.147 AsglTsiiOS[34071:5204609] critical:           3  
AsglTsiiOS                          0x0000000101a0de74 major_scan_object + 1256
2015-01-22 16:29:56.147 AsglTsiiOS[34071:5204609] critical:           4  
AsglTsiiOS                          0x0000000101a0de74 major_scan_object + 1256
2015-01-22 16:29:56.147 AsglTsiiOS[34071:5204609] critical:           5  
AsglTsiiOS                          0x0000000101a094f4
job_scan_from_registered_roots + 212
2015-01-22 16:29:56.147 AsglTsiiOS[34071:5204609] critical:           6  
AsglTsiiOS                          0x0000000101a0708c
major_copy_or_mark_from_roots + 1764
2015-01-22 16:29:56.147 AsglTsiiOS[34071:5204609] critical:           7  
AsglTsiiOS                          0x0000000101a01e9c major_do_collection + 92
2015-01-22 16:29:56.148 AsglTsiiOS[34071:5204609] critical:           8  
AsglTsiiOS                          0x00000001019ffde4 sgen_perform_collection
+ 940
2015-01-22 16:29:56.148 AsglTsiiOS[34071:5204609] critical:           9  
AsglTsiiOS                          0x0000000101a0b3ec
sgen_los_alloc_large_inner + 108
2015-01-22 16:29:56.148 AsglTsiiOS[34071:5204609] critical:           10 
AsglTsiiOS                          0x00000001019f3f6c mono_gc_alloc_obj_nolock
+ 132
2015-01-22 16:29:56.148 AsglTsiiOS[34071:5204609] critical:           11 
AsglTsiiOS                          0x00000001019f4488 mono_gc_alloc_vector +
152
2015-01-22 16:29:56.149 AsglTsiiOS[34071:5204609] critical:           12 
AsglTsiiOS                          0x00000001019e7440 mono_array_new_specific
+ 96
2015-01-22 16:29:56.149 AsglTsiiOS[34071:5204609] critical:           13 
AsglTsiiOS                          0x00000001003ea228
wrapper_managed_to_native_object___icall_wrapper_mono_array_new_specific_intptr_int
+ 104
2015-01-22 16:29:56.149 AsglTsiiOS[34071:5204609] critical:           14 
AsglTsiiOS                          0x00000001010d0a5c
Asgl_Tsi_Core_Services_Impl_HttpServiceImpl__Downloadc__async6_MoveNext + 332
2015-01-22 16:29:56.149 AsglTsiiOS[34071:5204609] critical:           15 
AsglTsiiOS                          0x0000000101135c04 


#2
2015-01-22 16:29:55.783 AsglTsiiOS[34071:5204609] critical:   at <unknown>
<0xffffffff>
2015-01-22 16:29:55.784 AsglTsiiOS[34071:5204609] critical:   at (wrapper
managed-to-native) object.__icall_wrapper_mono_array_new_specific (intptr,int)
<0xffffffff>
2015-01-22 16:29:55.784 AsglTsiiOS[34071:5204609] critical:   at
Asgl.Tsi.Core.Services.Impl.HttpServiceImpl/<Download>c__async6.MoveNext ()
[0x00037] in
/Users/aritchie/Desktop/tsi-mobile/Asgl.Tsi.Core/Services/Impl/Http/OriginalHttpServiceImpl.cs:127
2015-01-22 16:29:55.784 AsglTsiiOS[34071:5204609] critical:   at
System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1<Asgl.Tsi.Core.Models.HttpDownloadResult>.Start<Asgl.Tsi.Core.Services.Impl.HttpServiceImpl/<Download>c__async6>
(Asgl.Tsi.Core.Services.Impl.HttpServiceImpl/<Download>c__async6&) [0x0001b] in
/Developer/MonoTouch/Source/mono/mcs/class/corlib/System.Runtime.CompilerServices/AsyncTaskMethodBuilder_T.cs:107
2015-01-22 16:29:55.785 AsglTsiiOS[34071:5204609] critical:   at
Asgl.Tsi.Core.Services.Impl.HttpServiceImpl.Download
(string,Acr.MvvmCross.Plugins.FileSystem.IFile,System.Action`1<Asgl.Tsi.Core.Models.HttpFileProgressArgs>,System.Threading.CancellationToken)
<IL 0x0003f, 0x002ff>


#3
2015-01-22 16:34:50.250 AsglTsiiOS[34096:5206397] critical:   at <unknown>
<0xffffffff>
2015-01-22 16:34:50.251 AsglTsiiOS[34096:5206397] critical:   at (wrapper
managed-to-native) object.__icall_wrapper_mono_array_new_specific (intptr,int)
<0xffffffff>
2015-01-22 16:34:50.251 AsglTsiiOS[34096:5206397] critical:   at
System.Collections.Generic.Dictionary`2.Resize () <0x0006f>
2015-01-22 16:34:50.251 AsglTsiiOS[34096:5206397] critical:   at
System.Collections.Generic.Dictionary`2.Add (TKey,TValue) <0x00227>
2015-01-22 16:34:50.252 AsglTsiiOS[34096:5206397] critical:   at
System.Collections.Generic.Dictionary`2..ctor
(System.Collections.Generic.IDictionary`2<TKey,
TValue>,System.Collections.Generic.IEqualityComparer`1<TKey>) <0x0016f>
2015-01-22 16:34:50.252 AsglTsiiOS[34096:5206397] critical:   at
System.Collections.Generic.Dictionary`2..ctor
(System.Collections.Generic.IDictionary`2<TKey, TValue>) <0x00023>
2015-01-22 16:34:50.253 AsglTsiiOS[34096:5206397] critical:   at
Newtonsoft.Json.Utilities.ThreadSafeStore`2.AddValue (TKey) <0x002c3>
2015-01-22 16:34:50.253 AsglTsiiOS[34096:5206397] critical:   at
Newtonsoft.Json.Utilities.ThreadSafeStore`2.Get (TKey) <0x000c3>
Comment 1 Rolf Bjarne Kvinge [MSFT] 2015-01-26 13:07:06 UTC
Fixed.

maccore/master: 0c90316e05c5acf584fa8f8c1a921675b375522a

This is a candidate for a service release, so leaving open.
Comment 2 Rolf Bjarne Kvinge [MSFT] 2015-01-27 10:17:37 UTC
Ops, comment #1 refers to a different bug with a similar title (bug #26256, I got confused), so this is not fixed.

Reopening.

Allan, can you attach a test project we can use to reproduce this?
Comment 3 Allan Ritchie 2015-01-27 10:43:17 UTC
The project I have is fairly big.  It is a production project, not a test.

I can try to strip it down to a skinny version with the issue.  Will that work for you?
Comment 4 Rolf Bjarne Kvinge [MSFT] 2015-01-27 11:04:23 UTC
Any project that can be used to reproduce it would work (the size doesn't matter, but how easy it is to reproduce does -  the easier, the better).
Comment 5 Allan Ritchie 2015-01-28 14:17:39 UTC
I have tested the 8.6.1 alpha channel release against our app and this seems to have fully fixed the issues we were having.
Comment 6 Sebastien Pouliot 2015-01-29 18:47:26 UTC
@Allan, big thanks for confirming this!