Skip to content

Instantly share code, notes, and snippets.

@angstsmurf
Last active October 1, 2018 23:10
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 angstsmurf/e3a4e4cef4e9c2b6d0789663e5d445f4 to your computer and use it in GitHub Desktop.
Save angstsmurf/e3a4e4cef4e9c2b6d0789663e5d445f4 to your computer and use it in GitHub Desktop.
Mono crash
******$ mono /Users/******/Downloads/usr/local/lib/adrift5/MonoRunner.exe /Users/******/Downloads/IFComp2018/Games/Six\ Silver\ Bullets/six\ silver\ bullets/Six\ Silver\ Bullets\ \(v\ 1.0\).blorb
WARNING: The Carbon driver has not been ported to 64bits, and very few parts of Windows.Forms will work properly, or at all
Stacktrace:
at <unknown> <0xffffffff>
at (wrapper managed-to-native) System.Windows.Forms.XplatUICarbon.CGDisplayBounds (intptr) [0x00002] in <84cef96c1ef54299a622b3e52fada5d0>:0
at System.Windows.Forms.XplatUICarbon.get_WorkingArea () [0x00005] in <84cef96c1ef54299a622b3e52fada5d0>:0
at System.Windows.Forms.XplatUICarbon.get_VirtualScreen () [0x00000] in <84cef96c1ef54299a622b3e52fada5d0>:0
at System.Windows.Forms.XplatUI.get_VirtualScreen () [0x00000] in <84cef96c1ef54299a622b3e52fada5d0>:0
at System.Windows.Forms.Screen..cctor () [0x00034] in <84cef96c1ef54299a622b3e52fada5d0>:0
at (wrapper runtime-invoke) object.runtime_invoke_void (object,intptr,intptr,intptr) [0x0001e] in <bb7b695b8c6246b3ac1646577aea7650>:0
at <unknown> <0xffffffff>
at System.Windows.Forms.MessageBox/MessageBoxForm.InitFormsSize () [0x00002] in <84cef96c1ef54299a622b3e52fada5d0>:0
at System.Windows.Forms.MessageBox/MessageBoxForm.RunDialog () [0x0000f] in <84cef96c1ef54299a622b3e52fada5d0>:0
at (wrapper remoting-invoke-with-check) System.Windows.Forms.MessageBox/MessageBoxForm.RunDialog () [0x00031] in <84cef96c1ef54299a622b3e52fada5d0>:0
at System.Windows.Forms.MessageBox.Show (string) [0x0000e] in <84cef96c1ef54299a622b3e52fada5d0>:0
at R.P.Main (string[]) [0x00185] in <32bb8ee9bb4a49ddbcad663cde1e5817>:0
at (wrapper runtime-invoke) <Module>.runtime_invoke_void_object (object,intptr,intptr,intptr) [0x0004e] in <32bb8ee9bb4a49ddbcad663cde1e5817>:0
Native stacktrace:
0 mono 0x00000001089eabf8 mono_handle_native_crash + 264
1 mono 0x0000000108a87106 altstack_handle_and_restore + 70
2 SkyLight 0x00007fffb1efd81c SLDisplayBounds + 50
3 ??? 0x000000010f5e7ffe 0x0 + 4552818686
4 ??? 0x000000010b3fbca6 0x0 + 4483693734
5 mono 0x000000010893f297 mono_jit_runtime_invoke + 1383
6 mono 0x0000000108b37ab4 do_runtime_invoke + 84
7 mono 0x0000000108b33a34 mono_runtime_class_init_full + 996
8 mono 0x00000001089385b8 mono_jit_compile_method_inner + 2488
9 mono 0x000000010893b4d2 mono_jit_compile_method_with_opt + 1442
10 mono 0x00000001089ed181 common_call_trampoline + 1217
11 mono 0x00000001089ecc7c mono_magic_trampoline + 60
12 ??? 0x0000000108e10393 0x0 + 4443931539
13 ??? 0x000000010f5e69c3 0x0 + 4552812995
14 ??? 0x000000010f5e67c3 0x0 + 4552812483
15 ??? 0x0000000108f58979 0x0 + 4445276537
16 mono 0x000000010893f297 mono_jit_runtime_invoke + 1383
17 mono 0x0000000108b37ab4 do_runtime_invoke + 84
18 mono 0x0000000108b3b079 do_exec_main_checked + 137
19 mono 0x00000001089acb0f mono_jit_exec + 287
20 mono 0x00000001089afa8d mono_main + 11069
21 mono 0x000000010892ec4d main + 253
22 mono 0x000000010892eb44 start + 52
23 ??? 0x0000000000000003 0x0 + 3
Debug info from gdb:
(lldb) command source -s 0 '/tmp/mono-gdb-commands.48NDEo'
Executing commands in '/tmp/mono-gdb-commands.48NDEo'.
(lldb) process attach --pid 3796
warning: (x86_64) /Library/Frameworks/Mono.framework/Versions/5.10.1/lib/mono/4.5/mscorlib.dll.dylib empty dSYM file detected, dSYM was created with an executable with no debug info.
warning: (x86_64) /Library/Frameworks/Mono.framework/Versions/5.10.1/lib/libglib-2.0.0.dylib empty dSYM file detected, dSYM was created with an executable with no debug info.
Process 3796 stopped
* thread #1, name = 'tid_307', queue = 'com.apple.main-thread', stop reason = signal SIGSTOP
frame #0: 0x00007fffb5cd03ee libsystem_kernel.dylib`__wait4 + 10
libsystem_kernel.dylib`__wait4:
-> 0x7fffb5cd03ee <+10>: jae 0x7fffb5cd03f8 ; <+20>
0x7fffb5cd03f0 <+12>: movq %rax, %rdi
0x7fffb5cd03f3 <+15>: jmp 0x7fffb5cc8cd4 ; cerror
0x7fffb5cd03f8 <+20>: retq
Target 0: (mono) stopped.
Executable module set to "/Library/Frameworks/Mono.framework/Versions/Current/Commands/mono".
Architecture set to: x86_64h-apple-macosx.
(lldb) thread list
Process 3796 stopped
* thread #1: tid = 0x9c808, 0x00007fffb5cd03ee libsystem_kernel.dylib`__wait4 + 10, name = 'tid_307', queue = 'com.apple.main-thread', stop reason = signal SIGSTOP
thread #2: tid = 0x9c80a, 0x00007fffb5ccfbf2 libsystem_kernel.dylib`__psynch_cvwait + 10, name = 'SGen worker'
thread #3: tid = 0x9c80b, 0x00007fffb5cc8386 libsystem_kernel.dylib`semaphore_wait_trap + 10, name = 'Finalizer'
thread #4: tid = 0x9c80c, 0x00007fffb5cd044e libsystem_kernel.dylib`__workq_kernreturn + 10
thread #5: tid = 0x9c80d, 0x00007fffb5cd044e libsystem_kernel.dylib`__workq_kernreturn + 10
thread #6: tid = 0x9c80e, 0x00007fffb5cd044e libsystem_kernel.dylib`__workq_kernreturn + 10
(lldb) thread backtrace all
* thread #1, name = 'tid_307', queue = 'com.apple.main-thread', stop reason = signal SIGSTOP
* frame #0: 0x00007fffb5cd03ee libsystem_kernel.dylib`__wait4 + 10
frame #1: 0x00000001089eac9f mono`mono_handle_native_crash(signal=<unavailable>, ctx=<unavailable>, info=<unavailable>) at mini-exceptions.c:2830 [opt]
frame #2: 0x0000000108a87106 mono`altstack_handle_and_restore(ctx=0x00007fff572d25a0, obj=0x0000000000000000, stack_ovf=0) at exceptions-amd64.c:849 [opt]
frame #3: 0x00007fffb1efd81c SkyLight`SLDisplayBounds + 50
frame #4: 0x000000010f5e7ffe
frame #5: 0x000000010b3fbca6
frame #6: 0x000000010893f297 mono`mono_jit_runtime_invoke(method=0x00007faf12043210, obj=<unavailable>, params=0x0000000000000000, exc=0x00007fff572d2c38, error=<unavailable>) at mini-runtime.c:2806 [opt]
frame #7: 0x0000000108b37ab4 mono`do_runtime_invoke(method=0x00007faf129274f0, obj=0x0000000000000000, params=0x0000000000000000, exc=0x00007fff572d2c38, error=0x00007fff572d2e10) at object.c:2887 [opt]
frame #8: 0x0000000108b33a34 mono`mono_runtime_class_init_full [inlined] mono_runtime_try_invoke(method=<unavailable>, obj=<unavailable>, params=<unavailable>, error=0x00007fff572d2e10) at object.c:2994 [opt]
frame #9: 0x0000000108b339ef mono`mono_runtime_class_init_full(vtable=0x00007faf121692e0, error=0x00007fff572d2e10) at object.c:475 [opt]
frame #10: 0x00000001089385b8 mono`mono_jit_compile_method_inner(method=0x00007faf118b39d0, target_domain=<unavailable>, opt=<unavailable>, error=0x00007fff572d2e10) at mini.c:4349 [opt]
frame #11: 0x000000010893b4d2 mono`mono_jit_compile_method_with_opt(method=0x00007faf118b39d0, opt=<unavailable>, jit_only=<unavailable>, error=0x00007fff572d2e10) at mini-runtime.c:2129 [opt]
z\x0e", m=0x00007faf118b39d0, vt=<unavailable>, vtable_slot=<unavailable>, error=<unavailable>) at mini-trampolines.c:715 [opt]
z\x0e", arg=0x00007faf118b39d0, tramp=<unavailable>) at mini-trampolines.c:846 [opt], code="Hc\x85 ????*??
frame #14: 0x0000000108e10393
frame #15: 0x000000010f5e69c3
frame #16: 0x000000010f5e67c3
frame #17: 0x0000000108f58979
frame #18: 0x000000010893f297 mono`mono_jit_runtime_invoke(method=0x0000000000086bce, obj=<unavailable>, params=0x00007fff572d3608, exc=0x000000010ca01360, error=<unavailable>) at mini-runtime.c:2806 [opt]
frame #19: 0x0000000108b37ab4 mono`do_runtime_invoke(method=0x00007faf1150df48, obj=0x0000000000000000, params=0x00007fff572d3608, exc=0x0000000000000000, error=0x00007fff572d3648) at object.c:2887 [opt]
frame #20: 0x0000000108b3b079 mono`do_exec_main_checked [inlined] mono_runtime_invoke_checked(method=<unavailable>, obj=<unavailable>, error=<unavailable>) at object.c:3040 [opt]
frame #21: 0x0000000108b3b038 mono`do_exec_main_checked(method=0x00007faf1150df48, args=<unavailable>, error=0x00007fff572d3648) at object.c:4784 [opt]
frame #22: 0x00000001089acb0f mono`mono_jit_exec(domain=<unavailable>, assembly=<unavailable>, argc=2, argv=0x00007fff572d39c8) at driver.g.c:1210 [opt]
frame #23: 0x00000001089afa8d mono`mono_main [inlined] main_thread_handler at driver.g.c:1287 [opt]
frame #24: 0x00000001089afa59 mono`mono_main(argc=<unavailable>, argv=<unavailable>) at driver.g.c:2417 [opt]
frame #25: 0x000000010892ec4d mono`main [inlined] mono_main_with_options(argc=<unavailable>, argv=<unavailable>) at main.c:47 [opt]
frame #26: 0x000000010892ec39 mono`main(argc=3, argv=<unavailable>) at main.c:340 [opt]
frame #27: 0x000000010892eb44 mono`start + 52
thread #2, name = 'SGen worker'
frame #0: 0x00007fffb5ccfbf2 libsystem_kernel.dylib`__psynch_cvwait + 10
frame #1: 0x00007fffb5dbb7fa libsystem_pthread.dylib`_pthread_cond_wait + 712
frame #2: 0x0000000108befffe mono`thread_func [inlined] mono_os_cond_wait(mutex=<unavailable>) at mono-os-mutex.h:173 [opt]
frame #3: 0x0000000108beffeb mono`thread_func at sgen-thread-pool.c:165 [opt]
frame #4: 0x0000000108beffdd mono`thread_func(data=0x0000000000000000) at sgen-thread-pool.c:196 [opt]
frame #5: 0x00007fffb5dba93b libsystem_pthread.dylib`_pthread_body + 180
frame #6: 0x00007fffb5dba887 libsystem_pthread.dylib`_pthread_start + 286
frame #7: 0x00007fffb5dba08d libsystem_pthread.dylib`thread_start + 13
thread #3, name = 'Finalizer'
frame #0: 0x00007fffb5cc8386 libsystem_kernel.dylib`semaphore_wait_trap + 10
frame #1: 0x0000000108b9da9c mono`finalizer_thread [inlined] mono_os_sem_wait(flags=MONO_SEM_FLAGS_ALERTABLE) at mono-os-semaphore.h:90 [opt]
frame #2: 0x0000000108b9da91 mono`finalizer_thread at mono-coop-semaphore.h:43 [opt]
frame #3: 0x0000000108b9da85 mono`finalizer_thread(unused=<unavailable>) at gc.c:852 [opt]
frame #4: 0x0000000108b59960 mono`start_wrapper [inlined] start_wrapper_internal at threads.c:1004 [opt]
frame #5: 0x0000000108b598c3 mono`start_wrapper(data=<unavailable>) at threads.c:1064 [opt]
frame #6: 0x00007fffb5dba93b libsystem_pthread.dylib`_pthread_body + 180
frame #7: 0x00007fffb5dba887 libsystem_pthread.dylib`_pthread_start + 286
frame #8: 0x00007fffb5dba08d libsystem_pthread.dylib`thread_start + 13
thread #4
frame #0: 0x00007fffb5cd044e libsystem_kernel.dylib`__workq_kernreturn + 10
frame #1: 0x00007fffb5dba621 libsystem_pthread.dylib`_pthread_wqthread + 1426
frame #2: 0x00007fffb5dba07d libsystem_pthread.dylib`start_wqthread + 13
thread #5
frame #0: 0x00007fffb5cd044e libsystem_kernel.dylib`__workq_kernreturn + 10
frame #1: 0x00007fffb5dba48e libsystem_pthread.dylib`_pthread_wqthread + 1023
frame #2: 0x00007fffb5dba07d libsystem_pthread.dylib`start_wqthread + 13
thread #6
frame #0: 0x00007fffb5cd044e libsystem_kernel.dylib`__workq_kernreturn + 10
frame #1: 0x00007fffb5dba621 libsystem_pthread.dylib`_pthread_wqthread + 1426
frame #2: 0x00007fffb5dba07d libsystem_pthread.dylib`start_wqthread + 13
(lldb) detach
=================================================================
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.
=================================================================
Process 3796 detached
(lldb) quit
Abort trap: 6
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment