Skip to content

Instantly share code, notes, and snippets.

@steveisok
Created April 4, 2019 12:43
Show Gist options
  • Save steveisok/858c757e33596d6ccf874af6b82a379d to your computer and use it in GitHub Desktop.
Save steveisok/858c757e33596d6ccf874af6b82a379d to your computer and use it in GitHub Desktop.
Results of the crash after applying the interpreter fix
=================================================================
Native Crash Reporting
=================================================================
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.
=================================================================
=================================================================
Native stacktrace:
=================================================================
0x1049afb3b - /opt/mono-webforms-switch/bin/mono : mono_dump_native_crash_info
0x10494c955 - /opt/mono-webforms-switch/bin/mono : mono_handle_native_crash
0x1049aa6c7 - /opt/mono-webforms-switch/bin/mono : altstack_handle_and_restore
0x1049b185e - /opt/mono-webforms-switch/bin/mono : interp_delegate_ctor
0x1048f998c - /opt/mono-webforms-switch/bin/mono : ves_icall_mono_delegate_ctor_interp
0x1049cb081 - /opt/mono-webforms-switch/bin/mono : do_icall
0x1049c9b7c - /opt/mono-webforms-switch/bin/mono : do_icall_wrapper
0x1049b2e50 - /opt/mono-webforms-switch/bin/mono : interp_exec_method_full
0x1049b81b2 - /opt/mono-webforms-switch/bin/mono : interp_exec_method_full
0x1049b2c86 - /opt/mono-webforms-switch/bin/mono : interp_exec_method_full
0x1049b2c86 - /opt/mono-webforms-switch/bin/mono : interp_exec_method_full
0x1049b3c5c - /opt/mono-webforms-switch/bin/mono : interp_exec_method_full
0x1049b2c86 - /opt/mono-webforms-switch/bin/mono : interp_exec_method_full
0x1049b2c86 - /opt/mono-webforms-switch/bin/mono : interp_exec_method_full
0x1049b3c5c - /opt/mono-webforms-switch/bin/mono : interp_exec_method_full
0x1049b3c5c - /opt/mono-webforms-switch/bin/mono : interp_exec_method_full
0x1049b15d9 - /opt/mono-webforms-switch/bin/mono : interp_runtime_invoke
0x104abb128 - /opt/mono-webforms-switch/bin/mono : mono_runtime_invoke_checked
0x104ac25be - /opt/mono-webforms-switch/bin/mono : mono_runtime_exec_main_checked
0x10490a7b0 - /opt/mono-webforms-switch/bin/mono : mono_jit_exec
0x10490d783 - /opt/mono-webforms-switch/bin/mono : mono_main
0x10489ddfa - /opt/mono-webforms-switch/bin/mono : main
0x7fff7d10e3d5 - /usr/lib/system/libdyld.dylib : start
=================================================================
Telemetry Dumper:
=================================================================
Pkilling 0x700007f66000 from 0x10b6ca5c0
Entering thread summarizer pause from 0x10b6ca5c0
Finished thread summarizer pause from 0x10b6ca5c0.
Waiting for dumping threads to resume
=================================================================
External Debugger Dump:
=================================================================
(lldb) command source -s 0 '/tmp/mono-gdb-commands.29326'
Executing commands in '/tmp/mono-gdb-commands.29326'.
(lldb) process attach --pid 29326
Process 29326 stopped
* thread #1, name = 'tid_307', queue = 'com.apple.main-thread', stop reason = signal SIGSTOP
frame #0: 0x00007fff7d248356 libsystem_kernel.dylib`__wait4 + 10
libsystem_kernel.dylib`__wait4:
-> 0x7fff7d248356 <+10>: jae 0x7fff7d248360 ; <+20>
0x7fff7d248358 <+12>: movq %rax, %rdi
0x7fff7d24835b <+15>: jmp 0x7fff7d243421 ; cerror
0x7fff7d248360 <+20>: retq
Target 0: (mono) stopped.
Executable module set to "/opt/mono-webforms-switch/bin/mono".
Architecture set to: x86_64-apple-macosx.
(lldb) thread list
Process 29326 stopped
* thread #1: tid = 0x229421, 0x00007fff7d248356 libsystem_kernel.dylib`__wait4 + 10, name = 'tid_307', queue = 'com.apple.main-thread', stop reason = signal SIGSTOP
thread #2: tid = 0x229425, 0x00007fff7d24686a libsystem_kernel.dylib`__psynch_cvwait + 10, name = 'SGen worker'
thread #3: tid = 0x229426, 0x00007fff7d243266 libsystem_kernel.dylib`semaphore_wait_trap + 10, name = 'Finalizer'
(lldb) thread backtrace all
* thread #1, name = 'tid_307', queue = 'com.apple.main-thread', stop reason = signal SIGSTOP
* frame #0: 0x00007fff7d248356 libsystem_kernel.dylib`__wait4 + 10
frame #1: 0x00000001049afd60 mono`mono_dump_native_crash_info at mini-posix.c:1111 [opt]
frame #2: 0x00000001049afadc mono`mono_dump_native_crash_info(signal="SIGSEGV", mctx=<unavailable>, info=<unavailable>) at mini-posix.c:1153 [opt]
frame #3: 0x000000010494c955 mono`mono_handle_native_crash(signal="SIGSEGV", mctx=0x00007ffeeb35f030, info=0x0000000000000000) at mini-exceptions.c:3324 [opt]
frame #4: 0x00000001049aa6c7 mono`altstack_handle_and_restore(ctx=0x00007ffeeb35f030, obj=0x0000000000000000, stack_ovf=0) at exceptions-amd64.c:870 [opt]
frame #5: 0x00000001049b185e mono`interp_delegate_ctor(this_obj=MonoObjectHandle @ rbx, target=MonoObjectHandle @ r12, addr=0x0000000104f227f0, error=0x00007ffeeb35f288) at interp.c:1450 [opt]
frame #6: 0x00000001048f998c mono`ves_icall_mono_delegate_ctor_interp(this_obj_raw=<unavailable>, target_raw=<unavailable>, addr=0x0000000104f227f0) at jit-icalls.c:1442 [opt]
frame #7: 0x00000001049cb081 mono`do_icall(frame=<unavailable>, sig=0x00007ffb64806dc8, op=<unavailable>, sp=0x00007ffeeb35f550, ptr=<unavailable>) at interp.c:1906 [opt]
frame #8: 0x00000001049c9b7c mono`do_icall_wrapper(frame=0x00007ffeeb35fd20, sig=0x00007ffb64806dc8, op=524, sp=0x00007ffeeb35f568, ptr=0x00000001048f9910) at interp.c:1976 [opt]
frame #9: 0x00000001049b2e50 mono`interp_exec_method_full(frame=<unavailable>, context=<unavailable>, clause_args=<unavailable>) at interp.c:3120 [opt]
frame #10: 0x00000001049b81b2 mono`interp_exec_method_full(frame=<unavailable>, context=<unavailable>, clause_args=<unavailable>) at interp.c:4342 [opt]
frame #11: 0x00000001049b2c86 mono`interp_exec_method_full(frame=<unavailable>, context=<unavailable>, clause_args=<unavailable>) at interp.c:3101 [opt]
frame #12: 0x00000001049b2c86 mono`interp_exec_method_full(frame=<unavailable>, context=<unavailable>, clause_args=<unavailable>) at interp.c:3101 [opt]
frame #13: 0x00000001049b3c5c mono`interp_exec_method_full(frame=<unavailable>, context=<unavailable>, clause_args=<unavailable>) at interp.c:3288 [opt]
frame #14: 0x00000001049b2c86 mono`interp_exec_method_full(frame=<unavailable>, context=<unavailable>, clause_args=<unavailable>) at interp.c:3101 [opt]
frame #15: 0x00000001049b2c86 mono`interp_exec_method_full(frame=<unavailable>, context=<unavailable>, clause_args=<unavailable>) at interp.c:3101 [opt]
frame #16: 0x00000001049b3c5c mono`interp_exec_method_full(frame=<unavailable>, context=<unavailable>, clause_args=<unavailable>) at interp.c:3288 [opt]
frame #17: 0x00000001049b3c5c mono`interp_exec_method_full(frame=<unavailable>, context=<unavailable>, clause_args=<unavailable>) at interp.c:3288 [opt]
frame #18: 0x00000001049b15d9 mono`interp_runtime_invoke(method=<unavailable>, obj=0x0000000000000000, params=0x00007ffeeb3622b8, exc=0x0000000000000000, error=0x00007ffeeb3622f8) at interp.c:1721 [opt]
frame #19: 0x0000000104abb128 mono`mono_runtime_invoke_checked [inlined] do_runtime_invoke(method=0x00007ffb634134e8, obj=0x0000000000000000, params=0x00007ffeeb3622b8, exc=<unavailable>, error=0x00007ffeeb3622f8) at object.c:3011 [opt]
frame #20: 0x0000000104abb0f2 mono`mono_runtime_invoke_checked(method=0x00007ffb634134e8, obj=0x0000000000000000, params=0x00007ffeeb3622b8, error=0x00007ffeeb3622f8) at object.c:3179 [opt]
frame #21: 0x0000000104ac25be mono`mono_runtime_exec_main_checked [inlined] do_exec_main_checked(method=0x00007ffb634134e8, args=<unavailable>, error=0x00007ffeeb3622f8) at object.c:0 [opt]
frame #22: 0x0000000104ac258a mono`mono_runtime_exec_main_checked(method=0x00007ffb634134e8, args=<unavailable>, error=0x00007ffeeb3622f8) at object.c:5208 [opt]
frame #23: 0x000000010490a7b0 mono`mono_jit_exec at driver.c:1320 [opt]
frame #24: 0x000000010490a7a2 mono`mono_jit_exec(domain=<unavailable>, assembly=<unavailable>, argc=1, argv=0x00007ffeeb362678) at driver.c:1265 [opt]
frame #25: 0x000000010490d783 mono`mono_main [inlined] main_thread_handler at driver.c:1397 [opt]
frame #26: 0x000000010490d74d mono`mono_main(argc=3, argv=<unavailable>) at driver.c:2613 [opt]
frame #27: 0x000000010489ddfa mono`main [inlined] mono_main_with_options(argc=<unavailable>, argv=<unavailable>) at main.c:50 [opt]
frame #28: 0x000000010489dde6 mono`main(argc=3, argv=<unavailable>) at main.c:408 [opt]
frame #29: 0x00007fff7d10e3d5 libdyld.dylib`start + 1
frame #30: 0x00007fff7d10e3d5 libdyld.dylib`start + 1
thread #2, name = 'SGen worker'
frame #0: 0x00007fff7d24686a libsystem_kernel.dylib`__psynch_cvwait + 10
frame #1: 0x00007fff7d2ff56e libsystem_pthread.dylib`_pthread_cond_wait + 722
frame #2: 0x0000000104b913a3 mono`thread_func [inlined] mono_os_cond_wait(cond=<unavailable>, mutex=<unavailable>) at mono-os-mutex.h:177 [opt]
frame #3: 0x0000000104b91390 mono`thread_func at sgen-thread-pool.c:165 [opt]
frame #4: 0x0000000104b9137d mono`thread_func(data=0x0000000000000000) at sgen-thread-pool.c:196 [opt]
frame #5: 0x00007fff7d2fc2eb libsystem_pthread.dylib`_pthread_body + 126
frame #6: 0x00007fff7d2ff249 libsystem_pthread.dylib`_pthread_start + 66
frame #7: 0x00007fff7d2fb40d libsystem_pthread.dylib`thread_start + 13
thread #3, name = 'Finalizer'
frame #0: 0x00007fff7d243266 libsystem_kernel.dylib`semaphore_wait_trap + 10
frame #1: 0x0000000104b3a816 mono`finalizer_thread [inlined] mono_os_sem_wait(flags=MONO_SEM_FLAGS_ALERTABLE) at mono-os-semaphore.h:84 [opt]
frame #2: 0x0000000104b3a80b mono`finalizer_thread at mono-coop-semaphore.h:41 [opt]
frame #3: 0x0000000104b3a7f1 mono`finalizer_thread(unused=<unavailable>) at gc.c:969 [opt]
frame #4: 0x0000000104ae6e39 mono`start_wrapper_internal(start_info=<unavailable>, stack_ptr=<unavailable>) at threads.c:1220 [opt]
frame #5: 0x0000000104ae6c97 mono`start_wrapper(data=0x00007ffb63503130) at threads.c:1293 [opt]
frame #6: 0x00007fff7d2fc2eb libsystem_pthread.dylib`_pthread_body + 126
frame #7: 0x00007fff7d2ff249 libsystem_pthread.dylib`_pthread_start + 66
frame #8: 0x00007fff7d2fb40d libsystem_pthread.dylib`thread_start + 13
(lldb) detach
Process 29326 detached
(lldb) quit
=================================================================
Basic Fault Adddress Reporting
=================================================================
Memory around native instruction pointer (0x1049b185e):0x1049b184e 49 89 cf 49 89 d5 49 89 f4 48 89 fb 49 8b 45 00 I..I..I..H..I.E.
0x1049b185e f6 00 10 75 46 48 89 5d d0 48 8b 03 48 8b 00 48 ...uFH.].H..H..H
0x1049b186e 8b 38 e8 4b ff 10 00 48 89 c3 49 8b 7d 00 e8 af .8.K...H..I.}...
0x1049b187e 0a 0d 00 44 0f b7 70 08 48 89 df e8 a2 0a 0d 00 ...D..p.H.......
=================================================================
Managed Stacktrace:
=================================================================
at <unknown> <0xffffffff>
at System.Object:__icall_wrapper_ves_icall_mono_delegate_ctor_interp <0xffffffff>
at Crash.FastDelegateCreator`1:FastCreateDelegate_ParameterfulDelegate <0x0000a>
at System.Func`3:invoke_TResult_T1_T2 <0x000a4>
at Crash.FastDelegateCreator`1:BindTo <0x0001a>
at Crash.CalliEventHandlerDelegateProxy:Callback <0x00050>
at <Module>:invoke_void_object_EventArgs <0x0007e>
at Crash.MainClass:RunTest <0x0007c>
at Crash.MainClass:Main <0x00014>
at <Module>:runtime_invoke_direct_void_string[] <0x0008c>
=================================================================
Abort trap: 6
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment