Skip to content

Instantly share code, notes, and snippets.

@lambdageek
Created June 15, 2017 15:27
Show Gist options
  • Save lambdageek/3c5f24053f76f7e4ad95b47a20d512c1 to your computer and use it in GitHub Desktop.
Save lambdageek/3c5f24053f76f7e4ad95b47a20d512c1 to your computer and use it in GitHub Desktop.
GC during pthread_create
CSC [build-darwin] PEAPI.dll
* Assertion at mono-threads.c:1032, condition `info' not met
Native stacktrace:
0 mono 0x000000010192417e mono_handle_native_crash + 270
1 libsystem_platform.dylib 0x00007fff96477b3a _sigtramp + 26
2 ??? 0x00007f954ff0012c 0x0 + 140279267983660
3 mono 0x0000000102508a1e abort + 14
4 mono 0x0000000101ac3adf mono_log_write_logfile + 351
5 mono 0x0000000101af694d monoeg_g_logv + 109
6 mono 0x0000000101af6d34 monoeg_assertion_message + 356
7 mono 0x0000000101acf603 mono_thread_info_suspend_lock_with_info + 195
8 mono 0x0000000101abb732 on_gc_notification + 274
9 mono 0x0000000101aefd0b GC_stop_world + 59
10 mono 0x0000000101ad9c4d GC_stopped_mark + 45
11 mono 0x0000000101ad9afc GC_try_to_collect_inner + 444
12 mono 0x0000000101adade6 GC_collect_or_expand + 166
13 mono 0x0000000101adb0e1 GC_allocobj + 305
14 mono 0x0000000101ae1994 GC_generic_malloc_inner + 292
15 mono 0x0000000101aee3a1 GC_new_thread + 81
16 mono 0x0000000101aeed79 GC_start_routine_head + 89
17 mono 0x0000000101aef08c GC_start_routine + 44
18 libsystem_pthread.dylib 0x00007fff9648193b _pthread_body + 180
19 libsystem_pthread.dylib 0x00007fff96481887 _pthread_body + 0
20 libsystem_pthread.dylib 0x00007fff9648108d thread_start + 13
Debug info from gdb:
(lldb) command source -s 0 '/tmp/mono-gdb-commands.C1N9nQ'
Executing commands in '/tmp/mono-gdb-commands.C1N9nQ'.
(lldb) process attach --pid 78782
Process 78782 stopped
* thread #1, name = 'tid_307', queue = 'com.apple.main-thread', stop reason = signal SIGSTOP
frame #0: 0x00007fff96396c22 libsystem_kernel.dylib`__psynch_mutexwait + 10
libsystem_kernel.dylib`__psynch_mutexwait:
-> 0x7fff96396c22 <+10>: jae 0x7fff96396c2c ; <+20>
0x7fff96396c24 <+12>: movq %rax, %rdi
0x7fff96396c27 <+15>: jmp 0x7fff9638fcaf ; cerror_nocancel
0x7fff96396c2c <+20>: retq
Executable module set to "/Users/alekseyk/work/mono/mono/mini/mono".
Architecture set to: x86_64h-apple-macosx.
(lldb) thread list
Process 78782 stopped
* thread #1: tid = 0x2512173, 0x00007fff96396c22 libsystem_kernel.dylib`__psynch_mutexwait + 10, name = 'tid_307', queue = 'com.apple.main-thread', stop reason = signal SIGSTOP
thread #2: tid = 0x2512176, 0x00007fff9638f386 libsystem_kernel.dylib`semaphore_wait_trap + 10, name = 'Finalizer'
thread #3: tid = 0x2512177, 0x00007fff9639744e libsystem_kernel.dylib`__workq_kernreturn + 10
thread #4: tid = 0x2512178, 0x00007fff9639744e libsystem_kernel.dylib`__workq_kernreturn + 10
thread #5: tid = 0x2512179, 0x00007fff9639744e libsystem_kernel.dylib`__workq_kernreturn + 10
thread #6: tid = 0x2512189, 0x00007fff96396bf2 libsystem_kernel.dylib`__psynch_cvwait + 10, name = 'tid_200b'
thread #7: tid = 0x251218a, 0x00007fff96396bf2 libsystem_kernel.dylib`__psynch_cvwait + 10, name = 'Threadpool worker'
thread #8: tid = 0x251218b, 0x00007fff96396c22 libsystem_kernel.dylib`__psynch_mutexwait + 10, name = 'Threadpool worker'
thread #9: tid = 0x251218c, 0x00007fff96396bf2 libsystem_kernel.dylib`__psynch_cvwait + 10, name = 'Threadpool worker'
thread #10: tid = 0x251218d, 0x00007fff96396bf2 libsystem_kernel.dylib`__psynch_cvwait + 10, name = 'Threadpool worker'
thread #11: tid = 0x251218e, 0x00007fff963973ee libsystem_kernel.dylib`__wait4 + 10
(lldb) thread backtrace all
* thread #1, name = 'tid_307', queue = 'com.apple.main-thread', stop reason = signal SIGSTOP
* frame #0: 0x00007fff96396c22 libsystem_kernel.dylib`__psynch_mutexwait + 10
frame #1: 0x00007fff96481dfa libsystem_pthread.dylib`_pthread_mutex_lock_wait + 100
frame #2: 0x0000000101aed877 mono`GC_lock at pthread_support.c:1797
frame #3: 0x0000000101adfeea mono`GC_gcj_malloc(lb=48, ptr_to_struct_containing_descr=0x00007f9551823dd8) at gcj_mlc.c:153
frame #4: 0x0000000101abba4b mono`mono_gc_alloc_obj(vtable=0x00007f9551823dd8, size=48) at boehm-gc.c:655 [opt]
frame #5: 0x0000000101a96508 mono`mono_object_new_pinned(domain=<unavailable>, klass=0x00007f955182ca28, error=0x00007fff5e38dc48) at object.c:5222 [opt]
frame #6: 0x0000000101ab5a06 mono`mono_type_get_object_checked(domain=0x0000000102c00cc0, type=0x00007f95500552f0, error=0x00007fff5e38dc48) at reflection.c:548 [opt]
frame #7: 0x0000000101a8e0a8 mono`mono_class_vtable_full [inlined] mono_class_create_runtime_vtable(domain=<unavailable>, klass=<unavailable>, error=<unavailable>) at object.c:2086 [opt]
frame #8: 0x0000000101a8dd73 mono`mono_class_vtable_full(domain=<unavailable>, klass=0x00007f9550055240, error=<unavailable>) at object.c:1783 [opt]
frame #9: 0x0000000101a8ff77 mono`mono_class_vtable(domain=<unavailable>, klass=<unavailable>) at object.c:1750 [opt]
frame #10: 0x00000001018c2c1e mono`handle_alloc(cfg=0x00007f955106b400, klass=0x00007f9550055240, for_box=0, context_used=0) at method-to-ir.c:3724 [opt]
frame #11: 0x00000001018c67f2 mono`handle_delegate_ctor(cfg=0x00007f955106b400, klass=0x00007f9550055240, target=0x00007f9551084bc0, method=0x00007f9551077ab8, context_used=0, virtual_=0) at method-to-ir.c:3993 [opt]
frame #12: 0x000000010189faa7 mono`mono_method_to_ir(cfg=<unavailable>, method=<unavailable>, start_bblock=0x00007f9551083e78, end_bblock=0x00007f9551083fc0, return_var=0x0000000000000000, inline_args=0x00007f95510843b8, inline_offset=<unavailable>, is_virtual_call=<unavailable>) at method-to-ir.c:12131 [opt]
frame #13: 0x00000001018754e7 mono`mini_method_compile(method=<unavailable>, opts=370239999, domain=0x0000000102c00cc0, flags=JIT_FLAG_RUN_CCTORS, parts=0, aot_method_index=-1) at mini.c:3442 [opt]
frame #14: 0x0000000101878ae5 mono`mono_jit_compile_method_inner(method=0x00007f9551077990, target_domain=0x0000000102c00cc0, opt=370239999, error=0x00007f955106b2d8) at mini.c:4167 [opt]
frame #15: 0x000000010187c043 mono`mono_jit_compile_method_with_opt(method=0x00007f9551077990, opt=<unavailable>, jit_only=0, error=<unavailable>) at mini-runtime.c:2128 [opt]
frame #16: 0x000000010187fa2d mono`mono_jit_runtime_invoke [inlined] mono_jit_compile_method(method=<unavailable>, error=0x00007f955106b2d8) at mini-runtime.c:2174 [opt]
frame #17: 0x000000010187fa12 mono`mono_jit_runtime_invoke(method=<unavailable>, obj=<unavailable>, params=0x0000000000000000, exc=<unavailable>, error=<unavailable>) at mini-runtime.c:2675 [opt]
frame #18: 0x0000000101a91568 mono`do_runtime_invoke(method=0x00007f9551077990, obj=0x0000000000000000, params=0x0000000000000000, exc=0x00007fff5e38e818, error=0x00007f955106b2d8) at object.c:2828 [opt]
frame #19: 0x0000000101a8d205 mono`mono_runtime_class_init_full [inlined] mono_runtime_try_invoke(method=<unavailable>, obj=<unavailable>, params=<unavailable>, error=0x00007f955106b2d8) at object.c:2936 [opt]
frame #20: 0x0000000101a8d1af mono`mono_runtime_class_init_full(vtable=0x00007f9551915438, error=0x00007f955106b2d8) at object.c:471 [opt]
frame #21: 0x0000000101898628 mono`mono_method_to_ir(cfg=<unavailable>, method=<unavailable>, start_bblock=0x00007f9551066f48, end_bblock=<unavailable>, return_var=0x0000000000000000, inline_args=0x00007f9551067490, inline_offset=<unavailable>, is_virtual_call=<unavailable>) at method-to-ir.c:10642 [opt]
frame #22: 0x00000001018754e7 mono`mini_method_compile(method=<unavailable>, opts=370239999, domain=0x0000000102c00cc0, flags=JIT_FLAG_RUN_CCTORS, parts=0, aot_method_index=-1) at mini.c:3442 [opt]
frame #23: 0x0000000101878ae5 mono`mono_jit_compile_method_inner(method=0x00007f95510778a8, target_domain=0x0000000102c00cc0, opt=370239999, error=0x00007fff5e38eea8) at mini.c:4167 [opt]
frame #24: 0x000000010187c043 mono`mono_jit_compile_method_with_opt(method=0x00007f95510778a8, opt=<unavailable>, jit_only=0, error=<unavailable>) at mini-runtime.c:2128 [opt]
frame #25: 0x0000000101926626 mono`common_call_trampoline(regs=0x00007fff5e38ef88, code="H\x89E\xa0H\x83?\t", m=0x00007f95510778a8, vt=<unavailable>, vtable_slot=<unavailable>, error=<unavailable>) at mini-trampolines.c:704 [opt]
frame #26: 0x0000000101926159 mono`mono_magic_trampoline(regs=<unavailable>, code=<unavailable>, arg=<unavailable>, tramp=<unavailable>) at mini-trampolines.c:834 [opt]
frame #27: 0x0000000102b8839e
frame #28: 0x0000000104ba4aac
frame #29: 0x0000000104ba40fb
frame #30: 0x0000000104ba3e59
frame #31: 0x0000000104ba3acb
frame #32: 0x0000000104ba2543
frame #33: 0x0000000104ba1a45
frame #34: 0x0000000104ba04c0
frame #35: 0x0000000104ba020e
frame #36: 0x0000000104b9fd99
frame #37: 0x0000000104b9f6e3
frame #38: 0x0000000104b9f369
frame #39: 0x0000000104b9ee24
frame #40: 0x0000000104b9ecef
frame #41: 0x0000000104b9c807
frame #42: 0x0000000104b98908
frame #43: 0x0000000104b962f9
frame #44: 0x0000000104b92879
frame #45: 0x0000000104b9274f
frame #46: 0x0000000104af7a23
frame #47: 0x0000000104af76b4
frame #48: 0x00000001031fa6d8
frame #49: 0x0000000103027c00
frame #50: 0x000000010302242a
frame #51: 0x000000010302230e
frame #52: 0x000000010187fd94 mono`mono_jit_runtime_invoke(method=<unavailable>, obj=<unavailable>, params=0x00007fff5e390ba8, exc=0x0000000000000000, error=<unavailable>) at mini-runtime.c:2790 [opt]
frame #53: 0x0000000101a91568 mono`do_runtime_invoke(method=0x00007f954fd0a788, obj=0x0000000000000000, params=0x00007fff5e390ba8, exc=0x0000000000000000, error=0x00007fff5e390be8) at object.c:2828 [opt]
frame #54: 0x0000000101a9510e mono`do_exec_main_checked [inlined] mono_runtime_invoke_checked(method=<unavailable>, obj=<unavailable>, error=<unavailable>) at object.c:2982 [opt]
frame #55: 0x0000000101a950bc mono`do_exec_main_checked(method=0x00007f954fd0a788, args=<unavailable>, error=0x00007fff5e390be8) at object.c:4656 [opt]
frame #56: 0x00000001018e79df mono`mono_jit_exec(domain=<unavailable>, assembly=<unavailable>, argc=18, argv=0x00007fff5e390f28) at driver.c:1028 [opt]
frame #57: 0x00000001018e9fc9 mono`mono_main [inlined] main_thread_handler at driver.c:1097 [opt]
frame #58: 0x00000001018e9f95 mono`mono_main(argc=23, argv=<unavailable>) at driver.c:2179 [opt]
frame #59: 0x000000010186fafd mono`main [inlined] mono_main_with_options(argc=<unavailable>, argv=<unavailable>) at main.c:46 [opt]
frame #60: 0x000000010186fae9 mono`main(argc=23, argv=<unavailable>) at main.c:339 [opt]
frame #61: 0x00007fff96268235 libdyld.dylib`start + 1
thread #2, name = 'Finalizer'
frame #0: 0x00007fff9638f386 libsystem_kernel.dylib`semaphore_wait_trap + 10
frame #1: 0x0000000101a8911c mono`finalizer_thread [inlined] mono_os_sem_wait(flags=MONO_SEM_FLAGS_ALERTABLE) at mono-os-semaphore.h:91 [opt]
frame #2: 0x0000000101a89111 mono`finalizer_thread at mono-coop-semaphore.h:43 [opt]
frame #3: 0x0000000101a89105 mono`finalizer_thread(unused=<unavailable>) at gc.c:862 [opt]
frame #4: 0x0000000101a5ca53 mono`start_wrapper [inlined] start_wrapper_internal at threads.c:829 [opt]
frame #5: 0x0000000101a5c9d3 mono`start_wrapper(data=0x00007f954ff31a90) at threads.c:891 [opt]
frame #6: 0x0000000101aef0ce mono`GC_start_routine(arg=0x000000010303ef00) at pthread_support.c:1508
frame #7: 0x00007fff9648193b libsystem_pthread.dylib`_pthread_body + 180
frame #8: 0x00007fff96481887 libsystem_pthread.dylib`_pthread_start + 286
frame #9: 0x00007fff9648108d libsystem_pthread.dylib`thread_start + 13
thread #3
frame #0: 0x00007fff9639744e libsystem_kernel.dylib`__workq_kernreturn + 10
frame #1: 0x00007fff9648148e libsystem_pthread.dylib`_pthread_wqthread + 1023
frame #2: 0x00007fff9648107d libsystem_pthread.dylib`start_wqthread + 13
thread #4
frame #0: 0x00007fff9639744e libsystem_kernel.dylib`__workq_kernreturn + 10
frame #1: 0x00007fff96481621 libsystem_pthread.dylib`_pthread_wqthread + 1426
frame #2: 0x00007fff9648107d libsystem_pthread.dylib`start_wqthread + 13
thread #5
frame #0: 0x00007fff9639744e libsystem_kernel.dylib`__workq_kernreturn + 10
frame #1: 0x00007fff96481621 libsystem_pthread.dylib`_pthread_wqthread + 1426
frame #2: 0x00007fff9648107d libsystem_pthread.dylib`start_wqthread + 13
thread #6, name = 'tid_200b'
frame #0: 0x00007fff96396bf2 libsystem_kernel.dylib`__psynch_cvwait + 10
frame #1: 0x00007fff964827fa libsystem_pthread.dylib`_pthread_cond_wait + 712
frame #2: 0x0000000101acfc29 mono`mono_thread_info_sleep [inlined] mono_os_cond_timedwait at mono-os-mutex.h:216 [opt]
frame #3: 0x0000000101acfba7 mono`mono_thread_info_sleep at mono-coop-mutex.h:102 [opt]
frame #4: 0x0000000101acfb9b mono`mono_thread_info_sleep [inlined] sleep_interruptable(ms=<unavailable>, alerted=<unavailable>) at mono-threads.c:1200 [opt]
frame #5: 0x0000000101acfb52 mono`mono_thread_info_sleep(ms=500, alerted=0x000070000d139d18) at mono-threads.c:1232 [opt]
frame #6: 0x0000000101a613aa mono`monitor_thread(unused=<unavailable>) at threadpool-worker-default.c:693 [opt]
frame #7: 0x0000000101a5ca53 mono`start_wrapper [inlined] start_wrapper_internal at threads.c:829 [opt]
frame #8: 0x0000000101a5c9d3 mono`start_wrapper(data=0x00007f954fe49560) at threads.c:891 [opt]
frame #9: 0x0000000101aef0ce mono`GC_start_routine(arg=0x000000010303e8c0) at pthread_support.c:1508
frame #10: 0x00007fff9648193b libsystem_pthread.dylib`_pthread_body + 180
frame #11: 0x00007fff96481887 libsystem_pthread.dylib`_pthread_start + 286
frame #12: 0x00007fff9648108d libsystem_pthread.dylib`thread_start + 13
thread #7, name = 'Threadpool worker'
frame #0: 0x00007fff96396bf2 libsystem_kernel.dylib`__psynch_cvwait + 10
frame #1: 0x00007fff964827fa libsystem_pthread.dylib`_pthread_cond_wait + 712
frame #2: 0x000000010187bede mono`mono_jit_compile_method_with_opt [inlined] mono_os_cond_wait at mono-os-mutex.h:173 [opt]
frame #3: 0x000000010187bece mono`mono_jit_compile_method_with_opt at mono-coop-mutex.h:90 [opt]
frame #4: 0x000000010187beb3 mono`mono_jit_compile_method_with_opt [inlined] wait_or_register_method_to_compile at mini-runtime.c:1942 [opt]
frame #5: 0x000000010187be4a mono`mono_jit_compile_method_with_opt(method=0x00007f95510778a8, opt=<unavailable>, jit_only=0, error=<unavailable>) at mini-runtime.c:2126 [opt]
frame #6: 0x0000000101926626 mono`common_call_trampoline(regs=0x000070000d33be48, code="H\x89E\xa0H\x83?\t", m=0x00007f95510778a8, vt=<unavailable>, vtable_slot=<unavailable>, error=<unavailable>) at mini-trampolines.c:704 [opt]
frame #7: 0x0000000101926159 mono`mono_magic_trampoline(regs=<unavailable>, code=<unavailable>, arg=<unavailable>, tramp=<unavailable>) at mini-trampolines.c:834 [opt]
frame #8: 0x0000000102b8839e
frame #9: 0x0000000104ba4aac
frame #10: 0x0000000104ba40fb
frame #11: 0x0000000104ba3e59
frame #12: 0x0000000104ba3acb
frame #13: 0x0000000104ba2543
frame #14: 0x0000000104ba1a45
frame #15: 0x0000000104ba1a82
frame #16: 0x0000000104ba020e
frame #17: 0x0000000104b9fd99
frame #18: 0x0000000104b9f6e3
frame #19: 0x0000000104ba19a1
frame #20: 0x000000010187fd94 mono`mono_jit_runtime_invoke(method=<unavailable>, obj=<unavailable>, params=0x0000000000000000, exc=0x0000000000000001, error=<unavailable>) at mini-runtime.c:2790 [opt]
frame #21: 0x0000000101a91568 mono`do_runtime_invoke(method=0x00007f95518323f0, obj=0x0000000000000000, params=0x0000000000000000, exc=0x000070000d33ccb0, error=0x000070000d33cc30) at object.c:2828 [opt]
frame #22: 0x0000000101a5f0b6 mono`worker_callback at threadpool.c:278 [opt]
frame #23: 0x0000000101a5f060 mono`worker_callback at threadpool.c:362 [opt]
frame #24: 0x0000000101a617d1 mono`worker_thread(unused=<unavailable>) at threadpool-worker-default.c:494 [opt]
frame #25: 0x0000000101a5ca53 mono`start_wrapper [inlined] start_wrapper_internal at threads.c:829 [opt]
frame #26: 0x0000000101a5c9d3 mono`start_wrapper(data=0x00007f954fc4a430) at threads.c:891 [opt]
frame #27: 0x0000000101aef0ce mono`GC_start_routine(arg=0x000000010303e8c0) at pthread_support.c:1508
frame #28: 0x00007fff9648193b libsystem_pthread.dylib`_pthread_body + 180
frame #29: 0x00007fff96481887 libsystem_pthread.dylib`_pthread_start + 286
frame #30: 0x00007fff9648108d libsystem_pthread.dylib`thread_start + 13
thread #8, name = 'Threadpool worker'
frame #0: 0x00007fff96396c22 libsystem_kernel.dylib`__psynch_mutexwait + 10
frame #1: 0x00007fff96481dfa libsystem_pthread.dylib`_pthread_mutex_lock_wait + 100
frame #2: 0x0000000101aed877 mono`GC_lock at pthread_support.c:1797
frame #3: 0x0000000101ae1d59 mono`GC_malloc_atomic(lb=32) at malloc.c:259
frame #4: 0x0000000101abba11 mono`mono_gc_alloc_obj(vtable=0x00007f95508a5748, size=32) at boehm-gc.c:646 [opt]
frame #5: 0x0000000101a9642f mono`mono_object_new_specific_checked [inlined] mono_object_new_alloc_specific_checked(vtable=0x00007f95508a5748, error=0x000070000d53edd8) at object.c:5349 [opt]
frame #6: 0x0000000101a96408 mono`mono_object_new_specific_checked(vtable=0x00007f95508a5748, error=0x000070000d53edd8) at object.c:5289 [opt]
frame #7: 0x0000000101a96647 mono`ves_icall_object_new_specific(vtable=<unavailable>) at object.c:5296 [opt]
frame #8: 0x0000000103021f27
frame #9: 0x0000000104ba4d76
frame #10: 0x0000000104ba4ce5
frame #11: 0x0000000104ba4c2c
frame #12: 0x0000000104ba49ee
frame #13: 0x0000000104ba40fb
frame #14: 0x0000000104ba3e59
frame #15: 0x0000000104ba3acb
frame #16: 0x0000000104ba2543
frame #17: 0x0000000104ba1a45
frame #18: 0x0000000104ba1a82
frame #19: 0x0000000104ba020e
frame #20: 0x0000000104b9fd99
frame #21: 0x0000000104b9f6e3
frame #22: 0x0000000104ba19a1
frame #23: 0x000000010187fd94 mono`mono_jit_runtime_invoke(method=<unavailable>, obj=<unavailable>, params=0x0000000000000000, exc=0x00007f95508a5748, error=<unavailable>) at mini-runtime.c:2790 [opt]
frame #24: 0x0000000101a91568 mono`do_runtime_invoke(method=0x00007f95518323f0, obj=0x0000000000000000, params=0x0000000000000000, exc=0x000070000d53fcb0, error=0x000070000d53fc30) at object.c:2828 [opt]
frame #25: 0x0000000101a5f0b6 mono`worker_callback at threadpool.c:278 [opt]
frame #26: 0x0000000101a5f060 mono`worker_callback at threadpool.c:362 [opt]
frame #27: 0x0000000101a617d1 mono`worker_thread(unused=<unavailable>) at threadpool-worker-default.c:494 [opt]
frame #28: 0x0000000101a5ca53 mono`start_wrapper [inlined] start_wrapper_internal at threads.c:829 [opt]
frame #29: 0x0000000101a5c9d3 mono`start_wrapper(data=0x00007f954fe4aeb0) at threads.c:891 [opt]
frame #30: 0x0000000101aef0ce mono`GC_start_routine(arg=0x000000010303e8c0) at pthread_support.c:1508
frame #31: 0x00007fff9648193b libsystem_pthread.dylib`_pthread_body + 180
frame #32: 0x00007fff96481887 libsystem_pthread.dylib`_pthread_start + 286
frame #33: 0x00007fff9648108d libsystem_pthread.dylib`thread_start + 13
thread #9, name = 'Threadpool worker'
frame #0: 0x00007fff96396bf2 libsystem_kernel.dylib`__psynch_cvwait + 10
frame #1: 0x00007fff964827fa libsystem_pthread.dylib`_pthread_cond_wait + 712
frame #2: 0x0000000101aef411 mono`sem_wait(sem=0x000000010303e798) at darwin_semaphore.h:51
frame #3: 0x0000000101aef289 mono`GC_pthread_create(new_thread=0x000070000d742398, attr=0x000070000d7423a0, start_routine=(mono`start_wrapper at threads.c:879), arg=0x00007f954fc43980) at pthread_support.c:1592
frame #4: 0x0000000101ad1ff5 mono`mono_thread_platform_create_thread(thread_fn=(mono`start_wrapper at threads.c:879), thread_data=0x00007f954fc43980, stack_size=0x000070000d742450, tid=0x000070000d742420) at mono-threads-posix.c:79 [opt]
frame #5: 0x0000000101a55849 mono`create_thread(thread=<unavailable>, internal=0x00000001030314e0, start_delegate=<unavailable>, start_func=<unavailable>, start_func_arg=<unavailable>, flags=<unavailable>, error=<unavailable>) at threads.c:968 [opt]
frame #6: 0x0000000101a552b0 mono`mono_thread_create_internal(domain=<unavailable>, func=<unavailable>, arg=<unavailable>, flags=<unavailable>, error=0x000070000d742500) at threads.c:1055 [opt]
frame #7: 0x0000000101a60d59 mono`worker_try_create at threadpool-worker-default.c:553 [opt]
frame #8: 0x0000000101a5fbfb mono`worker_request at threadpool-worker-default.c:591 [opt]
frame #9: 0x0000000101a5facf mono`mono_threadpool_worker_request at threadpool-worker-default.c:357 [opt]
frame #10: 0x0000000101a5ea25 mono`ves_icall_System_Threading_ThreadPool_RequestWorkerThread at threadpool.c:787 [opt]
frame #11: 0x0000000104ba18a0
frame #12: 0x0000000104ba19a1
frame #13: 0x000000010187fd94 mono`mono_jit_runtime_invoke(method=<unavailable>, obj=<unavailable>, params=0x0000000000000000, exc=0x00007f9551918610, error=<unavailable>) at mini-runtime.c:2790 [opt]
frame #14: 0x0000000101a91568 mono`do_runtime_invoke(method=0x00007f95518323f0, obj=0x0000000000000000, params=0x0000000000000000, exc=0x000070000d742cb0, error=0x000070000d742c30) at object.c:2828 [opt]
frame #15: 0x0000000101a5f0b6 mono`worker_callback at threadpool.c:278 [opt]
frame #16: 0x0000000101a5f060 mono`worker_callback at threadpool.c:362 [opt]
frame #17: 0x0000000101a617d1 mono`worker_thread(unused=<unavailable>) at threadpool-worker-default.c:494 [opt]
frame #18: 0x0000000101a5ca53 mono`start_wrapper [inlined] start_wrapper_internal at threads.c:829 [opt]
frame #19: 0x0000000101a5c9d3 mono`start_wrapper(data=0x00007f954fd48080) at threads.c:891 [opt]
frame #20: 0x0000000101aef0ce mono`GC_start_routine(arg=0x000000010303e780) at pthread_support.c:1508
frame #21: 0x00007fff9648193b libsystem_pthread.dylib`_pthread_body + 180
frame #22: 0x00007fff96481887 libsystem_pthread.dylib`_pthread_start + 286
frame #23: 0x00007fff9648108d libsystem_pthread.dylib`thread_start + 13
thread #10, name = 'Threadpool worker'
frame #0: 0x00007fff96396bf2 libsystem_kernel.dylib`__psynch_cvwait + 10
frame #1: 0x00007fff964827fa libsystem_pthread.dylib`_pthread_cond_wait + 712
frame #2: 0x0000000101a619a1 mono`worker_thread [inlined] mono_os_cond_timedwait at mono-os-mutex.h:216 [opt]
frame #3: 0x0000000101a61916 mono`worker_thread at mono-coop-mutex.h:102 [opt]
frame #4: 0x0000000101a61909 mono`worker_thread at threadpool-worker-default.c:417 [opt]
frame #5: 0x0000000101a617d6 mono`worker_thread(unused=<unavailable>) at threadpool-worker-default.c:484 [opt]
frame #6: 0x0000000101a5ca53 mono`start_wrapper [inlined] start_wrapper_internal at threads.c:829 [opt]
frame #7: 0x0000000101a5c9d3 mono`start_wrapper(data=0x00007f954fe4ca30) at threads.c:891 [opt]
frame #8: 0x0000000101aef0ce mono`GC_start_routine(arg=0x000000010303e780) at pthread_support.c:1508
frame #9: 0x00007fff9648193b libsystem_pthread.dylib`_pthread_body + 180
frame #10: 0x00007fff96481887 libsystem_pthread.dylib`_pthread_start + 286
frame #11: 0x00007fff9648108d libsystem_pthread.dylib`thread_start + 13
thread #11
frame #0: 0x00007fff963973ee libsystem_kernel.dylib`__wait4 + 10
frame #1: 0x0000000101924222 mono`mono_handle_native_crash(signal="SIGABRT", ctx=<unavailable>, info=<unavailable>) at mini-exceptions.c:2720 [opt]
frame #2: 0x00007fff96477b3a libsystem_platform.dylib`_sigtramp + 26
frame #3: 0x00007fff96396d43 libsystem_kernel.dylib`__pthread_kill + 11
frame #4: 0x00007fff96484457 libsystem_pthread.dylib`pthread_kill + 90
frame #5: 0x0000000102508a1e mono`abort + 14
frame #6: 0x0000000101ac3adf mono`mono_log_write_logfile(log_domain=<unavailable>, level=<unavailable>, hdr=<unavailable>, message="* Assertion at mono-threads.c:1032, condition `info' not met\n") at mono-log-common.c:135 [opt]
frame #7: 0x0000000101af694d mono`monoeg_g_logv(log_domain=0x0000000000000000, log_level=G_LOG_LEVEL_ERROR, format="* Assertion at %s:%d, condition `%s' not met\n", args=0x000070000db48b40) at goutput.c:115
frame #8: 0x0000000101af6d34 mono`monoeg_assertion_message(format="* Assertion at %s:%d, condition `%s' not met\n") at goutput.c:135
frame #9: 0x0000000101acf603 mono`mono_thread_info_suspend_lock_with_info(info=0x0000000000000000) at mono-threads.c:1032 [opt]
frame #10: 0x0000000101abb732 mono`on_gc_notification(event=GC_EVENT_PRE_STOP_WORLD) at boehm-gc.c:498 [opt]
frame #11: 0x0000000101aefd0b mono`GC_stop_world at darwin_stop_world.c:582
frame #12: 0x0000000101ad9c4d mono`GC_stopped_mark(stop_func=(mono`GC_never_stop_func at alloc.c:117)) at alloc.c:503
frame #13: 0x0000000101ad9afc mono`GC_try_to_collect_inner(stop_func=(mono`GC_never_stop_func at alloc.c:117)) at alloc.c:382
frame #14: 0x0000000101adade6 mono`GC_collect_or_expand(needed_blocks=1, ignore_off_page=0) at alloc.c:1053
frame #15: 0x0000000101adb0e1 mono`GC_allocobj(sz=256, kind=1) at alloc.c:1133
frame #16: 0x0000000101ae1994 mono`GC_generic_malloc_inner(lb=1656, k=1) at malloc.c:136
frame #17: 0x0000000101aee3a1 mono`GC_new_thread(id=0x000070000db49000) at pthread_support.c:763
frame #18: 0x0000000101aeed79 mono`GC_start_routine_head(arg=0x000000010303e780, base_addr=0x000070000db48ee4, start=0x000070000db48ec0, start_arg=0x000070000db48eb8) at pthread_support.c:1416
frame #19: 0x0000000101aef08c mono`GC_start_routine(arg=0x000000010303e780) at pthread_support.c:1502
frame #20: 0x00007fff9648193b libsystem_pthread.dylib`_pthread_body + 180
frame #21: 0x00007fff96481887 libsystem_pthread.dylib`_pthread_start + 286
frame #22: 0x00007fff9648108d libsystem_pthread.dylib`thread_start + 13
(lldb) detach
Process 78782 detached
(lldb) quit
=================================================================
Got a SIGABRT while executing native code. This usually indicates
a fatal error in the mono runtime or one of the native libraries
used by your application.
=================================================================
/bin/sh: line 1: 78782 Illegal instruction: 4 MONO_PATH="./../../class/lib/basic:$MONO_PATH" CSC_SDK_PATH_DISABLED= /Users/alekseyk/work/mono/runtime/mono-wrapper --aot-path=/Users/alekseyk/work/mono/mcs/class/lib/basic --gc-params=nursery-size=64m /Users/alekseyk/work/mono/external/roslyn-binaries/Microsoft.Net.Compilers/Microsoft.Net.Compilers.2.3.0/tools/csc.exe /codepage:65001 /nologo /noconfig /deterministic -d:NET_4_0 -d:NET_4_5 -d:MONO -d:WIN_PLATFORM -nowarn:1699 -nostdlib -r:./../../class/lib/build-darwin/mscorlib.dll -optimize -nowarn:414,618 -r:./../../class/lib/build-darwin/System.dll -target:library -out:../../class/lib/build-darwin/PEAPI.dll @./../../build/deps/darwin_build__PEAPI.dll.response
make[8]: *** [../../class/lib/build-darwin/PEAPI.dll] Error 132
make[7]: *** [do-all] Error 2
make[6]: *** [all-recursive] Error 1
make[5]: *** [all-recursive] Error 1
make[4]: *** [profile-do--build--all] Error 2
make[3]: *** [profiles-do--all] Error 2
make[2]: *** [all-local] Error 2
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
CC='ccache cc' CXX='ccache c++' ./autogen.sh --prefix=${PREFIX} --disable-nls --enable-native-types --enable-llvm --enable-debug --enable-checked-build=all --with-libgdiplus=/Library/Frameworks/Mono.framework/Versions/Current/lib/libgdiplus.dylib --disable-btls --with-sgen=no --enable-boehm
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment