Bug 39926 - sigserv with Immutable collection
Summary: sigserv with Immutable collection
Status: RESOLVED NORESPONSE
Alias: None
Product: iOS
Classification: Xamarin
Component: General ()
Version: XI 9.4 (iOS 9.2)
Hardware: PC Windows
: --- normal
Target Milestone: Untriaged
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2016-03-26 19:45 UTC by Miha Markic
Modified: 2016-06-08 02:38 UTC (History)
4 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 NORESPONSE

Description Miha Markic 2016-03-26 19:45:35 UTC
When invoking ToImmutableList() on a List<T> the app crashes.

1. It crashes only on devices, not in emulator.
2. The problematic code is run within a PCL assembly.
3. Using ImmutableCollection v1.1.36 (latest is .37)
4. Also using async/await around problematic code.
5. Using latest Xamarin beta channel (4.0.1.147, iOS 9.4.2.28).

Any idea what's going on? I removed the call ToImmutableList and then it works fine.

Log
2016-03-18 17:41:06.293 MYAPP[291:10643] critical: 	0   MYAPP                  0x02a2c965 mono_handle_native_sigsegv + 240
2016-03-18 17:41:06.294 MYAPP[291:10643] critical: 	1   MYAPP                  0x02a32bf3 mono_sigsegv_signal_handler + 226
2016-03-18 17:41:06.294 MYAPP[291:10643] critical: 	2   libsystem_platform.dylib            0x2102f85f _sigtramp + 42
2016-03-18 17:41:06.294 MYAPP[291:10643] critical: 	3   MYAPP                  0x018368e0 System_Collections_Immutable_SortedInt32KeyNode_1_TKey_GSHAREDVT_Search_int + 72
2016-03-18 17:41:06.295 MYAPP[291:10643] critical: 	4   MYAPP                  0x0051563c gsharedvt_trampoline + 108
2016-03-18 17:41:06.295 MYAPP[291:10643] critical: 	5   MYAPP                  0x005157dc gsharedvt_out_trampoline + 108
2016-03-18 17:41:06.295 MYAPP[291:10643] critical: 	6   MYAPP                  0x01836a68 System_Collections_Immutable_SortedInt32KeyNode_1_TKey_GSHAREDVT_Search_int + 464
2016-03-18 17:41:06.296 MYAPP[291:10643] critical: 	7   MYAPP                  0x0051563c gsharedvt_trampoline + 108
2016-03-18 17:41:06.296 MYAPP[291:10643] critical: 	8   MYAPP                  0x005157dc gsharedvt_out_trampoline + 108
2016-03-18 17:41:06.296 MYAPP[291:10643] critical: 	9   MYAPP                  0x01836af0 System_Collections_Immutable_SortedInt32KeyNode_1_TKey_GSHAREDVT_Search_int + 600
2016-03-18 17:41:06.297 MYAPP[291:10643] critical: 	10  MYAPP                  0x0051563c gsharedvt_trampoline + 108
2016-03-18 17:41:06.297 MYAPP[291:10643] critical: 	11  MYAPP                  0x005157dc gsharedvt_out_trampoline + 108
2016-03-18 17:41:06.297 MYAPP[291:10643] critical: 	12  MYAPP                  0x01836af0 System_Collections_Immutable_SortedInt32KeyNode_1_TKey_GSHAREDVT_Search_int + 600
2016-03-18 17:41:06.297 MYAPP[291:10643] critical: 	13  MYAPP                  0x0051563c gsharedvt_trampoline + 108
2016-03-18 17:41:06.298 MYAPP[291:10643] critical: 	14  MYAPP                  0x005157dc gsharedvt_out_trampoline + 108
2016-03-18 17:41:06.298 MYAPP[291:10643] critical: 	15  MYAPP                  0x01836a68 System_Collections_Immutable_SortedInt32KeyNode_1_TKey_GSHAREDVT_Search_int + 464
2016-03-18 17:41:06.298 MYAPP[291:10643] critical: 	16  MYAPP                  0x0051563c gsharedvt_trampoline + 108
2016-03-18 17:41:06.299 MYAPP[291:10643] critical: 	17  MYAPP                  0x005157dc gsharedvt_out_trampoline + 108
2016-03-18 17:41:06.300 MYAPP[291:10643] critical: 	18  MYAPP                  0x01836af0 System_Collections_Immutable_SortedInt32KeyNode_1_TKey_GSHAREDVT_Search_int + 600
2016-03-18 17:41:06.300 MYAPP[291:10643] critical: 	19  MYAPP                  0x0051563c gsharedvt_trampoline + 108
2016-03-18 17:41:06.300 MYAPP[291:10643] critical: 	20  MYAPP                  0x005157dc gsharedvt_out_trampoline + 108
2016-03-18 17:41:06.300 MYAPP[291:10643] critical: 	21  MYAPP                  0x01836af0 System_Collections_Immutable_SortedInt32KeyNode_1_TKey_GSHAREDVT_Search_int + 600
2016-03-18 17:41:06.301 MYAPP[291:10643] critical: 	22  MYAPP                  0x0051563c gsharedvt_trampoline + 108
2016-03-18 17:41:06.301 MYAPP[291:10643] critical: 	23  MYAPP                  0x005157dc gsharedvt_out_trampoline + 108
2016-03-18 17:41:06.302 MYAPP[291:10643] critical: 	26  MYAPP                  0x005157dc gsharedvt_out_trampoline + 108
2016-03-18 17:41:06.302 MYAPP[291:10643] critical: 	27  MYAPP                  0x01836a68 System_Collections_Immutable_SortedInt32KeyNode_1_TKey_GSHAREDVT_Search_int + 4642016-03-18 17:41:06.301 MYAPP[291:10643] critical: 	24  MYAPP                  0x01836af0 System_Collections_Immutable_SortedInt32KeyNode_1_TKey_GSHAREDVT_Search_int + 600
2016-03-18 17:41:06.302 MYAPP[291:10643] critical: 	25  MYAPP                  0x0051563c gsharedvt_trampoline + 108

2016-03-18 17:41:06.302 MYAPP[291:10643] critical: 	28  MYAPP                  0x0051563c gsharedvt_trampoline + 108
2016-03-18 17:41:06.303 MYAPP[291:10643] critical: 	29  MYAPP                  0x005157dc gsharedvt_out_trampoline + 108
2016-03-18 17:41:06.303 MYAPP[291:10643] critical: 	30  MYAPP                  0x01836a68 System_Collections_Immutable_SortedInt32KeyNode_1_TKey_GSHAREDVT_Search_int + 464
2016-03-18 17:41:06.303 MYAPP[291:10643] critical: 	31  MYAPP                  0x0051563c gsharedvt_trampoline + 108
2016-03-18 17:41:06.304 MYAPP[291:10643] critical: 	32  MYAPP                  0x005157dc gsharedvt_out_trampoline + 108
2016-03-18 17:41:06.305 MYAPP[291:10643] critical: 	33  MYAPP                  0x01836af0 System_Collections_Immutable_SortedInt32KeyNode_1_TKey_GSHAREDVT_Search_int + 600
2016-03-18 17:41:06.305 MYAPP[291:10643] critical: 	34  MYAPP                  0x0051563c gsharedvt_trampoline + 108
2016-03-18 17:41:06.306 MYAPP[291:10643] critical: 	35  MYAPP                  0x005157dc gsharedvt_out_trampoline + 108
2016-03-18 17:41:06.306 MYAPP[291:10643] critical: 	36  MYAPP                  0x01836af0 System_Collections_Immutable_SortedInt32KeyNode_1_TKey_GSHAREDVT_Search_int + 600
2016-03-18 17:41:06.306 MYAPP[291:10643] critical: 	37  MYAPP                  0x0051563c gsharedvt_trampoline + 108
2016-03-18 17:41:06.306 MYAPP[291:10643] critical: 	38  MYAPP                  0x005157dc gsharedvt_out_trampoline + 108
2016-03-18 17:41:06.307 MYAPP[291:10643] critical: 	39  MYAPP                  0x01836a68 System_Collections_Immutable_SortedInt32KeyNode_1_TKey_GSHAREDVT_Search_int + 464
2016-03-18 17:41:06.307 MYAPP[291:10643] critical: 	40  MYAPP                  0x0051563c gsharedvt_trampoline + 108
2016-03-18 17:41:06.307 MYAPP[291:10643] critical: 	41  MYAPP                  0x005157dc gsharedvt_out_trampoline + 108
2016-03-18 17:41:06.307 MYAPP[291:10643] critical: 	42  MYAPP                  0x01836af0 System_Collections_Immutable_SortedInt32KeyNode_1_TKey_GSHAREDVT_Search_int + 600
2016-03-18 17:41:06.308 MYAPP[291:10643] critical: 	43  MYAPP                  0x0051563c gsharedvt_trampoline + 108
2016-03-18 17:41:06.309 MYAPP[291:10643] critical: 	44  MYAPP                  0x005157dc gsharedvt_out_trampoline + 108
2016-03-18 17:41:06.309 MYAPP[291:10643] critical: 	45  MYAPP                  0x01832b40 System_Collections_Immutable_SortedInt32KeyNode_1_TKey_GSHAREDVT_GetValueOrDefault_int + 224
2016-03-18 17:41:06.309 MYAPP[291:10643] critical: 	46  MYAPP                  0x0051563c gsharedvt_trampoline + 108
2016-03-18 17:41:06.310 MYAPP[291:10643] critical: 	47  MYAPP                  0x0147fbe0 System_Collections_Immutable_ImmutableDictionary_2_TKey_INT_TValue_INT_AddRange_System_Collections_Generic_IEnumerable_1_System_Collections_Generic_KeyValuePair_2_TKey_INT_TValue_INT_System_Collections_Immutable_ImmutableDictionary_2_MutationInput_TKey_INT_TValue_INT_System_Collections_Immutable_ImmutableDictionary_2_KeyCollisionBehavior_TKey_INT_TValue_INT + 1036
2016-03-18 17:41:06.310 MYAPP[291:10643] critical: 	48  MYAPP                  0x01479554 System_Collections_Immutable_ImmutableDictionary_2_TKey_INT_TValue_INT_AddRange_System_Collections_Generic_IEnumerable_1_System_Collections_Generic_KeyValuePair_2_TKey_INT_TValue_INT_bool + 904
2016-03-18 17:41:06.311 MYAPP[291:10643] critical: 	49  MYAPP                  0x01468e10 System_Collections_Immutable_ImmutableDictionary_2_TKey_INT_TValue_INT_AddRange_System_Collections_Generic_IEnumerable_1_System_Collections_Generic_KeyValuePair_2_TKey_INT_TValue_INT + 260
2016-03-18 17:41:06.311 MYAPP[291:10643] critical: 	50  MYAPP                  0x0145f1c0 System_Collections_Immutable_ImmutableDictionary_ToImmutableDictionary_TKey_INT_TValue_INT_System_Collections_Generic_IEnumerable_1_System_Collections_Generic_KeyValuePair_2_TKey_INT_TValue_INT_System_Collections_Generic_IEqualityComparer_1_T_INT_System_Collections_Generic_IEqualityComparer_1_TValue_INT + 668
2016-03-18 17:41:06.311 MYAPP[291:10643] critical: 	51  MYAPP                  0x01447178 System_Collections_Immutable_ImmutableDictionary_ToImmutableDictionary_TKey_INT_TValue_INT_System_Collections_Generic_IEnumerable_1_System_Collections_Generic_KeyValuePair_2_TKey_INT_TValue_INT + 168
2016-03-18 17:41:06.312 MYAPP[291:10643] critical: 	52  MYAPP                  0x0139d154 LegalDictionary_Services_Implementation_Data__c__DisplayClass38_0__GetTranslationToGroupIndexAsyncb__0 + 1036
2016-03-18 17:41:06.313 MYAPP[291:10643] critical: 	53  MYAPP                  0x001ea3b8 System_Threading_Tasks_Task_1_T_REF_InnerInvoke + 92
2016-03-18 17:41:06.313 MYAPP[291:10643] critical: 	54  MYAPP                  0x001fd2b0 System_Threading_Tasks_Task_Execute + 92
2016-03-18 17:41:06.313 MYAPP[291:10643] critical: 	55  MYAPP                  0x001fdacc System_Threading_Tasks_Task_ExecutionContextCallback_object + 100
2016-03-18 17:41:06.313 MYAPP[291:10643] critical: 	56  MYAPP                  0x00211d7c System_Threading_ExecutionContext_RunInternal_System_Threading_ExecutionContext_System_Threading_ContextCallback_object_bool + 516
2016-03-18 17:41:06.314 MYAPP[291:10643] critical: 	57  MYAPP                  0x00211b6c System_Threading_ExecutionContext_Run_System_Threading_ExecutionContext_System_Threading_ContextCallback_object_bool + 52
2016-03-18 17:41:06.314 MYAPP[291:10643] critical: 	58  MYAPP                  0x001fda24 System_Threading_Tasks_Task_ExecuteWithThreadLocal_System_Threading_Tasks_Task_ + 360
2016-03-18 17:41:06.314 MYAPP[291:10643] critical: 	59  MYAPP                  0x001fd834 System_Threading_Tasks_Task_ExecuteEntry_bool + 232
2016-03-18 17:41:06.314 MYAPP[291:10643] critical: 	60  MYAPP                  0x001fd6d8 System_Threading_Tasks_Task_System_Threading_IThreadPoolWorkItem_ExecuteWorkItem + 32
2016-03-18 17:41:06.315 MYAPP[291:10643] critical: 	61  MYAPP                  0x002192c0 System_Threading_ThreadPoolWorkQueue_Dispatch + 556
2016-03-18 17:41:06.315 MYAPP[291:10643] critical: 	62  MYAPP                  0x0021abb4 System_Threading__ThreadPoolWaitCallback_PerformWaitCallback + 20
2016-03-18 17:41:06.315 MYAPP[291:10643] critical: 	63  MYAPP                  0x004c854c wrapper_runtime_invoke_object_runtime_invoke_dynamic_intptr_intptr_intptr_intptr + 256
2016-03-18 17:41:06.316 MYAPP[291:10643] critical: 	64  MYAPP                  0x02a3523f mono_jit_runtime_invoke + 1150
2016-03-18 17:41:06.316 MYAPP[291:10643] critical: 	65  MYAPP                  0x02a7b8fd mono_runtime_invoke + 88
2016-03-18 17:41:06.317 MYAPP[291:10643] critical: 	66  MYAPP                  0x02a994db worker_thread + 930
2016-03-18 17:41:06.317 MYAPP[291:10643] critical: 	67  MYAPP                  0x02a9e5e5 start_wrapper + 400
2016-03-18 17:41:06.317 MYAPP[291:10643] critical: 	68  MYAPP                  0x02ad17c9 inner_start_thread + 148
2016-03-18 17:41:06.317 MYAPP[291:10643] critical: 	69  libsystem_pthread.dylib             0x21032c7f <redacted> + 138
2016-03-18 17:41:06.319 MYAPP[291:10643] critical: 	70  libsystem_pthread.dylib             0x21032bf3 _pthread_start + 110
2016-03-18 17:41:06.319 MYAPP[291:10643] critical: 	71  libsystem_pthread.dylib             0x21030a08 thread_start + 8
Comment 1 Rolf Bjarne Kvinge [MSFT] 2016-03-28 10:22:14 UTC
Please attach a complete project we can use to reproduce this so that we can track it down.
Comment 2 Miha Markic 2016-03-28 10:24:17 UTC
Hi Rolf,

I would if I could. The project is a not-so-small commercial one I've built for a customer.
I'm also having hard time reproducing in a small repro project.

Any suggestion what could I look for when creating a repro?
Comment 3 Rolf Bjarne Kvinge [MSFT] 2016-04-04 10:13:01 UTC
The contents of the list might be relevant.
Comment 4 Sebastien Pouliot 2016-04-12 18:07:42 UTC
@Miha, our ability to help is limited without a test case that allow us to duplicate the issue by ourselves.

You can create a test case from scratch, using the same PCL/components, and see if similar code reproduce the crash.

If not you can try to remove, as much as possible, the code from a copy of your application, making sure it still crash, until you reach a small test case what does not include confidential information.

Last option is for you to contact support and ask for an NDA to be signed so we can duplicate this from your whole application.
Comment 5 Alex Soto [MSFT] 2016-06-08 02:38:38 UTC
We have not received the requested information. If you are still 
experiencing this issue please provide all the requested information 
and re-open the bug report. Thanks!