Skip to content

Instantly share code, notes, and snippets.

@lemonmojo
Created February 15, 2017 18:14
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 lemonmojo/03806089e01f6a4279ddee2912137d87 to your computer and use it in GitHub Desktop.
Save lemonmojo/03806089e01f6a4279ddee2912137d87 to your computer and use it in GitHub Desktop.
2017-02-15 18:27:26.111 XamarinMacAOTTest[8037:1864023] error: * Assertion at /Users/builder/data/lanes/1381/80e06201/source/xamarin-macios/external/mono/mono/mini/aot-runtime.c:2302, condition `globals' not met
Stacktrace:
at <unknown> <0xffffffff>
at (wrapper managed-to-native) XamarinMacAOTTest.AOTUtils.mono_aot_register_module (intptr) [0x00009] in <a716702240724b9ea2c3fe792a23a09a>:0
at XamarinMacAOTTest.AOTUtils.RegisterAOTInfo (intptr) [0x00002] in /Users/fx/Development/Mono/XamarinMacAOTTest/XamarinMacAOTTest/AOTUtils.cs:65
at XamarinMacAOTTest.ViewController.LoadPlugin (string) [0x00045] in /Users/fx/Development/Mono/XamarinMacAOTTest/XamarinMacAOTTest/ViewController.cs:50
at XamarinMacAOTTest.ViewController.DoCalculation () [0x00007] in /Users/fx/Development/Mono/XamarinMacAOTTest/XamarinMacAOTTest/ViewController.cs:59
at System.Threading.ThreadHelper.ThreadStart_Context (object) [0x00017] in /Library/Frameworks/Xamarin.Mac.framework/Versions/3.1.0.417/src/mono/mcs/class/referencesource/mscorlib/system/threading/thread.cs:68
at System.Threading.ExecutionContext.RunInternal (System.Threading.ExecutionContext,System.Threading.ContextCallback,object,bool) [0x0008d] in /Library/Frameworks/Xamarin.Mac.framework/Versions/3.1.0.417/src/mono/mcs/class/referencesource/mscorlib/system/threading/executioncontext.cs:957
at System.Threading.ExecutionContext.Run (System.Threading.ExecutionContext,System.Threading.ContextCallback,object,bool) [0x00000] in /Library/Frameworks/Xamarin.Mac.framework/Versions/3.1.0.417/src/mono/mcs/class/referencesource/mscorlib/system/threading/executioncontext.cs:904
at System.Threading.ExecutionContext.Run (System.Threading.ExecutionContext,System.Threading.ContextCallback,object) [0x00031] in /Library/Frameworks/Xamarin.Mac.framework/Versions/3.1.0.417/src/mono/mcs/class/referencesource/mscorlib/system/threading/executioncontext.cs:893
at System.Threading.ThreadHelper.ThreadStart () [0x0000b] in /Library/Frameworks/Xamarin.Mac.framework/Versions/3.1.0.417/src/mono/mcs/class/referencesource/mscorlib/system/threading/thread.cs:105
at (wrapper runtime-invoke) object.runtime_invoke_void__this__ (object,intptr,intptr,intptr) [0x0004f] in <4913533b08434f6d900c52070e5ccbcd>:0
Native stacktrace:
0 XamarinMacAOTTest 0x00000001002d167a mono_handle_native_sigsegv + 282
1 libsystem_platform.dylib 0x00007fffaf6c1bba _sigtramp + 26
2 ??? 0x000070000891ef20 0x0 + 123145446092576
3 libsystem_c.dylib 0x00007fffaf548420 abort + 129
4 XamarinMacAOTTest 0x00000001001d9190 _ZL12log_callbackPKcS0_S0_iPv + 64
5 XamarinMacAOTTest 0x000000010046c273 monoeg_g_logv + 83
6 XamarinMacAOTTest 0x000000010046c48f monoeg_assertion_message + 143
7 XamarinMacAOTTest 0x00000001001fd0f4 mono_aot_register_module + 340
8 ??? 0x000000011049aae5 0x0 + 4568230629
Debug info from gdb:
(lldb) command source -s 0 '/tmp/mono-gdb-commands.XqkKBB'
Executing commands in '/tmp/mono-gdb-commands.XqkKBB'.
(lldb) process attach --pid 8037
Process 8037 stopped
* thread #1: tid = 0x1c7113, 0x00007fffaf5db38a libsystem_kernel.dylib`mach_msg_trap + 10, name = 'tid_307', queue = 'com.apple.main-thread', stop reason = signal SIGSTOP
frame #0: 0x00007fffaf5db38a libsystem_kernel.dylib`mach_msg_trap + 10
libsystem_kernel.dylib`mach_msg_trap:
-> 0x7fffaf5db38a <+10>: retq
0x7fffaf5db38b <+11>: nop
libsystem_kernel.dylib`mach_msg_overwrite_trap:
0x7fffaf5db38c <+0>: movq %rcx, %r10
0x7fffaf5db38f <+3>: movl $0x1000020, %eax ; imm = 0x1000020
Executable module set to "/Users/fx/Development/Mono/XamarinMacAOTTest/XamarinMacAOTTest/bin/Debug/XamarinMacAOTTest.app/Contents/MacOS/XamarinMacAOTTest".
Architecture set to: x86_64-apple-macosx.
(lldb) thread list
Process 8037 stopped
* thread #1: tid = 0x1c7113, 0x00007fffaf5db38a libsystem_kernel.dylib`mach_msg_trap + 10, name = 'tid_307', queue = 'com.apple.main-thread', stop reason = signal SIGSTOP
thread #2: tid = 0x1c7127, 0x00007fffaf5e34e2 libsystem_kernel.dylib`__workq_kernreturn + 10
thread #3: tid = 0x1c7128, 0x00007fffaf5e34e2 libsystem_kernel.dylib`__workq_kernreturn + 10
thread #4: tid = 0x1c7129, 0x00007fffaf5e34e2 libsystem_kernel.dylib`__workq_kernreturn + 10
thread #5: tid = 0x1c712b, 0x00007fffaf5e2c86 libsystem_kernel.dylib`__psynch_cvwait + 10, name = 'SGen worker'
thread #6: tid = 0x1c712d, 0x00007fffaf5db3c6 libsystem_kernel.dylib`semaphore_wait_trap + 10, name = 'Finalizer'
thread #7: tid = 0x1c712e, 0x00007fffaf5e2e8a libsystem_kernel.dylib`__recvfrom + 10, name = 'Debugger agent'
thread #8: tid = 0x1c713a, 0x00007fffaf5e34e2 libsystem_kernel.dylib`__workq_kernreturn + 10
thread #9: tid = 0x1c714b, 0x00007fffaf5e34e2 libsystem_kernel.dylib`__workq_kernreturn + 10
thread #10: tid = 0x1c714c, 0x00007fffaf5e34e2 libsystem_kernel.dylib`__workq_kernreturn + 10
thread #11: tid = 0x1c714d, 0x00007fffaf5e34e2 libsystem_kernel.dylib`__workq_kernreturn + 10
thread #12: tid = 0x1c7153, 0x00007fffaf5db38a libsystem_kernel.dylib`mach_msg_trap + 10, name = 'com.apple.NSEventThread'
thread #13: tid = 0x1c7157, 0x00007fffaf5e3482 libsystem_kernel.dylib`__wait4 + 10, name = 'tid_eb03'
(lldb) thread backtrace all
* thread #1: tid = 0x1c7113, 0x00007fffaf5db38a libsystem_kernel.dylib`mach_msg_trap + 10, name = 'tid_307', queue = 'com.apple.main-thread', stop reason = signal SIGSTOP
* frame #0: 0x00007fffaf5db38a libsystem_kernel.dylib`mach_msg_trap + 10
frame #1: 0x00007fffaf5da7d7 libsystem_kernel.dylib`mach_msg + 55
frame #2: 0x00007fff99eb8e84 CoreFoundation`__CFRunLoopServiceMachPort + 212
frame #3: 0x00007fff99eb8301 CoreFoundation`__CFRunLoopRun + 1361
frame #4: 0x00007fff99eb7b54 CoreFoundation`CFRunLoopRunSpecific + 420
frame #5: 0x00007fff99442a5c HIToolbox`RunCurrentEventLoopInMode + 240
frame #6: 0x00007fff99442891 HIToolbox`ReceiveNextEventCommon + 432
frame #7: 0x00007fff994426c6 HIToolbox`_BlockUntilNextEventMatchingListInModeWithFilter + 71
frame #8: 0x00007fff979e85b4 AppKit`_DPSNextEvent + 1120
frame #9: 0x00007fff98162d6b AppKit`-[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 2789
frame #10: 0x00007fff97ca77bd AppKit`-[NSButtonCell performClick:] + 901
frame #11: 0x00007fff982dac88 AppKit`-[NSWindow(NSEventRouting) _processKeyboardUIKey:] + 370
frame #12: 0x00007fff97c7ffd5 AppKit`-[NSWindow keyDown:] + 53
frame #13: 0x00007fff97b6730c AppKit`forwardMethod + 133
frame #14: 0x00007fff97b6730c AppKit`forwardMethod + 133
frame #15: 0x00007fff97b6730c AppKit`forwardMethod + 133
frame #16: 0x00007fff97d04c4a AppKit`-[NSControl keyDown:] + 138
frame #17: 0x00007fff982d9680 AppKit`-[NSWindow(NSEventRouting) _reallySendEvent:isDelayedEvent:] + 4086
frame #18: 0x00007fff982d82be AppKit`-[NSWindow(NSEventRouting) sendEvent:] + 541
frame #19: 0x00007fff98161a1c AppKit`-[NSApplication(NSEvent) sendEvent:] + 4768
frame #20: 0x00007fff979dcf81 AppKit`-[NSApplication run] + 1002
frame #21: 0x00007fff979a7850 AppKit`NSApplicationMain + 1237
frame #22: 0x00000001041c044a
frame #23: 0x00000001041c001d
frame #24: 0x00000001002e1cd7 XamarinMacAOTTest`mono_jit_runtime_invoke(method=<unavailable>, obj=<unavailable>, params=0x00007fff5fa40180, exc=<unavailable>, error=<unavailable>) + 2247 at mini-runtime.c:2575 [opt]
frame #25: 0x000000010039fb88 XamarinMacAOTTest`do_runtime_invoke(method=0x00007fe9f2403348, obj=0x0000000000000000, params=0x00007fff5fa40180, exc=0x0000000000000000, error=0x00007fff5fa401d0) + 88 at object.c:2820 [opt]
frame #26: 0x00000001003a30d0 XamarinMacAOTTest`do_exec_main_checked [inlined] mono_runtime_invoke_checked(method=<unavailable>, obj=<unavailable>, error=0x00007fff5fa401d0) + 144 at object.c:2978 [opt]
frame #27: 0x00000001003a308f XamarinMacAOTTest`do_exec_main_checked(method=0x00007fe9f2403348, args=<unavailable>, error=0x00007fff5fa401d0) + 79 at object.c:4640 [opt]
frame #28: 0x000000010023b24a XamarinMacAOTTest`mono_jit_exec(domain=<unavailable>, assembly=<unavailable>, argc=2, argv=0x000060000005cc68) + 298 at driver.g.c:1049 [opt]
frame #29: 0x000000010023d75a XamarinMacAOTTest`mono_main [inlined] main_thread_handler + 8458 at driver.g.c:1118 [opt]
frame #30: 0x000000010023d727 XamarinMacAOTTest`mono_main(argc=<unavailable>, argv=<unavailable>) + 8407 at driver.g.c:2171 [opt]
frame #31: 0x00000001001e0906 XamarinMacAOTTest`::xamarin_main(argc=2, argv=0x00007fff5fa40518, is_extension=false) + 1046 at launcher.m:612
frame #32: 0x00000001001e1614 XamarinMacAOTTest`main(argc=2, argv=0x00007fff5fa40518) + 36 at launcher.m:623
frame #33: 0x00007fffaf4b4255 libdyld.dylib`start + 1
frame #34: 0x00007fffaf4b4255 libdyld.dylib`start + 1
thread #2: tid = 0x1c7127, 0x00007fffaf5e34e2 libsystem_kernel.dylib`__workq_kernreturn + 10
frame #0: 0x00007fffaf5e34e2 libsystem_kernel.dylib`__workq_kernreturn + 10
frame #1: 0x00007fffaf6cb791 libsystem_pthread.dylib`_pthread_wqthread + 1426
frame #2: 0x00007fffaf6cb1ed libsystem_pthread.dylib`start_wqthread + 13
thread #3: tid = 0x1c7128, 0x00007fffaf5e34e2 libsystem_kernel.dylib`__workq_kernreturn + 10
frame #0: 0x00007fffaf5e34e2 libsystem_kernel.dylib`__workq_kernreturn + 10
frame #1: 0x00007fffaf6cb791 libsystem_pthread.dylib`_pthread_wqthread + 1426
frame #2: 0x00007fffaf6cb1ed libsystem_pthread.dylib`start_wqthread + 13
thread #4: tid = 0x1c7129, 0x00007fffaf5e34e2 libsystem_kernel.dylib`__workq_kernreturn + 10
frame #0: 0x00007fffaf5e34e2 libsystem_kernel.dylib`__workq_kernreturn + 10
frame #1: 0x00007fffaf6cb791 libsystem_pthread.dylib`_pthread_wqthread + 1426
frame #2: 0x00007fffaf6cb1ed libsystem_pthread.dylib`start_wqthread + 13
thread #5: tid = 0x1c712b, 0x00007fffaf5e2c86 libsystem_kernel.dylib`__psynch_cvwait + 10, name = 'SGen worker'
frame #0: 0x00007fffaf5e2c86 libsystem_kernel.dylib`__psynch_cvwait + 10
frame #1: 0x00007fffaf6cc96a libsystem_pthread.dylib`_pthread_cond_wait + 712
frame #2: 0x0000000100436160 XamarinMacAOTTest`thread_func [inlined] mono_os_cond_wait(mutex=0x0000000100607bd0) + 15 at mono-os-mutex.h:150 [opt]
frame #3: 0x0000000100436151 XamarinMacAOTTest`thread_func(thread_data=<unavailable>) + 609 at sgen-thread-pool.c:110 [opt]
frame #4: 0x00007fffaf6cbaab libsystem_pthread.dylib`_pthread_body + 180
frame #5: 0x00007fffaf6cb9f7 libsystem_pthread.dylib`_pthread_start + 286
frame #6: 0x00007fffaf6cb1fd libsystem_pthread.dylib`thread_start + 13
thread #6: tid = 0x1c712d, 0x00007fffaf5db3c6 libsystem_kernel.dylib`semaphore_wait_trap + 10, name = 'Finalizer'
frame #0: 0x00007fffaf5db3c6 libsystem_kernel.dylib`semaphore_wait_trap + 10
frame #1: 0x000000010033e201 XamarinMacAOTTest`finalizer_thread [inlined] mono_os_sem_wait(flags=MONO_SEM_FLAGS_ALERTABLE) + 11 at mono-os-semaphore.h:90 [opt]
frame #2: 0x000000010033e1f6 XamarinMacAOTTest`finalizer_thread + 8 at mono-coop-semaphore.h:40 [opt]
frame #3: 0x000000010033e1ee XamarinMacAOTTest`finalizer_thread(unused=<unavailable>) + 174 at gc.c:905 [opt]
frame #4: 0x00000001003f0b13 XamarinMacAOTTest`start_wrapper [inlined] start_wrapper_internal + 286 at threads.c:760 [opt]
frame #5: 0x00000001003f09f5 XamarinMacAOTTest`start_wrapper(data=<unavailable>) + 53 at threads.c:824 [opt]
frame #6: 0x000000010045e9e2 XamarinMacAOTTest`inner_start_thread(data=<unavailable>) + 354 at mono-threads.c:1181 [opt]
frame #7: 0x00007fffaf6cbaab libsystem_pthread.dylib`_pthread_body + 180
frame #8: 0x00007fffaf6cb9f7 libsystem_pthread.dylib`_pthread_start + 286
frame #9: 0x00007fffaf6cb1fd libsystem_pthread.dylib`thread_start + 13
thread #7: tid = 0x1c712e, 0x00007fffaf5e2e8a libsystem_kernel.dylib`__recvfrom + 10, name = 'Debugger agent'
frame #0: 0x00007fffaf5e2e8a libsystem_kernel.dylib`__recvfrom + 10
frame #1: 0x0000000100230725 XamarinMacAOTTest`socket_transport_recv(buf=0x000070000848dce5, len=<unavailable>) + 149 at debugger-agent.c:1132 [opt]
frame #2: 0x000000010021a626 XamarinMacAOTTest`debugger_thread [inlined] transport_recv(len=11) + 23 at debugger-agent.c:1538 [opt]
frame #3: 0x000000010021a60f XamarinMacAOTTest`debugger_thread(arg=<unavailable>) + 639 at debugger-agent.c:9924 [opt]
frame #4: 0x000000010045e9e2 XamarinMacAOTTest`inner_start_thread(data=<unavailable>) + 354 at mono-threads.c:1181 [opt]
frame #5: 0x00007fffaf6cbaab libsystem_pthread.dylib`_pthread_body + 180
frame #6: 0x00007fffaf6cb9f7 libsystem_pthread.dylib`_pthread_start + 286
frame #7: 0x00007fffaf6cb1fd libsystem_pthread.dylib`thread_start + 13
thread #8: tid = 0x1c713a, 0x00007fffaf6cb1e0 libsystem_pthread.dylib`start_wqthread
frame #0: 0x00007fffaf6cb1e0 libsystem_pthread.dylib`start_wqthread
thread #9: tid = 0x1c714b, 0x00007fffaf5e34e2 libsystem_kernel.dylib`__workq_kernreturn + 10
frame #0: 0x00007fffaf5e34e2 libsystem_kernel.dylib`__workq_kernreturn + 10
frame #1: 0x00007fffaf6cb791 libsystem_pthread.dylib`_pthread_wqthread + 1426
frame #2: 0x00007fffaf6cb1ed libsystem_pthread.dylib`start_wqthread + 13
thread #10: tid = 0x1c714c, 0x00007fffaf5e34e2 libsystem_kernel.dylib`__workq_kernreturn + 10
frame #0: 0x00007fffaf5e34e2 libsystem_kernel.dylib`__workq_kernreturn + 10
frame #1: 0x00007fffaf6cb5fe libsystem_pthread.dylib`_pthread_wqthread + 1023
frame #2: 0x00007fffaf6cb1ed libsystem_pthread.dylib`start_wqthread + 13
thread #11: tid = 0x1c714d, 0x00007fffaf5e34e2 libsystem_kernel.dylib`__workq_kernreturn + 10
frame #0: 0x00007fffaf5e34e2 libsystem_kernel.dylib`__workq_kernreturn + 10
frame #1: 0x00007fffaf6cb791 libsystem_pthread.dylib`_pthread_wqthread + 1426
frame #2: 0x00007fffaf6cb1ed libsystem_pthread.dylib`start_wqthread + 13
thread #12: tid = 0x1c7153, 0x00007fffaf5db38a libsystem_kernel.dylib`mach_msg_trap + 10, name = 'com.apple.NSEventThread'
frame #0: 0x00007fffaf5db38a libsystem_kernel.dylib`mach_msg_trap + 10
frame #1: 0x00007fffaf5da7d7 libsystem_kernel.dylib`mach_msg + 55
frame #2: 0x00007fff99eb8e84 CoreFoundation`__CFRunLoopServiceMachPort + 212
frame #3: 0x00007fff99eb8301 CoreFoundation`__CFRunLoopRun + 1361
frame #4: 0x00007fff99eb7b54 CoreFoundation`CFRunLoopRunSpecific + 420
frame #5: 0x00007fff97b35a62 AppKit`_NSEventThread + 205
frame #6: 0x00007fffaf6cbaab libsystem_pthread.dylib`_pthread_body + 180
frame #7: 0x00007fffaf6cb9f7 libsystem_pthread.dylib`_pthread_start + 286
frame #8: 0x00007fffaf6cb1fd libsystem_pthread.dylib`thread_start + 13
thread #13: tid = 0x1c7157, 0x00007fffaf5e3482 libsystem_kernel.dylib`__wait4 + 10, name = 'tid_eb03'
frame #0: 0x00007fffaf5e3482 libsystem_kernel.dylib`__wait4 + 10
frame #1: 0x00000001002d1711 XamarinMacAOTTest`mono_handle_native_sigsegv(signal=<unavailable>, ctx=<unavailable>, info=<unavailable>) + 433 at mini-exceptions.c:2469 [opt]
frame #2: 0x00007fffaf6c1bba libsystem_platform.dylib`_sigtramp + 26
frame #3: 0x00007fffaf5e2dd7 libsystem_kernel.dylib`__pthread_kill + 11
frame #4: 0x00007fffaf6ce787 libsystem_pthread.dylib`pthread_kill + 90
frame #5: 0x00007fffaf548420 libsystem_c.dylib`abort + 129
frame #6: 0x00000001001d9190 XamarinMacAOTTest`log_callback(log_domain=0x0000000000000000, log_level="error", message="* Assertion at /Users/builder/data/lanes/1381/80e06201/source/xamarin-macios/external/mono/mono/mini/aot-runtime.c:2302, condition `globals' not met\n", fatal=4, user_data=0x0000000000000000) + 64 at runtime.m:1094
frame #7: 0x000000010046c273 XamarinMacAOTTest`monoeg_g_logv(log_domain=0x0000000000000000, log_level=G_LOG_LEVEL_ERROR, format=<unavailable>, args=<unavailable>) + 83 at goutput.c:111 [opt]
frame #8: 0x000000010046c48f XamarinMacAOTTest`monoeg_assertion_message(format=<unavailable>) + 143 at goutput.c:131 [opt]
frame #9: 0x00000001001fd0f4 XamarinMacAOTTest`mono_aot_register_module(aot_info=<unavailable>) + 340 at aot-runtime.c:2302 [opt]
(lldb) detach
Process 8037 detached
(lldb) (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.
=================================================================
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment