Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Stacktrace:
Native stacktrace:
Debug info from gdb:
(lldb) command source -s 0 '/tmp/mono-gdb-commands.RepW7N'
Executing commands in '/tmp/mono-gdb-commands.RepW7N'.
(lldb) process attach --pid 3716
Process 3716 stopped
* thread #1: tid = 0x2ff4, 0x96e064a2 libsystem_kernel.dylib`__psynch_cvwait + 10, name = 'tid_50b', queue = 'com.apple.main-thread', stop reason = signal SIGSTOP
frame #0: 0x96e064a2 libsystem_kernel.dylib`__psynch_cvwait + 10
libsystem_kernel.dylib`__psynch_cvwait:
-> 0x96e064a2 <+10>: jae 0x96e064b2 ; <+26>
0x96e064a4 <+12>: calll 0x96e064a9 ; <+17>
0x96e064a9 <+17>: popl %edx
0x96e064aa <+18>: movl 0xc88fb77(%edx), %edx
Executable module set to "/Library/Frameworks/Mono.framework/Versions/4.3.0/bin/mono".
Architecture set to: i386-apple-macosx.
(lldb) thread list
Process 3716 stopped
* thread #1: tid = 0x2ff4, 0x96e064a2 libsystem_kernel.dylib`__psynch_cvwait + 10, name = 'tid_50b', queue = 'com.apple.main-thread', stop reason = signal SIGSTOP
thread #2: tid = 0x2ff5, 0x96e064a2 libsystem_kernel.dylib`__psynch_cvwait + 10
thread #3: tid = 0x2ff8, 0x96e000b6 libsystem_kernel.dylib`semaphore_wait_trap + 10, name = 'tid_1603'
thread #4: tid = 0x2ffa, 0x96e078b2 libsystem_kernel.dylib`kevent_qos + 10, queue = 'com.apple.libdispatch-manager'
thread #5: tid = 0x2ffb, 0x96e06da6 libsystem_kernel.dylib`__wait4 + 10, name = 'tid_1507'
thread #6: tid = 0x3003, 0x96e064a2 libsystem_kernel.dylib`__psynch_cvwait + 10, name = 'tid_310b'
(lldb) thread backtrace all
* thread #1: tid = 0x2ff4, 0x96e064a2 libsystem_kernel.dylib`__psynch_cvwait + 10, name = 'tid_50b', queue = 'com.apple.main-thread', stop reason = signal SIGSTOP
* frame #0: 0x96e064a2 libsystem_kernel.dylib`__psynch_cvwait + 10
frame #1: 0x9807f549 libsystem_pthread.dylib`_pthread_cond_wait + 757
frame #2: 0x98081287 libsystem_pthread.dylib`pthread_cond_wait$UNIX2003 + 71
frame #3: 0x0016fffd mono`suspend_current [inlined] mono_os_cond_wait(cond=0x00dedfac, mutex=0x00dedf7c) + 18 at mono-os-mutex.h:105 [opt]
frame #4: 0x0016ffeb mono`suspend_current [inlined] mono_coop_cond_wait(cond=0x00dedfac, mutex=0x00dedf7c) + 10 at mono-coop-mutex.h:93 [opt]
frame #5: 0x0016ffe1 mono`suspend_current + 257 at debugger-agent.c:2911 [opt]
frame #6: 0x0016c8e3 mono`process_event(event=<unavailable>, arg=<unavailable>, il_offset=<unavailable>, ctx=<unavailable>, events=<unavailable>, suspend_policy=0) + 3491 at debugger-agent.c:3744 [opt]
frame #7: 0x0016b4ad mono`mono_debugger_agent_user_break + 157 at debugger-agent.c:4799 [opt]
frame #8: 0x026bd347
frame #9: 0x01305448
frame #10: 0x01305643
frame #11: 0x0009a7de mono`mono_jit_runtime_invoke(method=<unavailable>, obj=0x7c136d10, params=<unavailable>, exc=0x00000000) + 1214 at mini-runtime.c:2401 [opt]
frame #12: 0x00284fcf mono`mono_runtime_invoke(method=0x7bb3e8c0, obj=0x00000000, params=<unavailable>, exc=<unavailable>) + 127 at object.c:2887 [opt]
frame #13: 0x0028af21 mono`mono_runtime_exec_main(method=0x7bb3e8c0, args=<unavailable>, exc=0x00000000) + 401 at object.c:4211 [opt]
frame #14: 0x0028acd8 mono`mono_runtime_run_main(method=0x7bb3e8c0, argc=<unavailable>, argv=<unavailable>, exc=<unavailable>) + 632 at object.c:3825 [opt]
frame #15: 0x001146fd mono`mono_jit_exec(domain=0x7b62f340, assembly=0x7c132720, argc=<unavailable>, argv=<unavailable>) + 93 at driver.g.c:1017 [opt]
frame #16: 0x00116ac6 mono`mono_main [inlined] main_thread_handler + 8102 at driver.g.c:1076 [opt]
frame #17: 0x00116a8e mono`mono_main(argc=<unavailable>, argv=<unavailable>) + 8046 at driver.g.c:2127 [opt]
frame #18: 0x0008c08a mono`main [inlined] mono_main_with_options(argc=4, argc=4, argc=4, argv=0xbff78890, argv=0xbff78890, argv=0xbff78890) + 74 at main.c:20 [opt]
frame #19: 0x0008c069 mono`main(argc=4, argv=0xbff78890) + 41 at main.c:53 [opt]
frame #20: 0x0008c035 mono`start + 53
thread #2: tid = 0x2ff5, 0x96e064a2 libsystem_kernel.dylib`__psynch_cvwait + 10
frame #0: 0x96e064a2 libsystem_kernel.dylib`__psynch_cvwait + 10
frame #1: 0x9807f549 libsystem_pthread.dylib`_pthread_cond_wait + 757
frame #2: 0x98081287 libsystem_pthread.dylib`pthread_cond_wait$UNIX2003 + 71
frame #3: 0x002e678b mono`thread_func [inlined] mono_os_cond_wait(mutex=0xb00810b0) + 18 at mono-os-mutex.h:105 [opt]
frame #4: 0x002e6779 mono`thread_func(thread_data=0x00000000) + 457 at sgen-thread-pool.c:118 [opt]
frame #5: 0x9807e794 libsystem_pthread.dylib`_pthread_body + 138
frame #6: 0x9807e70a libsystem_pthread.dylib`_pthread_start + 155
frame #7: 0x9807bfa6 libsystem_pthread.dylib`thread_start + 34
thread #3: tid = 0x2ff8, 0x96e000b6 libsystem_kernel.dylib`semaphore_wait_trap + 10, name = 'tid_1603'
frame #0: 0x96e000b6 libsystem_kernel.dylib`semaphore_wait_trap + 10
frame #1: 0x0028293e mono`finalizer_thread [inlined] mono_os_sem_wait(flags=MONO_SEM_FLAGS_ALERTABLE) + 14 at mono-os-semaphore.h:72 [opt]
frame #2: 0x00282930 mono`finalizer_thread [inlined] mono_coop_sem_wait(flags=MONO_SEM_FLAGS_ALERTABLE) + 10 at mono-coop-semaphore.h:40 [opt]
frame #3: 0x00282926 mono`finalizer_thread(unused=0x00000000) + 118 at gc.c:711 [opt]
frame #4: 0x0025c069 mono`start_wrapper [inlined] start_wrapper_internal + 540 at threads.c:713 [opt]
frame #5: 0x0025be4d mono`start_wrapper(data=<unavailable>) + 29 at threads.c:760 [opt]
frame #6: 0x0031226d mono`inner_start_thread(arg=<unavailable>) + 349 at mono-threads-posix.c:92 [opt]
frame #7: 0x9807e794 libsystem_pthread.dylib`_pthread_body + 138
frame #8: 0x9807e70a libsystem_pthread.dylib`_pthread_start + 155
frame #9: 0x9807bfa6 libsystem_pthread.dylib`thread_start + 34
thread #4: tid = 0x2ffa, 0x96e078b2 libsystem_kernel.dylib`kevent_qos + 10, queue = 'com.apple.libdispatch-manager'
frame #0: 0x96e078b2 libsystem_kernel.dylib`kevent_qos + 10
frame #1: 0x98ffa792 libdispatch.dylib`_dispatch_mgr_invoke + 234
frame #2: 0x98ffa366 libdispatch.dylib`_dispatch_mgr_thread + 52
thread #5: tid = 0x2ffb, 0x96e06da6 libsystem_kernel.dylib`__wait4 + 10, name = 'tid_1507'
frame #0: 0x96e06da6 libsystem_kernel.dylib`__wait4 + 10
frame #1: 0x9e295541 libsystem_c.dylib`waitpid$UNIX2003 + 48
frame #2: 0x0014e19d mono`mono_handle_native_sigsegv(signal=11, ctx=0x013cffe0, info=0x013cffa0) + 541 at mini-exceptions.c:2235 [opt]
frame #3: 0x001b75f2 mono`mono_arch_handle_altstack_exception(sigctx=<unavailable>, siginfo=<unavailable>, fault_addr=<unavailable>, stack_ovf=0) + 162 at exceptions-x86.c:1107 [opt]
frame #4: 0x000971c3 mono`mono_sigsegv_signal_handler(_dummy=<unavailable>, _info=<unavailable>, context=<unavailable>) + 467 at mini-runtime.c:2529 [opt]
frame #5: 0x92ea979b libsystem_platform.dylib`_sigtramp + 43
frame #6: 0x001727f2 mono`buffer_add_value_full(buf=0x00172303, t=0x00172303, addr=<unavailable>, domain=<unavailable>, as_vtype=<unavailable>, parent_vtypes=0x00000000) + 1282 at debugger-agent.c:5739 [opt]
frame #7: 0x00178dfa mono`debugger_thread [inlined] buffer_add_value(buf=0x7faee620, t=<unavailable>, addr=<unavailable>, domain=<unavailable>) + 34 at debugger-agent.c:5832 [opt]
frame #8: 0x00178dd8 mono`debugger_thread [inlined] object_commands(p="", p="", p="", p="", p="", p="", p="", p="", p="", p="", p="", p="", p="", p="", p="", end=<unavailable>, buf=0x7faee620) + 190 at debugger-agent.c:9230 [opt]
frame #9: 0x00178d1a mono`debugger_thread(arg=0x00000000) + 19274 at debugger-agent.c:9693 [opt]
frame #10: 0x0031226d mono`inner_start_thread(arg=<unavailable>) + 349 at mono-threads-posix.c:92 [opt]
frame #11: 0x9807e794 libsystem_pthread.dylib`_pthread_body + 138
frame #12: 0x9807e70a libsystem_pthread.dylib`_pthread_start + 155
frame #13: 0x9807bfa6 libsystem_pthread.dylib`thread_start + 34
thread #6: tid = 0x3003, 0x96e064a2 libsystem_kernel.dylib`__psynch_cvwait + 10, name = 'tid_310b'
frame #0: 0x96e064a2 libsystem_kernel.dylib`__psynch_cvwait + 10
frame #1: 0x9807f549 libsystem_pthread.dylib`_pthread_cond_wait + 757
frame #2: 0x98082d1b libsystem_pthread.dylib`pthread_cond_timedwait$UNIX2003 + 71
frame #3: 0x002ec757 mono`mono_os_cond_timedwait(cond=<unavailable>, mutex=<unavailable>, timeout_ms=<unavailable>) + 135 at mono-os-mutex.h:134 [opt]
frame #4: 0x002ec50f mono`_wapi_handle_timedwait_signal_handle(handle=<unavailable>, timeout=<unavailable>, alertable=<unavailable>, poll=<unavailable>, alerted=0xb05a09e8) + 415 at handles.c:1583 [opt]
frame #5: 0x002fc9b5 mono`wapi_WaitForSingleObjectEx(handle=<unavailable>, timeout=9996, alertable=<unavailable>) + 437 at wait.c:177 [opt]
frame #6: 0x00256c7c mono`mono_wait_uninterrupted(alertable=1, thread=<unavailable>, multiple=<unavailable>, numhandles=<unavailable>, handles=<unavailable>, waitall=<unavailable>, ms=<unavailable>) + 108 at threads.c:1442 [opt]
frame #7: 0x00256eb3 mono`ves_icall_System_Threading_WaitHandle_WaitOne_internal(this_obj=0x014b63a8, handle=0x00000d08, ms=-1, exitContext=0) + 99 at threads.c:1576 [opt]
frame #8: 0x0281542c
frame #9: 0x02815284
frame #10: 0x02814e72
frame #11: 0x028133b3
frame #12: 0x028118b8
frame #13: 0x02810d4a
frame #14: 0x02810524
frame #15: 0x028102e8
frame #16: 0x02810068
frame #17: 0x02585025
frame #18: 0x0009a7de mono`mono_jit_runtime_invoke(method=<unavailable>, obj=0x7b6811f0, params=<unavailable>, exc=0x014b6368) + 1214 at mini-runtime.c:2401 [opt]
frame #19: 0x00284fcf mono`mono_runtime_invoke(method=0x7ccfdfe8, obj=0x014b64f0, params=<unavailable>, exc=<unavailable>) + 127 at object.c:2887 [opt]
frame #20: 0x0028a6bc mono`mono_runtime_delegate_invoke(delegate=0x014b64f0, params=<unavailable>, exc=<unavailable>) + 92 at object.c:3645 [opt]
frame #21: 0x0025c0e5 mono`start_wrapper [inlined] start_wrapper_internal + 664 at threads.c:719 [opt]
frame #22: 0x0025be4d mono`start_wrapper(data=<unavailable>) + 29 at threads.c:760 [opt]
frame #23: 0x0031226d mono`inner_start_thread(arg=<unavailable>) + 349 at mono-threads-posix.c:92 [opt]
frame #24: 0x9807e794 libsystem_pthread.dylib`_pthread_body + 138
frame #25: 0x9807e70a libsystem_pthread.dylib`_pthread_start + 155
frame #26: 0x9807bfa6 libsystem_pthread.dylib`thread_start + 34
(lldb) detach
Process 3716 detached
(lldb) quit
=================================================================
Got a SIGSEGV while executing native code. This usually indicates
a fatal error in the mono runtime or one of the native libraries
used by your application.
=================================================================
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment