Skip to content

Instantly share code, notes, and snippets.

@alanmcgovern
Last active March 23, 2017 10:41
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 alanmcgovern/38d3a49fe0191892aefeb712dadf0bd1 to your computer and use it in GitHub Desktop.
Save alanmcgovern/38d3a49fe0191892aefeb712dadf0bd1 to your computer and use it in GitHub Desktop.
(lldb) bt all
* thread #1: tid = 0x94421, 0x00007fffe8894c86 libsystem_kernel.dylib`__psynch_cvwait + 10, name = 'tid_307', queue = 'com.apple.main-thread', stop reason = signal SIGSTOP
* frame #0: 0x00007fffe8894c86 libsystem_kernel.dylib`__psynch_cvwait + 10
frame #1: 0x00007fffe897e96a libsystem_pthread.dylib`_pthread_cond_wait + 712
frame #2: 0x000000010b25da48 mono64`mono_os_event_wait_multiple [inlined] mono_os_cond_wait(mutex=<unavailable>) + 12 at mono-os-mutex.h:146 [opt]
frame #3: 0x000000010b25da3c mono64`mono_os_event_wait_multiple(events=0x00007fff54c29db0, nevents=3, waitall=1, timeout=4294967295, alertable=1) + 556 at os-event-unix.c:189 [opt]
frame #4: 0x000000010b271c21 mono64`mono_thread_info_wait_multiple_handle(thread_handles=<unavailable>, nhandles=<unavailable>, background_change_event=<unavailable>, waitall=<unavailable>, timeout=<unavailable>, alertable=<unavailable>) + 129 at mono-threads.c:1690 [opt]
frame #5: 0x000000010b1ad2f2 mono64`wait_for_tids(wait=<unavailable>, timeout=<unavailable>, check_state_change=<unavailable>) + 82 at threads.c:3124 [opt]
frame #6: 0x000000010b1ad13b mono64`mono_thread_manage + 427 at threads.c:3344 [opt]
frame #7: 0x000000010b057fda mono64`mono_main(argc=<unavailable>, argv=<unavailable>) + 8090 at driver.g.c:2216 [opt]
frame #8: 0x000000010afd82ba mono64`main [inlined] mono_main_with_options(argc=8, argc=8, argc=8, argv=0x00007fff54c2a7f8, argv=0x00007fff54c2a7f8, argv=0x00007fff54c2a7f8) + 17 at main.c:45 [opt]
frame #9: 0x000000010afd82a9 mono64`main(argc=8, argv=0x00007fff54c2a7f8) + 1673 at main.c:338 [opt]
frame #10: 0x000000010afd7c14 mono64`start + 52
thread #2: tid = 0x94422, 0x00007fffe8894c86 libsystem_kernel.dylib`__psynch_cvwait + 10, name = 'SGen worker'
frame #0: 0x00007fffe8894c86 libsystem_kernel.dylib`__psynch_cvwait + 10
frame #1: 0x00007fffe897e96a libsystem_pthread.dylib`_pthread_cond_wait + 712
frame #2: 0x000000010b25b515 mono64`thread_func [inlined] mono_os_cond_wait(mutex=0x000000010b3ae488) + 15 at mono-os-mutex.h:146 [opt]
frame #3: 0x000000010b25b506 mono64`thread_func(thread_data=0x000000010b4e6108) + 230 at sgen-thread-pool.c:129 [opt]
frame #4: 0x00007fffe897daab libsystem_pthread.dylib`_pthread_body + 180
frame #5: 0x00007fffe897d9f7 libsystem_pthread.dylib`_pthread_start + 286
frame #6: 0x00007fffe897d1fd libsystem_pthread.dylib`thread_start + 13
thread #3: tid = 0x94423, 0x00007fffe888d3c6 libsystem_kernel.dylib`semaphore_wait_trap + 10, name = 'Finalizer'
frame #0: 0x00007fffe888d3c6 libsystem_kernel.dylib`semaphore_wait_trap + 10
frame #1: 0x000000010b1dd213 mono64`finalizer_thread [inlined] mono_os_sem_wait(flags=MONO_SEM_FLAGS_ALERTABLE) + 11 at mono-os-semaphore.h:90 [opt]
frame #2: 0x000000010b1dd208 mono64`finalizer_thread [inlined] mono_coop_sem_wait(flags=MONO_SEM_FLAGS_ALERTABLE) + 8 at mono-coop-semaphore.h:40 [opt]
frame #3: 0x000000010b1dd200 mono64`finalizer_thread(unused=<unavailable>) + 176 at gc.c:907 [opt]
frame #4: 0x000000010b1b0463 mono64`start_wrapper [inlined] start_wrapper_internal + 302 at threads.c:837 [opt]
frame #5: 0x000000010b1b0335 mono64`start_wrapper(data=<unavailable>) + 37 at threads.c:889 [opt]
frame #6: 0x000000010b270d41 mono64`inner_start_thread(data=<unavailable>) + 193 at mono-threads.c:1169 [opt]
frame #7: 0x00007fffe897daab libsystem_pthread.dylib`_pthread_body + 180
frame #8: 0x00007fffe897d9f7 libsystem_pthread.dylib`_pthread_start + 286
frame #9: 0x00007fffe897d1fd libsystem_pthread.dylib`thread_start + 13
thread #4: tid = 0x94426, 0x00007fffe88954e2 libsystem_kernel.dylib`__workq_kernreturn + 10
frame #0: 0x00007fffe88954e2 libsystem_kernel.dylib`__workq_kernreturn + 10
frame #1: 0x00007fffe897d5fe libsystem_pthread.dylib`_pthread_wqthread + 1023
frame #2: 0x00007fffe897d1ed libsystem_pthread.dylib`start_wqthread + 13
thread #5: tid = 0x9443e, 0x00007fffe8894c86 libsystem_kernel.dylib`__psynch_cvwait + 10, name = 'Threadpool worker'
frame #0: 0x00007fffe8894c86 libsystem_kernel.dylib`__psynch_cvwait + 10
frame #1: 0x00007fffe897e96a libsystem_pthread.dylib`_pthread_cond_wait + 712
frame #2: 0x000000010b1d2da3 mono64`mono_os_cond_timedwait [inlined] mono_os_cond_wait(cond=0x00007fb82a019208, mutex=0x00007fb82a0191c8) + 11 at mono-os-mutex.h:146 [opt]
frame #3: 0x000000010b1d2d98 mono64`mono_os_cond_timedwait(cond=0x00007fb82a019208, mutex=0x00007fb82a0191c8, timeout_ms=<unavailable>) + 152 at mono-os-mutex.h:160 [opt]
frame #4: 0x000000010b1d191d mono64`mono_w32handle_timedwait_signal_handle [inlined] mono_w32handle_timedwait_signal_naked(cond=<unavailable>, mutex=<unavailable>, timeout=4294967295, poll=0, alerted=<unavailable>) + 8 at w32handle.c:973 [opt]
frame #5: 0x000000010b1d1915 mono64`mono_w32handle_timedwait_signal_handle(poll=0, handle=<unavailable>, timeout=<unavailable>, alerted=<unavailable>) + 213 at w32handle.c:1088 [opt]
frame #6: 0x000000010b1d17bb mono64`mono_w32handle_wait_one(handle=0x0000000000000407, timeout=4294967295, alertable=<unavailable>) + 907 at w32handle.c:1207 [opt]
frame #7: 0x000000010b1d1a9e mono64`mono_w32handle_wait_multiple(handles=<unavailable>, nhandles=<unavailable>, waitall=<unavailable>, timeout=<unavailable>, alertable=<unavailable>) + 190 at w32handle.c:1241 [opt]
frame #8: 0x000000010b1aaf63 mono64`mono_wait_uninterrupted(thread=<unavailable>, numhandles=<unavailable>, handles=<unavailable>, waitall=<unavailable>, ms=<unavailable>, error=<unavailable>) + 115 at threads.c:1869 [opt]
frame #9: 0x000000010b1ab280 mono64`ves_icall_System_Threading_WaitHandle_WaitOne_internal(handle=0x0000000000000407, ms=-1) + 112 at threads.c:1994 [opt]
frame #10: 0x000000010e2c003f
frame #11: 0x000000010e2bfe4a
frame #12: 0x000000010e2bdc9f
frame #13: 0x000000010e2b55c7
frame #14: 0x000000010e2b4ca9
frame #15: 0x000000010e2b28c4
frame #16: 0x000000010afe7265 mono64`mono_jit_runtime_invoke(method=<unavailable>, obj=0x0000000000000000, params=<unavailable>, error=<unavailable>) + 2261 at mini-runtime.c:2530 [opt]
frame #17: 0x000000010b1e4758 mono64`do_runtime_invoke(method=0x00007fb82a811c78, obj=0x0000000000000000, params=0x0000000000000000, exc=0x000070000f262c48, error=0x000070000f262c50) + 88 at object.c:2860 [opt]
frame #18: 0x000000010b1b21c1 mono64`worker_callback [inlined] try_invoke_perform_wait_callback(exc=0x0000000000000000, error=0x0000000000000000) + 26 at threadpool.c:356 [opt]
frame #19: 0x000000010b1b21a7 mono64`worker_callback(unused=<unavailable>) + 1015 at threadpool.c:436 [opt]
frame #20: 0x000000010b1b4d79 mono64`worker_thread(data=0x00007fb8294d24f0) + 1065 at threadpool-worker-default.c:588 [opt]
frame #21: 0x000000010b1b0463 mono64`start_wrapper [inlined] start_wrapper_internal + 302 at threads.c:837 [opt]
frame #22: 0x000000010b1b0335 mono64`start_wrapper(data=<unavailable>) + 37 at threads.c:889 [opt]
frame #23: 0x000000010b270d41 mono64`inner_start_thread(data=<unavailable>) + 193 at mono-threads.c:1169 [opt]
frame #24: 0x00007fffe897daab libsystem_pthread.dylib`_pthread_body + 180
frame #25: 0x00007fffe897d9f7 libsystem_pthread.dylib`_pthread_start + 286
frame #26: 0x00007fffe897d1fd libsystem_pthread.dylib`thread_start + 13
(lldb) p (char*)mono_pmip (0x000000010e2c003f)
error: no matching function for call to 'mono_pmip'
candidate function not viable: no known conversion from 'long' to 'void *' for 1st argument
(lldb) p (char*)mono_pmip ((void*)0x000000010e2c003f)
(char *) $0 = 0x00007fb8294fa920 " (wrapper managed-to-native) System.Threading.WaitHandle:WaitOne_internal (intptr,int) {0x7fb829a46478} + 0x5f (0x10e2bffe0 0x10e2c00c9) [0x7fb829601930 - Touch.Server.exe]"
(lldb) p (char*)mono_pmip ((void*)0x000000010e2bfe4a)
(char *) $1 = 0x00007fb8294fac70 " System.Threading.WaitHandle:InternalWaitOne (System.Runtime.InteropServices.SafeHandle,long,bool,bool) {0x7fb829a45ae0} + 0x4a (0x10e2bfe00 0x10e2bfecc) [0x7fb829601930 - Touch.Server.exe]"
(lldb) p (char*)mono_pmip ((void*)0x000000010e2bdc9f)
(char *) $2 = 0x00007fb8294faf00 " System.Diagnostics.Process:WaitForExit () {0x7fb82a0ea630} + 0x1f (0x10e2bdc80 0x10e2bdca4) [0x7fb829601930 - Touch.Server.exe]"
(lldb) p (char*)mono_pmip ((void*)0x000000010e2b4ca9)
(char *) $3 = 0x00007fb82970d0a0 " System.Threading.ExecutionContext:Run (System.Threading.ExecutionContext,System.Threading.ContextCallback,object,bool) {0x7fb829a19340} + 0x29 (0x10e2b4c80 0x10e2b4cae) [0x7fb829601930 - Touch.Server.exe]"
(lldb) p (char*)mono_pmip ((void*)0x000000010e2b28c4)
(char *) $4 = 0x00007fb8295bfd70 " System.Threading._ThreadPoolWaitCallback:PerformWaitCallback () {0x7fb82a811c78} + 0x54 (0x10e2b2870 0x10e2b2907) [0x7fb829601930 - Touch.Server.exe]"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment