我们有一个使用Xamarin.Mac的Mac应用程序,我们使用的版本是5.12.0 我们的用户注意到我们的应用程序中随机发生。我们调试了Mac本身生成的诊断日志,并发现Mono随SIGILL崩溃。
以下是Mac生成的崩溃报告:-
Thread 7 Crashed:: tid_c903
0 libsystem_c.dylib 0x00007fff5363326e __abort + 177
1 libsystem_c.dylib 0x00007fff536331bd abort + 142
2 com.MyApp 0x0000000102960d3b mono_handle_native_crash + 603
3 com.MyApp 0x000000010297047e mono_sigill_signal_handler + 46
4 libsystem_platform.dylib 0x00007fff53895f5a _sigtramp + 26
5 ??? 0x0000000102c7d170 0 + 4341617008
6 libsystem_c.dylib 0x00007fff536331bd abort + 142
7 com.MyApp 0x00000001028668b0 log_callback(char const*, char const*, char const*, int, void*) + 64
8 com.MyApp 0x0000000102b21573 monoeg_g_logv + 83
9 com.MyApp 0x0000000102b2178f monoeg_assertion_message + 143
10 com.MyApp 0x0000000102a8bb81 thread_detach + 129
11 com.MyApp 0x0000000102b14d48 unregister_thread + 184
12 com.MyApp 0x0000000102b15340 thread_info_key_dtor + 32
13 libsystem_pthread.dylib 0x00007fff538a1163 _pthread_tsd_cleanup + 463
14 libsystem_pthread.dylib 0x00007fff538a0ee9 _pthread_exit + 79
15 libsystem_pthread.dylib 0x00007fff5389f66c _pthread_body + 351
16 libsystem_pthread.dylib 0x00007fff5389f50d _pthread_start + 377
17 libsystem_pthread.dylib 0x00007fff5389ebf9 thread_start + 13