Skip to content

Instantly share code, notes, and snippets.

@kumpera
Created April 24, 2016 18:49
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 kumpera/1cfb84ce75516b60cdf5b0b37329c72c to your computer and use it in GitHub Desktop.
Save kumpera/1cfb84ce75516b60cdf5b0b37329c72c to your computer and use it in GitHub Desktop.
Loaded assembly: /Users/kumpera/Projects/TestApp/TestApp/bin/Debug/TestApp.app/Contents/MonoBundle/TestApp.exe
Loaded assembly: /Users/kumpera/Projects/TestApp/TestApp/bin/Debug/TestApp.app/Contents/MonoBundle/Xamarin.Mac.dll
Loaded assembly: /Users/kumpera/Projects/TestApp/TestApp/bin/Debug/TestApp.app/Contents/MonoBundle/System.dll
Loaded assembly: /Users/kumpera/Projects/TestApp/TestApp/bin/Debug/TestApp.app/Contents/MonoBundle/System.Net.Http.dll
Loaded assembly: /Users/kumpera/Projects/TestApp/TestApp/bin/Debug/TestApp.app/Contents/MonoBundle/SpeechClient.dll
Stacktrace:
Native stacktrace:
Debug info from gdb:
(lldb) command source -s 0 '/tmp/mono-gdb-commands.2PigmK'
Executing commands in '/tmp/mono-gdb-commands.2PigmK'.
(lldb) process attach --pid 87752
Process 87752 stopped
* thread #1: tid = 0x10a5dd8, 0x00007fff9c6bfeb2 libsystem_kernel.dylib`__psynch_cvwait + 10, name = 'tid_160b', queue = 'com.apple.main-thread', stop reason = signal SIGSTOP
frame #0: 0x00007fff9c6bfeb2 libsystem_kernel.dylib`__psynch_cvwait + 10
libsystem_kernel.dylib`__psynch_cvwait:
-> 0x7fff9c6bfeb2 <+10>: jae 0x7fff9c6bfebc ; <+20>
0x7fff9c6bfeb4 <+12>: movq %rax, %rdi
0x7fff9c6bfeb7 <+15>: jmp 0x7fff9c6babdd ; cerror_nocancel
0x7fff9c6bfebc <+20>: retq
Executable module set to "/Users/kumpera/Projects/TestApp/TestApp/bin/Debug/TestApp.app/Contents/MacOS/TestApp".
Architecture set to: x86_64h-apple-macosx.
(lldb) thread list
Process 87752 stopped
* thread #1: tid = 0x10a5dd8, 0x00007fff9c6bfeb2 libsystem_kernel.dylib`__psynch_cvwait + 10, name = 'tid_160b', queue = 'com.apple.main-thread', stop reason = signal SIGSTOP
thread #2: tid = 0x10a5df3, 0x00007fff9c6c0ff6 libsystem_kernel.dylib`kevent_qos + 10, queue = 'com.apple.libdispatch-manager'
thread #3: tid = 0x10a5df4, 0x00007fff9c6c06de libsystem_kernel.dylib`__workq_kernreturn + 10
thread #4: tid = 0x10a5df6, 0x00007fff9c6bfeb2 libsystem_kernel.dylib`__psynch_cvwait + 10
thread #5: tid = 0x10a5df8, 0x00007fff9c6ba3c2 libsystem_kernel.dylib`semaphore_wait_trap + 10, name = 'tid_2103'
thread #6: tid = 0x10a5df9, 0x00007fff9c6c067e libsystem_kernel.dylib`__wait4 + 10, name = 'tid_2007'
thread #7: tid = 0x10a5dfb, 0x00007fff9c6c06de libsystem_kernel.dylib`__workq_kernreturn + 10
thread #8: tid = 0x10a5dfc, 0x00007fff9c6c06de libsystem_kernel.dylib`__workq_kernreturn + 10
thread #9: tid = 0x10a5e14, 0x00007fff9c6c06de libsystem_kernel.dylib`__workq_kernreturn + 10
thread #10: tid = 0x10a5e27, 0x00007fff9c6c06de libsystem_kernel.dylib`__workq_kernreturn + 10
thread #11: tid = 0x10a5e28, 0x00007fff9c6c06de libsystem_kernel.dylib`__workq_kernreturn + 10
thread #12: tid = 0x10a5e29, 0x00007fff9c6c06de libsystem_kernel.dylib`__workq_kernreturn + 10
thread #13: tid = 0x10a5e2a, 0x00007fff9c6c06de libsystem_kernel.dylib`__workq_kernreturn + 10
thread #14: tid = 0x10a5e36, 0x00007fff9c6ba386 libsystem_kernel.dylib`mach_msg_trap + 10, name = 'com.apple.NSEventThread'
(lldb) thread backtrace all
warning: could not load any Objective-C class information. This will significantly reduce the quality of type information available.
* thread #1: tid = 0x10a5dd8, 0x00007fff9c6bfeb2 libsystem_kernel.dylib`__psynch_cvwait + 10, name = 'tid_160b', queue = 'com.apple.main-thread', stop reason = signal SIGSTOP
* frame #0: 0x00007fff9c6bfeb2 libsystem_kernel.dylib`__psynch_cvwait + 10
frame #1: 0x00007fff91190150 libsystem_pthread.dylib`_pthread_cond_wait + 767
frame #2: 0x000000010fadf489 TestApp`suspend_current [inlined] mono_os_cond_wait(cond=<unavailable>, mutex=0x000000010fdd4ee8) + 15 at mono-os-mutex.h:105 [opt]
frame #3: 0x000000010fadf47a TestApp`suspend_current + 11 at mono-coop-mutex.h:93 [opt]
frame #4: 0x000000010fadf46f TestApp`suspend_current + 255 at debugger-agent.c:2912 [opt]
frame #5: 0x000000010fac6b66 TestApp`process_event(event=<unavailable>, arg=<unavailable>, il_offset=29, ctx=<unavailable>, events=0x00007f9db5962ae0, suspend_policy=0) + 4198 at debugger-agent.c:3745 [opt]
frame #6: 0x000000010fac7de1 TestApp`mono_debugger_agent_handle_exception(exc=0x00007f9db0d29340, throw_ctx=0x00007fff50181538, catch_ctx=<unavailable>) + 1057 at debugger-agent.c:5584 [opt]
frame #7: 0x000000010fb7f839 TestApp`mono_handle_exception_internal(ctx=<unavailable>, obj=<unavailable>, resume=0, out_ji=<unavailable>) + 2793 at mini-exceptions.c:1655 [opt]
frame #8: 0x000000010fb7ed48 TestApp`mono_handle_exception(ctx=<unavailable>, obj=<unavailable>) + 24 at mini-exceptions.c:1950 [opt]
frame #9: 0x000000010faf1361 TestApp`mono_amd64_throw_exception(dummy1=<unavailable>, dummy2=<unavailable>, dummy3=<unavailable>, dummy4=<unavailable>, dummy5=<unavailable>, dummy6=<unavailable>, mctx=0x00007fff50181680, exc=0x0000000111412780, rethrow=0) + 113 at exceptions-amd64.c:325 [opt]
frame #10: 0x0000000110180b27
frame #11: 0x000000010fb91732 TestApp`common_call_trampoline [inlined] common_call_trampoline_inner(m=<unavailable>, vt=0x0000000000000000, vtable_slot=0x0000000000000000) + 491 at mini-trampolines.c:694 [opt]
frame #12: 0x000000010fb91547 TestApp`common_call_trampoline(regs=0x00007fff501819b0, code="H\x89D$8A\xbb", m=<unavailable>, vt=0x0000000000000000, vtable_slot=0x0000000000000000) + 727 at mini-trampolines.c:808 [opt]
frame #13: 0x000000011017f295
frame #14: 0x00000001181aeb0a
frame #15: 0x000000010fb8f6e5 TestApp`mono_jit_runtime_invoke(method=<unavailable>, obj=<unavailable>, params=0x00007fff50182050, exc=<unavailable>) + 1765 at mini-runtime.c:2578 [opt]
frame #16: 0x000000010fc36e32 TestApp`mono_runtime_invoke(method=0x00007f9db1ac2f18, obj=0x00000001114117f8, params=0x00007fff50182050, exc=0x0000000000000000) + 130 at object.c:2897 [opt]
frame #17: 0x000000010fa91e26 TestApp`xamarin_invoke_trampoline(type=Tramp_Default, self=0x00007f9db580b870, sel="__monomac_internal_ActionDispatcher_activated:", iterator=(TestApp`param_iter_next(void*, char const*, unsigned long, void*) at trampolines-x86_64.m:235), marshal_return_value=(TestApp`marshal_return_value(void*, char const*, unsigned long, void*, _MonoType*, bool, _MonoMethod*) at trampolines-x86_64.m:295), context=0x00007fff501824e8) + 5046 at trampolines-invoke.m:348
frame #18: 0x000000010fa92a7d TestApp`xamarin_arch_trampoline(state=0x00007fff50182530) + 189 at trampolines-x86_64.m:516
frame #19: 0x000000010fa93dc1 TestApp`xamarin_x86_64_common_trampoline + 110
frame #20: 0x00007fff891e307a libsystem_trace.dylib`_os_activity_initiate + 75
frame #21: 0x00007fff9243051d AppKit`-[NSApplication sendAction:to:from:] + 460
frame #22: 0x00007fff92445486 AppKit`-[NSControl sendAction:to:] + 86
frame #23: 0x00007fff924453b0 AppKit`__26-[NSCell _sendActionFrom:]_block_invoke + 131
frame #24: 0x00007fff891e307a libsystem_trace.dylib`_os_activity_initiate + 75
frame #25: 0x00007fff9244530d AppKit`-[NSCell _sendActionFrom:] + 144
frame #26: 0x00007fff891e307a libsystem_trace.dylib`_os_activity_initiate + 75
frame #27: 0x00007fff92443932 AppKit`-[NSCell trackMouse:inRect:ofView:untilMouseUp:] + 2693
frame #28: 0x00007fff92498d58 AppKit`-[NSButtonCell trackMouse:inRect:ofView:untilMouseUp:] + 744
frame #29: 0x00007fff9244205c AppKit`-[NSControl mouseDown:] + 669
frame #30: 0x00007fff929efd1d AppKit`-[NSWindow _handleMouseDownEvent:isDelayedEvent:] + 6322
frame #31: 0x00007fff929f0fad AppKit`-[NSWindow _reallySendEvent:isDelayedEvent:] + 212
frame #32: 0x00007fff92349735 AppKit`-[NSWindow sendEvent:] + 517
frame #33: 0x00007fff92345e49 AppKit`-[NSApplication sendEvent:] + 2540
frame #34: 0x00007fff9227903a AppKit`-[NSApplication run] + 796
frame #35: 0x00007fff921fb520 AppKit`NSApplicationMain + 1176
frame #36: 0x0000000116eecb12
frame #37: 0x0000000116eec70d
frame #38: 0x000000010fb8f6e5 TestApp`mono_jit_runtime_invoke(method=<unavailable>, obj=<unavailable>, params=0x00007fff50183678, exc=<unavailable>) + 1765 at mini-runtime.c:2578 [opt]
frame #39: 0x000000010fc36e32 TestApp`mono_runtime_invoke(method=0x00007f9db0d05218, obj=0x0000000000000000, params=0x00007fff50183678, exc=0x0000000000000000) + 130 at object.c:2897 [opt]
frame #40: 0x000000010fc3c6fb TestApp`mono_runtime_exec_main(method=0x00007f9db0d05218, args=<unavailable>, exc=0x0000000000000000) + 379 at object.c:4223 [opt]
frame #41: 0x000000010faeb367 TestApp`mono_main [inlined] main_thread_handler + 7943 at driver.g.c:1091 [opt]
frame #42: 0x000000010faeb331 TestApp`mono_main(argc=<unavailable>, argv=<unavailable>) + 7889 at driver.g.c:2162 [opt]
frame #43: 0x000000010fa94187 TestApp`main(argc=2, argv=0x00007fff501838c8) + 775 at launcher.m:551
frame #44: 0x00007fff966f65ad libdyld.dylib`start + 1
frame #45: 0x00007fff966f65ad libdyld.dylib`start + 1
thread #2: tid = 0x10a5df3, 0x00007fff9c6c0ff6 libsystem_kernel.dylib`kevent_qos + 10, queue = 'com.apple.libdispatch-manager'
frame #0: 0x00007fff9c6c0ff6 libsystem_kernel.dylib`kevent_qos + 10
frame #1: 0x00007fff8c99d099 libdispatch.dylib`_dispatch_mgr_invoke + 216
frame #2: 0x00007fff8c99cd01 libdispatch.dylib`_dispatch_mgr_thread + 52
thread #3: tid = 0x10a5df4, 0x00007fff9c6c06de libsystem_kernel.dylib`__workq_kernreturn + 10
frame #0: 0x00007fff9c6c06de libsystem_kernel.dylib`__workq_kernreturn + 10
frame #1: 0x00007fff9118f729 libsystem_pthread.dylib`_pthread_wqthread + 1283
frame #2: 0x00007fff9118d365 libsystem_pthread.dylib`start_wqthread + 13
thread #4: tid = 0x10a5df6, 0x00007fff9c6bfeb2 libsystem_kernel.dylib`__psynch_cvwait + 10
frame #0: 0x00007fff9c6bfeb2 libsystem_kernel.dylib`__psynch_cvwait + 10
frame #1: 0x00007fff91190150 libsystem_pthread.dylib`_pthread_cond_wait + 767
frame #2: 0x000000010fcc602f TestApp`thread_func [inlined] mono_os_cond_wait(mutex=0x000000010fde60c0) + 21 at mono-os-mutex.h:105 [opt]
frame #3: 0x000000010fcc601a TestApp`thread_func(thread_data=0x0000000000000000) + 314 at sgen-thread-pool.c:118 [opt]
frame #4: 0x00007fff9118fc13 libsystem_pthread.dylib`_pthread_body + 131
frame #5: 0x00007fff9118fb90 libsystem_pthread.dylib`_pthread_start + 168
frame #6: 0x00007fff9118d375 libsystem_pthread.dylib`thread_start + 13
thread #5: tid = 0x10a5df8, 0x00007fff9c6ba3c2 libsystem_kernel.dylib`semaphore_wait_trap + 10, name = 'tid_2103'
frame #0: 0x00007fff9c6ba3c2 libsystem_kernel.dylib`semaphore_wait_trap + 10
frame #1: 0x000000010fbe04db TestApp`finalizer_thread [inlined] mono_os_sem_wait(flags=MONO_SEM_FLAGS_ALERTABLE) + 11 at mono-os-semaphore.h:72 [opt]
frame #2: 0x000000010fbe04d0 TestApp`finalizer_thread + 11 at mono-coop-semaphore.h:40 [opt]
frame #3: 0x000000010fbe04c5 TestApp`finalizer_thread(unused=<unavailable>) + 101 at gc.c:711 [opt]
frame #4: 0x000000010fc8cd7d TestApp`start_wrapper [inlined] start_wrapper_internal + 481 at threads.c:717 [opt]
frame #5: 0x000000010fc8cb9c TestApp`start_wrapper(data=<unavailable>) + 44 at threads.c:764 [opt]
frame #6: 0x000000010fcefbc7 TestApp`inner_start_thread(arg=<unavailable>) + 311 at mono-threads-posix.c:92 [opt]
frame #7: 0x00007fff9118fc13 libsystem_pthread.dylib`_pthread_body + 131
frame #8: 0x00007fff9118fb90 libsystem_pthread.dylib`_pthread_start + 168
frame #9: 0x00007fff9118d375 libsystem_pthread.dylib`thread_start + 13
thread #6: tid = 0x10a5df9, 0x00007fff9c6c067e libsystem_kernel.dylib`__wait4 + 10, name = 'tid_2007'
frame #0: 0x00007fff9c6c067e libsystem_kernel.dylib`__wait4 + 10
frame #1: 0x000000010fb807b1 TestApp`mono_handle_native_sigsegv(signal=<unavailable>, ctx=<unavailable>, info=<unavailable>) + 433 at mini-exceptions.c:2348 [opt]
frame #2: 0x000000010faf23fa TestApp`mono_arch_handle_altstack_exception(sigctx=0x00000001113a5f48, siginfo=<unavailable>, fault_addr=<unavailable>, stack_ovf=0) + 90 at exceptions-amd64.c:808 [opt]
frame #3: 0x000000010fb8c7a8 TestApp`mono_sigsegv_signal_handler(_dummy=<unavailable>, _info=<unavailable>, context=<unavailable>) + 440 at mini-runtime.c:2888 [opt]
frame #4: 0x00007fff9a35ceaa libsystem_platform.dylib`_sigtramp + 26
frame #5: 0x000000010faf1f2b TestApp`mono_arch_unwind_frame(domain=0x00007f9db0d039e0, jit_tls=0x0000000000001000, ji=<unavailable>, ctx=<unavailable>, new_ctx=0x000070000051c578, lmf=0x000070000051c788, save_locations=<unavailable>, frame=0x000070000051c520) + 283 at exceptions-amd64.c:582 [opt]
frame #6: 0x000000010fb7d6e9 TestApp`mono_find_jit_info_ext(domain=0x00007f9db0d039e0, jit_tls=0x00007f9db400bc00, prev_ji=<unavailable>, ctx=<unavailable>, new_ctx=0x000070000051c578, trace=0x0000000000000000, lmf=0x000070000051c788, save_locations=<unavailable>, frame=<unavailable>) + 329 at mini-exceptions.c:450 [opt]
frame #7: 0x000000010fb7e2ba TestApp`mono_walk_stack_full(func=(TestApp`process_frame at debugger-agent.c:3019), start_ctx=<unavailable>, domain=0x00007f9db0d039e0, jit_tls=0x00007f9db400bc00, lmf=<unavailable>, unwind_options=<unavailable>, user_data=<unavailable>) + 1338 at mini-exceptions.c:933 [opt]
frame #8: 0x000000010fb7cdf4 TestApp`mono_walk_stack_with_state(func=(TestApp`process_frame at debugger-agent.c:3019), state=<unavailable>, unwind_options=6, user_data=0x000070000051ca50) + 244 at mini-exceptions.c:844 [opt]
frame #9: 0x000000010fad3de8 TestApp`compute_frame_info(thread=<unavailable>, tls=0x00007f9db4000000) + 280 at debugger-agent.c:3177 [opt]
frame #10: 0x000000010facc780 TestApp`debugger_thread + 863 at debugger-agent.c:8798 [opt]
frame #11: 0x000000010facc421 TestApp`debugger_thread(arg=<unavailable>) + 17777 at debugger-agent.c:9698 [opt]
frame #12: 0x000000010fcefbc7 TestApp`inner_start_thread(arg=<unavailable>) + 311 at mono-threads-posix.c:92 [opt]
frame #13: 0x00007fff9118fc13 libsystem_pthread.dylib`_pthread_body + 131
frame #14: 0x00007fff9118fb90 libsystem_pthread.dylib`_pthread_start + 168
frame #15: 0x00007fff9118d375 libsystem_pthread.dylib`thread_start + 13
thread #7: tid = 0x10a5dfb, 0x00007fff9c6c06de libsystem_kernel.dylib`__workq_kernreturn + 10
frame #0: 0x00007fff9c6c06de libsystem_kernel.dylib`__workq_kernreturn + 10
frame #1: 0x00007fff9118f729 libsystem_pthread.dylib`_pthread_wqthread + 1283
frame #2: 0x00007fff9118d365 libsystem_pthread.dylib`start_wqthread + 13
thread #8: tid = 0x10a5dfc, 0x00007fff9c6c06de libsystem_kernel.dylib`__workq_kernreturn + 10
frame #0: 0x00007fff9c6c06de libsystem_kernel.dylib`__workq_kernreturn + 10
frame #1: 0x00007fff9118f729 libsystem_pthread.dylib`_pthread_wqthread + 1283
frame #2: 0x00007fff9118d365 libsystem_pthread.dylib`start_wqthread + 13
thread #9: tid = 0x10a5e14, 0x00007fff9c6c06de libsystem_kernel.dylib`__workq_kernreturn + 10
frame #0: 0x00007fff9c6c06de libsystem_kernel.dylib`__workq_kernreturn + 10
frame #1: 0x00007fff9118f729 libsystem_pthread.dylib`_pthread_wqthread + 1283
frame #2: 0x00007fff9118d365 libsystem_pthread.dylib`start_wqthread + 13
thread #10: tid = 0x10a5e27, 0x00007fff9c6c06de libsystem_kernel.dylib`__workq_kernreturn + 10
frame #0: 0x00007fff9c6c06de libsystem_kernel.dylib`__workq_kernreturn + 10
frame #1: 0x00007fff9118f729 libsystem_pthread.dylib`_pthread_wqthread + 1283
frame #2: 0x00007fff9118d365 libsystem_pthread.dylib`start_wqthread + 13
thread #11: tid = 0x10a5e28, 0x00007fff9c6c06de libsystem_kernel.dylib`__workq_kernreturn + 10
frame #0: 0x00007fff9c6c06de libsystem_kernel.dylib`__workq_kernreturn + 10
frame #1: 0x00007fff9118f729 libsystem_pthread.dylib`_pthread_wqthread + 1283
frame #2: 0x00007fff9118d365 libsystem_pthread.dylib`start_wqthread + 13
thread #12: tid = 0x10a5e29, 0x00007fff9c6c06de libsystem_kernel.dylib`__workq_kernreturn + 10
frame #0: 0x00007fff9c6c06de libsystem_kernel.dylib`__workq_kernreturn + 10
frame #1: 0x00007fff9118f729 libsystem_pthread.dylib`_pthread_wqthread + 1283
frame #2: 0x00007fff9118d365 libsystem_pthread.dylib`start_wqthread + 13
thread #13: tid = 0x10a5e2a, 0x00007fff9c6c06de libsystem_kernel.dylib`__workq_kernreturn + 10
frame #0: 0x00007fff9c6c06de libsystem_kernel.dylib`__workq_kernreturn + 10
frame #1: 0x00007fff9118f729 libsystem_pthread.dylib`_pthread_wqthread + 1283
frame #2: 0x00007fff9118d365 libsystem_pthread.dylib`start_wqthread + 13
thread #14: tid = 0x10a5e36, 0x00007fff9c6ba386 libsystem_kernel.dylib`mach_msg_trap + 10, name = 'com.apple.NSEventThread'
frame #0: 0x00007fff9c6ba386 libsystem_kernel.dylib`mach_msg_trap + 10
frame #1: 0x00007fff9c6b97c7 libsystem_kernel.dylib`mach_msg + 55
frame #2: 0x00007fff88c4e624 CoreFoundation`__CFRunLoopServiceMachPort + 212
frame #3: 0x00007fff88c4daec CoreFoundation`__CFRunLoopRun + 1356
frame #4: 0x00007fff88c4d338 CoreFoundation`CFRunLoopRunSpecific + 296
frame #5: 0x00007fff92342065 AppKit`_NSEventThread + 149
frame #6: 0x00007fff9118fc13 libsystem_pthread.dylib`_pthread_body + 131
frame #7: 0x00007fff9118fb90 libsystem_pthread.dylib`_pthread_start + 168
frame #8: 0x00007fff9118d375 libsystem_pthread.dylib`thread_start + 13
(lldb) detach
Process 87752 stopped
* thread #1: tid = 0x10a5dd8, 0x00007fff9c6bfeb2 libsystem_kernel.dylib`__psynch_cvwait + 10, name = 'tid_160b', queue = 'com.apple.main-thread', stop reason = signal SIGSTOP
frame #0: 0x00007fff9c6bfeb2 libsystem_kernel.dylib`__psynch_cvwait + 10
libsystem_kernel.dylib`__psynch_cvwait:
-> 0x7fff9c6bfeb2 <+10>: jae 0x7fff9c6bfebc ; <+20>
0x7fff9c6bfeb4 <+12>: movq %rax, %rdi
0x7fff9c6bfeb7 <+15>: jmp 0x7fff9c6babdd ; cerror_nocancel
0x7fff9c6bfebc <+20>: retq
error: Detach failed: Sending disconnect packet failed.
(lldb) XR1Leveloper/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/Contents/Developer/usr/bin/lldbcodeDefault.xctoolchain/usr/bin/clang
error: 'XR1L' is not a valid command.
error: Unrecognized command 'XR1Leveloper/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/Contents/Developer/usr/bin/lldbcodeDefault.xctoolchain/usr/bin/clang'.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment