Skip to content

Instantly share code, notes, and snippets.

@rolfbjarne
Created July 13, 2017 09:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rolfbjarne/68183fa6f45ab99122aeb7b6232dca78 to your computer and use it in GitHub Desktop.
Save rolfbjarne/68183fa6f45ab99122aeb7b6232dca78 to your computer and use it in GitHub Desktop.
(lldb) c
Process 273 resuming
monotouchtest was compiled with optimization - stepping may behave oddly; variables may not be available.
Process 273 stopped
* thread #1, name = 'tid_d07', queue = 'com.apple.main-thread', stop reason = EXC_BAD_ACCESS (code=1, address=0x8e466fcb)
frame #0: 0x0175a600 monotouchtest`mono_class_has_failure(klass=0x8e466fb5) at class.c:9850 [opt]
9847 mono_class_has_failure (const MonoClass *klass)
9848 {
9849 g_assert (klass != NULL);
-> 9850 return klass->has_failure != 0;
9851 }
9852
9853
(lldb) p klass
(const MonoClass *) $0 = 0x8e466fb5
(lldb) p *klass
error: Couldn't apply expression side effects : Couldn't dematerialize a result variable: couldn't read its memory
(lldb) x/20x 0x8e466fb5
error: memory read failed for 0x8e466e00
(lldb) up
(lldb) up
(lldb) up
(lldb) bt
* thread #1, name = 'tid_d07', queue = 'com.apple.main-thread', stop reason = EXC_BAD_ACCESS (code=1, address=0x8e466fcb)
frame #0: 0x0175a600 monotouchtest`mono_class_has_failure(klass=0x8e466fb5) at class.c:9850 [opt]
frame #1: 0x017a1cda monotouchtest`mono_class_vtable_full(domain=0x17dc5700, klass=0x8e466fb5, error=0x07a59a4c) at object.c:1774 [opt]
frame #2: 0x017a36e0 monotouchtest`mono_class_vtable(domain=<unavailable>, klass=<unavailable>) at object.c:1750 [opt]
* frame #3: 0x0171a218 monotouchtest`init_method(amodule=<unavailable>, method_index=<unavailable>, method=<unavailable>, init_class=<unavailable>, context=<unavailable>, error=<unavailable>) at aot-runtime.c:4249 [opt]
frame #4: 0x01714208 monotouchtest`mono_aot_init_gshared_method_vtable [inlined] init_llvmonly_method(method=<unavailable>) at aot-runtime.c:4268 [opt]
frame #5: 0x017141f8 monotouchtest`mono_aot_init_gshared_method_vtable(aot_module=0x18058800, method_index=7383, vtable=<unavailable>) at aot-runtime.c:4342 [opt]
frame #6: 0x003c2eb0 monotouchtest`init_method_gshared_vtable + 44
frame #7: 0x00666b30 monotouchtest`mscorlib_System_Runtime_CompilerServices_TaskAwaiter_1_TResult_REF_UnsafeOnCompleted_System_Action + 146
frame #8: 0x003a482a monotouchtest`monotouchtest_System_Runtime_CompilerServices_AsyncVoidMethodBuilder_AwaitUnsafeOnCompleted_TAwaiter_INST_TStateMachine_REF_TAwaiter_INST__TStateMachine_REF_ + 536
frame #9: 0x00284aa4 monotouchtest`monotouchtest_MonoTouchFixtures_Foundation_UrlSessionTest__c__DisplayClass1_0___DownloadDataAsyncb__0d_MoveNext + 2590
frame #10: 0x00660edc monotouchtest`mscorlib_System_Runtime_CompilerServices_AsyncVoidMethodBuilder_Start_TStateMachine_REF_TStateMachine_REF_ + 332
frame #11: 0x00283fbe monotouchtest`monotouchtest_MonoTouchFixtures_Foundation_UrlSessionTest__c__DisplayClass1_0__DownloadDataAsyncb__0 + 504
frame #12: 0x007eeaa6 monotouchtest`mscorlib_wrapper_delegate_invoke__Module_invoke_void + 662
frame #13: 0x0016ef3c monotouchtest`monotouchtest_TestRuntime__c__DisplayClass0_0__RunAsyncb__0_Foundation_NSTimer + 148
frame #14: 0x0037ad84 monotouchtest`monotouchtest_wrapper_delegate_invoke_System_Action_1_Foundation_NSTimer_invoke_void_T_Foundation_NSTimer + 692
frame #15: 0x009974e0 monotouchtest`Xamarin_WatchOS_Foundation_NSTimerActionDispatcher_Fire_Foundation_NSTimer + 154
frame #16: 0x00803ea6 monotouchtest`mscorlib_wrapper_unknown_object_gsharedvt_out_sig_object__intptr_0 + 38
frame #17: 0x007e1674 monotouchtest`mscorlib_wrapper_runtime_invoke_object_runtime_invoke_sig_void_intptr_intptr_intptr_object_intptr_intptr_intptr + 376
frame #18: 0x01748d56 monotouchtest`mono_llvmonly_runtime_invoke(method=<unavailable>, info=<unavailable>, obj=<unavailable>, params=<unavailable>, exc=<unavailable>, error=<unavailable>) at mini-runtime.c:2347 [opt]
frame #19: 0x01747e3c monotouchtest`mono_jit_runtime_invoke(method=<unavailable>, obj=<unavailable>, params=0x07a5a744, exc=0x07a5a750, error=<unavailable>) at mini-runtime.c:2543 [opt]
frame #20: 0x017a3b9a monotouchtest`do_runtime_invoke(method=0x184b7638, obj=0x07d02818, params=0x07a5a744, exc=0x07a5a750, error=<unavailable>) at object.c:2829 [opt]
frame #21: 0x017a3aec monotouchtest`mono_runtime_invoke [inlined] mono_runtime_try_invoke(method=<unavailable>, obj=0x07d02818, params=0x07a5a744, exc=0x07a5a750, error=<unavailable>) at object.c:2937 [opt]
frame #22: 0x017a3ac0 monotouchtest`mono_runtime_invoke(method=0x184b7638, obj=0x07d02818, params=0x07a5a744, exc=0x07a5a750) at object.c:2878 [opt]
frame #23: 0x000e0f14 monotouchtest`native_to_managed_trampoline_4(self=0x1967a250, _cmd="xamarinFireSelector:", managed_method_ptr=0x019796d0, p0=0x19695cf0, token_ref=1309956) at registrar.m:156
frame #24: 0x000e0e0c monotouchtest`::-[__Xamarin_NSTimerActionDispatcher xamarinFireSelector:](self=0x1967a250, _cmd="xamarinFireSelector:", p0=0x19695cf0) at registrar.m:10364
frame #25: 0x1da1ff66 libextension.dylib`__NSFireTimer + 62
frame #26: 0x1d0ab860 CoreFoundation`__CFRUNLOOP_IS_CALLING_OUT_TO_A_TIMER_CALLBACK_FUNCTION__ + 16
frame #27: 0x1d0ab538 CoreFoundation`__CFRunLoopDoTimer + 872
frame #28: 0x1d0aaee6 CoreFoundation`__CFRunLoopDoTimers + 220
frame #29: 0x1d0a91b4 CoreFoundation`__CFRunLoopRun + 1428
frame #30: 0x1cffdf74 CoreFoundation`CFRunLoopRunSpecific + 354
frame #31: 0x1d93f07c libextension.dylib`-[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 246
frame #32: 0x1d95cabe libextension.dylib`-[NSRunLoop(NSRunLoop) runUntilDate:] + 88
frame #33: 0x000d0f3e monotouchtest`::xamarin_pinvoke_wrapper_void_objc_msgSend_IntPtr(receiver=0x17d58470, selector=0x2245218a, value=0x19695da0) at pinvokes.m:54
frame #34: 0x00a40a80 monotouchtest`Xamarin_WatchOS_wrapper_managed_to_native_ObjCRuntime_Messaging_objc_msgSend_intptr_intptr_intptr_1 + 118
frame #35: 0x00938f1a monotouchtest`Xamarin_WatchOS_Foundation_NSRunLoop_RunUntil_Foundation_NSDate + 254
frame #36: 0x0016e48e monotouchtest`monotouchtest_TestRuntime_RunAsync_System_DateTime_System_Action_System_Func_1_bool + 582
frame #37: 0x002801e2 monotouchtest`monotouchtest_MonoTouchFixtures_Foundation_UrlSessionTest_DownloadDataAsync + 474
frame #38: 0x008053e8 monotouchtest`mscorlib_wrapper_unknown_object_gsharedvt_out_sig_intptr_0 + 28
frame #39: 0x007e143e monotouchtest`mscorlib_wrapper_runtime_invoke_object_runtime_invoke_sig_void_intptr_intptr_object_intptr_intptr_intptr + 360
frame #40: 0x01748d56 monotouchtest`mono_llvmonly_runtime_invoke(method=<unavailable>, info=<unavailable>, obj=<unavailable>, params=<unavailable>, exc=<unavailable>, error=<unavailable>) at mini-runtime.c:2347 [opt]
frame #41: 0x01747e3c monotouchtest`mono_jit_runtime_invoke(method=<unavailable>, obj=<unavailable>, params=0x00000000, exc=0x07a5c9d0, error=<unavailable>) at mini-runtime.c:2543 [opt]
frame #42: 0x017a3b9a monotouchtest`do_runtime_invoke(method=0x18229068, obj=0x07d02588, params=0x00000000, exc=0x00000000, error=<unavailable>) at object.c:2829 [opt]
frame #43: 0x017a6456 monotouchtest`mono_runtime_try_invoke_array [inlined] mono_runtime_invoke_checked(method=<unavailable>, error=<unavailable>) at object.c:2983 [opt]
frame #44: 0x017a6426 monotouchtest`mono_runtime_try_invoke_array(method=<unavailable>, obj=<unavailable>, params=0x00000000, exc=<unavailable>, error=0x07a5cdc4) at object.c:5064 [opt]
frame #45: 0x017a67fc monotouchtest`mono_runtime_invoke_array_checked(method=<unavailable>, obj=<unavailable>, params=<unavailable>, error=<unavailable>) at object.c:4943 [opt]
frame #46: 0x01778546 monotouchtest`ves_icall_InternalInvoke(method=<unavailable>, this_arg=0x07d02588, params=0x00000000, exc=0x07a5ceec) at icall.c:3284 [opt]
frame #47: 0x00563558 monotouchtest`mscorlib_wrapper_managed_to_native_System_Reflection_MonoMethod_InternalInvoke_System_Reflection_MonoMethod_object_object___System_Exception_ + 96
frame #48: 0x00563864 monotouchtest`mscorlib_System_Reflection_MonoMethod_Invoke_object_System_Reflection_BindingFlags_System_Reflection_Binder_object___System_Globalization_CultureInfo + 676
frame #49: 0x00ea0a28 monotouchtest`MonoTouch_NUnitLite_NUnit_Framework_Internal_Reflect_InvokeMethod_System_Reflection_MethodInfo_object_object__ + 396
frame #50: 0x00ebc142 monotouchtest`MonoTouch_NUnitLite_NUnit_Framework_Internal_Commands_TestMethodCommand_RunNonAsyncTestMethod_NUnit_Framework_Internal_TestExecutionContext + 186
frame #51: 0x00ebbc70 monotouchtest`MonoTouch_NUnitLite_NUnit_Framework_Internal_Commands_TestMethodCommand_RunTestMethod_NUnit_Framework_Internal_TestExecutionContext + 142
frame #52: 0x00ebbaec monotouchtest`MonoTouch_NUnitLite_NUnit_Framework_Internal_Commands_TestMethodCommand_Execute_NUnit_Framework_Internal_TestExecutionContext + 76
frame #53: 0x00eba754 monotouchtest`MonoTouch_NUnitLite_NUnit_Framework_Internal_Commands_SetUpTearDownCommand_Execute_NUnit_Framework_Internal_TestExecutionContext + 350
frame #54: 0x00eb3e22 monotouchtest`MonoTouch_NUnitLite_NUnit_Framework_Internal_WorkItems_SimpleWorkItem_PerformWork + 252
frame #55: 0x00eb4838 monotouchtest`MonoTouch_NUnitLite_NUnit_Framework_Internal_WorkItems_WorkItem_RunTest + 810
frame #56: 0x00eb4500 monotouchtest`MonoTouch_NUnitLite_NUnit_Framework_Internal_WorkItems_WorkItem_Execute_NUnit_Framework_Internal_TestExecutionContext + 164
frame #57: 0x00eb30d0 monotouchtest`MonoTouch_NUnitLite_NUnit_Framework_Internal_WorkItems_CompositeWorkItem_RunChildren + 640
frame #58: 0x00eb22ec monotouchtest`MonoTouch_NUnitLite_NUnit_Framework_Internal_WorkItems_CompositeWorkItem_PerformWork + 904
frame #59: 0x00eb4838 monotouchtest`MonoTouch_NUnitLite_NUnit_Framework_Internal_WorkItems_WorkItem_RunTest + 810
frame #60: 0x00eb4500 monotouchtest`MonoTouch_NUnitLite_NUnit_Framework_Internal_WorkItems_WorkItem_Execute_NUnit_Framework_Internal_TestExecutionContext + 164
frame #61: 0x00eb30d0 monotouchtest`MonoTouch_NUnitLite_NUnit_Framework_Internal_WorkItems_CompositeWorkItem_RunChildren + 640
frame #62: 0x00eb22ec monotouchtest`MonoTouch_NUnitLite_NUnit_Framework_Internal_WorkItems_CompositeWorkItem_PerformWork + 904
frame #63: 0x00eb4838 monotouchtest`MonoTouch_NUnitLite_NUnit_Framework_Internal_WorkItems_WorkItem_RunTest + 810
frame #64: 0x00eb4500 monotouchtest`MonoTouch_NUnitLite_NUnit_Framework_Internal_WorkItems_WorkItem_Execute_NUnit_Framework_Internal_TestExecutionContext + 164
frame #65: 0x00eb30d0 monotouchtest`MonoTouch_NUnitLite_NUnit_Framework_Internal_WorkItems_CompositeWorkItem_RunChildren + 640
frame #66: 0x00eb22ec monotouchtest`MonoTouch_NUnitLite_NUnit_Framework_Internal_WorkItems_CompositeWorkItem_PerformWork + 904
frame #67: 0x00eb4838 monotouchtest`MonoTouch_NUnitLite_NUnit_Framework_Internal_WorkItems_WorkItem_RunTest + 810
frame #68: 0x00eb4500 monotouchtest`MonoTouch_NUnitLite_NUnit_Framework_Internal_WorkItems_WorkItem_Execute_NUnit_Framework_Internal_TestExecutionContext + 164
frame #69: 0x00e75934 monotouchtest`MonoTouch_NUnitLite_MonoTouch_NUnit_UI_BaseTouchRunner_Run_NUnit_Framework_Internal_Test + 792
frame #70: 0x00e718ec monotouchtest`MonoTouch_NUnitLite_MonoTouch_NUnit_UI_BaseTouchRunner_Run + 300
frame #71: 0x0018a166 monotouchtest`monotouchtest_monotouchtestWatchKitExtension_InterfaceController__RunTestsb__27_0 + 122
frame #72: 0x007eeaa6 monotouchtest`mscorlib_wrapper_delegate_invoke__Module_invoke_void + 662
frame #73: 0x00997770 monotouchtest`Xamarin_WatchOS_Foundation_NSAsyncActionDispatcher_Apply + 220
frame #74: 0x008053e8 monotouchtest`mscorlib_wrapper_unknown_object_gsharedvt_out_sig_intptr_0 + 28
frame #75: 0x007e143e monotouchtest`mscorlib_wrapper_runtime_invoke_object_runtime_invoke_sig_void_intptr_intptr_object_intptr_intptr_intptr + 360
frame #76: 0x01748d56 monotouchtest`mono_llvmonly_runtime_invoke(method=<unavailable>, info=<unavailable>, obj=<unavailable>, params=<unavailable>, exc=<unavailable>, error=<unavailable>) at mini-runtime.c:2347 [opt]
frame #77: 0x01747e3c monotouchtest`mono_jit_runtime_invoke(method=<unavailable>, obj=<unavailable>, params=0x07a5e3f8, exc=0x07a5e404, error=<unavailable>) at mini-runtime.c:2543 [opt]
frame #78: 0x017a3b9a monotouchtest`do_runtime_invoke(method=0x180f8890, obj=0x07d3f5d8, params=0x07a5e3f8, exc=0x07a5e404, error=<unavailable>) at object.c:2829 [opt]
frame #79: 0x017a3aec monotouchtest`mono_runtime_invoke [inlined] mono_runtime_try_invoke(method=<unavailable>, obj=0x07d3f5d8, params=0x07a5e3f8, exc=0x07a5e404, error=<unavailable>) at object.c:2937 [opt]
frame #80: 0x017a3ac0 monotouchtest`mono_runtime_invoke(method=0x180f8890, obj=0x07d3f5d8, params=0x07a5e3f8, exc=0x07a5e404) at object.c:2878 [opt]
frame #81: 0x000e0ce8 monotouchtest`native_to_managed_trampoline_3(self=0x17ea0670, _cmd="xamarinApplySelector", managed_method_ptr=0x019796d8, token_ref=1310724) at registrar.m:111
frame #82: 0x000e1028 monotouchtest`::-[__MonoMac_NSAsyncActionDispatcher xamarinApplySelector](self=0x17ea0670, _cmd="xamarinApplySelector") at registrar.m:10412
frame #83: 0x1da1ef44 libextension.dylib`__NSThreadPerformPerform + 312
frame #84: 0x1d0ab1b2 CoreFoundation`__CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 14
frame #85: 0x1d0aaca0 CoreFoundation`__CFRunLoopDoSources0 + 436
frame #86: 0x1d0a8f4c CoreFoundation`__CFRunLoopRun + 812
frame #87: 0x1cffdf74 CoreFoundation`CFRunLoopRunSpecific + 354
frame #88: 0x1d93f07c libextension.dylib`-[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 246
frame #89: 0x1d98bf5a libextension.dylib`-[NSRunLoop(NSRunLoop) run] + 80
frame #90: 0x1ce2f0de libxpc.dylib`_xpc_objc_main + 600
frame #91: 0x1ce306fe libxpc.dylib`xpc_main + 166
frame #92: 0x1db13fea libextension.dylib`-[NSXPCListener resume] + 182
frame #93: 0x26ccf1be PlugInKit`-[PKService run] + 774
frame #94: 0x2ab3bf8c WatchKit`main + 134
frame #95: 0x01831fa6 monotouchtest`::xamarin_main(argc=1, argv=<unavailable>, launch_mode=XamarinLaunchModeExtension) at monotouch-main.m:479 [opt]
frame #96: 0x0016e0ce monotouchtest`::xamarin_watchextension_main(argc=1, argv=0x07a5fc20) at main.m:59
(lldb) up
(lldb) up
frame #5: 0x017141f8 monotouchtest`mono_aot_init_gshared_method_vtable(aot_module=0x18058800, method_index=7383, vtable=<unavailable>) at aot-runtime.c:4342 [opt]
4339 context = mono_method_get_context (method);
4340 g_assert (context);
4341
-> 4342 init_llvmonly_method (amodule, method_index, NULL, klass, context);
4343 }
4344
4345 /*
(lldb) p klass
(MonoClass *) $12 = 0x8e466fb5
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment