Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@wmmihaa
Created February 12, 2015 10:25
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 wmmihaa/337d725518478a683995 to your computer and use it in GitHub Desktop.
Save wmmihaa/337d725518478a683995 to your computer and use it in GitHub Desktop.
Mikael-MacBook-Air:Debug mikael2$ mono V8.Net-Console.exe
Creating a V8Engine instance ... Done!
Testing marshalling compatibility... Pass!
Creating some global CLR types ...
Creating a global 'dump(obj)' function to dump properties of objects (one level only) ...
<object: Function>
Creating a global 'assert(msg, a,b)' function for property value assertion ...
<object: Function>
Creating a global 'Console' object ...
Creating a new global type 'TestEnum' ...
Creating a new global type 'SealedObject' as 'Sealed_Object' ...
(represents a 3rd-party inaccessible V8.NET object.)
Creating a new wrapped and locked object 'sealedObject' ...
Dumping global properties ...
dump(this)
Stacktrace:
at <unknown> <0xffffffff>
at (wrapper managed-to-native) V8.Net.V8NetProxy.V8Execute (V8.Net.NativeV8EngineProxy*,string,string) <0xffffffff>
at V8.Net.V8Engine.Execute (string,string,bool) <0x00023>
at V8.Net.V8Engine.VerboseConsoleExecute (string,string,bool) <0x00037>
at V8.Net.Program.Main (string[]) <0x02263>
at (wrapper runtime-invoke) <Module>.runtime_invoke_void_object (object,intptr,intptr,intptr) <0xffffffff>
Native stacktrace:
Debug info from gdb:
(lldb) command source -s 0 '/tmp/mono-gdb-commands.iRadvz'
Executing commands in '/private/tmp/mono-gdb-commands.iRadvz'.
(lldb) process attach --pid 57371
warning: (i386) /Library/Frameworks/Mono.framework/Versions/3.12.0/lib/mono/4.5/mscorlib.dll.dylib empty dSYM file detected, dSYM was created with an executable with no debug info.
Process 57371 stopped
Executable module set to "/usr/bin/mono".
Architecture set to: i386-apple-macosx.
(lldb) thread list
Process 57371 stopped
* thread #1: tid = 0x7e3df, 0x98f90e16 libsystem_kernel.dylib`__wait4 + 10, queue = 'com.apple.main-thread', stop reason = signal SIGSTOP
thread #2: tid = 0x7e3e0, 0x98f8aa0a libsystem_kernel.dylib`semaphore_wait_trap + 10
thread #3: tid = 0x7e3e1, 0x98f918ce libsystem_kernel.dylib`kevent64 + 10, queue = 'com.apple.libdispatch-manager'
thread #4: tid = 0x7e3e5, 0x98f8aa0a libsystem_kernel.dylib`semaphore_wait_trap + 10, name = 'OptimizingCompi'
thread #5: tid = 0x7e3e6, 0x98f8aa0a libsystem_kernel.dylib`semaphore_wait_trap + 10, name = 'V8 WorkerThread'
thread #6: tid = 0x7e3e7, 0x98f8aa0a libsystem_kernel.dylib`semaphore_wait_trap + 10, name = 'V8 WorkerThread'
thread #7: tid = 0x7e3e8, 0x98f8aa0a libsystem_kernel.dylib`semaphore_wait_trap + 10, name = 'V8 WorkerThread'
thread #8: tid = 0x7e3e9, 0x98f8aa0a libsystem_kernel.dylib`semaphore_wait_trap + 10, name = 'V8 WorkerThread'
thread #9: tid = 0x7e42a, 0x98f908f6 libsystem_kernel.dylib`__semwait_signal + 10
thread #10: tid = 0x7e42b, 0x98f90512 libsystem_kernel.dylib`__psynch_cvwait + 10
thread #11: tid = 0x7e438, 0x98f90e6a libsystem_kernel.dylib`__workq_kernreturn + 10
thread #12: tid = 0x7e439, 0x98f90e6a libsystem_kernel.dylib`__workq_kernreturn + 10
thread #13: tid = 0x7e43a, 0x98f90e6a libsystem_kernel.dylib`__workq_kernreturn + 10
thread #14: tid = 0x7e4c9, 0x98f908f6 libsystem_kernel.dylib`__semwait_signal + 10
thread #15: tid = 0x7e4ca, 0x98f8aa22 libsystem_kernel.dylib`semaphore_timedwait_trap + 10
thread #16: tid = 0x7e6c6, 0x98f8aa22 libsystem_kernel.dylib`semaphore_timedwait_trap + 10
(lldb) thread backtrace all
* thread #1: tid = 0x7e3df, 0x98f90e16 libsystem_kernel.dylib`__wait4 + 10, queue = 'com.apple.main-thread', stop reason = signal SIGSTOP
* frame #0: 0x98f90e16 libsystem_kernel.dylib`__wait4 + 10
frame #1: 0x91bdeb15 libsystem_c.dylib`waitpid$UNIX2003 + 48
frame #2: 0x000f1f5d mono`mono_handle_native_sigsegv(signal=11, ctx=0x0217bfe0) + 541 at mini-exceptions.c:2323
frame #3: 0x00140f6b mono`mono_arch_handle_altstack_exception(sigctx=<unavailable>, fault_addr=<unavailable>, stack_ovf=0) + 155 at exceptions-x86.c:1106
frame #4: 0x00044e5d mono`mono_sigsegv_signal_handler(_dummy=<unavailable>, _info=<unavailable>, context=<unavailable>) + 445 at mini.c:6858
frame #5: 0x992d703b libsystem_platform.dylib`_sigtramp + 43
thread #2: tid = 0x7e3e0, 0x98f8aa0a libsystem_kernel.dylib`semaphore_wait_trap + 10
frame #0: 0x98f8aa0a libsystem_kernel.dylib`semaphore_wait_trap + 10
frame #1: 0x00288c3a mono`mono_sem_wait(sem=0x0038e4b8, alertable=1) + 26 at mono-semaphore.c:103
frame #2: 0x00203b9e mono`finalizer_thread(unused=0x00000000) + 142 at gc.c:1077
frame #3: 0x001e1f81 mono`start_wrapper [inlined] start_wrapper_internal + 484 at threads.c:663
frame #4: 0x001e1d9d mono`start_wrapper(data=<unavailable>) + 29 at threads.c:710
frame #5: 0x0028e160 mono`inner_start_thread(arg=<unavailable>) + 240 at mono-threads-posix.c:88
frame #6: 0x972aae13 libsystem_pthread.dylib`_pthread_body + 138
frame #7: 0x972aad89 libsystem_pthread.dylib`_pthread_start + 162
frame #8: 0x972a8e52 libsystem_pthread.dylib`thread_start + 34
thread #3: tid = 0x7e3e1, 0x98f918ce libsystem_kernel.dylib`kevent64 + 10, queue = 'com.apple.libdispatch-manager'
frame #0: 0x98f918ce libsystem_kernel.dylib`kevent64 + 10
frame #1: 0x99e9f73f libdispatch.dylib`_dispatch_mgr_invoke + 245
frame #2: 0x99e9f3a2 libdispatch.dylib`_dispatch_mgr_thread + 52
thread #4: tid = 0x7e3e5, 0x98f8aa0a libsystem_kernel.dylib`semaphore_wait_trap + 10, name = 'OptimizingCompi'
frame #0: 0x98f8aa0a libsystem_kernel.dylib`semaphore_wait_trap + 10
frame #1: 0x02caca9b libV8_Net_Proxy.dylib`v8::base::Semaphore::Wait() + 43
frame #2: 0x029eb03e libV8_Net_Proxy.dylib`v8::internal::OptimizingCompilerThread::Run() + 222
frame #3: 0x02cb0dc8 libV8_Net_Proxy.dylib`v8::base::Thread::NotifyStartedAndRun() + 56
frame #4: 0x02cb045b libV8_Net_Proxy.dylib`v8::base::ThreadEntry(void*) + 187
frame #5: 0x972aae13 libsystem_pthread.dylib`_pthread_body + 138
frame #6: 0x972aad89 libsystem_pthread.dylib`_pthread_start + 162
frame #7: 0x972a8e52 libsystem_pthread.dylib`thread_start + 34
thread #5: tid = 0x7e3e6, 0x98f8aa0a libsystem_kernel.dylib`semaphore_wait_trap + 10, name = 'V8 WorkerThread'
frame #0: 0x98f8aa0a libsystem_kernel.dylib`semaphore_wait_trap + 10
frame #1: 0x02caca9b libV8_Net_Proxy.dylib`v8::base::Semaphore::Wait() + 43
frame #2: 0x02cb8325 libV8_Net_Proxy.dylib`v8::platform::TaskQueue::GetNext() + 309
frame #3: 0x02cb8550 libV8_Net_Proxy.dylib`v8::platform::WorkerThread::Run() + 32
frame #4: 0x02cb0dc8 libV8_Net_Proxy.dylib`v8::base::Thread::NotifyStartedAndRun() + 56
frame #5: 0x02cb045b libV8_Net_Proxy.dylib`v8::base::ThreadEntry(void*) + 187
frame #6: 0x972aae13 libsystem_pthread.dylib`_pthread_body + 138
frame #7: 0x972aad89 libsystem_pthread.dylib`_pthread_start + 162
frame #8: 0x972a8e52 libsystem_pthread.dylib`thread_start + 34
thread #6: tid = 0x7e3e7, 0x98f8aa0a libsystem_kernel.dylib`semaphore_wait_trap + 10, name = 'V8 WorkerThread'
frame #0: 0x98f8aa0a libsystem_kernel.dylib`semaphore_wait_trap + 10
frame #1: 0x02caca9b libV8_Net_Proxy.dylib`v8::base::Semaphore::Wait() + 43
frame #2: 0x02cb8325 libV8_Net_Proxy.dylib`v8::platform::TaskQueue::GetNext() + 309
frame #3: 0x02cb8550 libV8_Net_Proxy.dylib`v8::platform::WorkerThread::Run() + 32
frame #4: 0x02cb0dc8 libV8_Net_Proxy.dylib`v8::base::Thread::NotifyStartedAndRun() + 56
frame #5: 0x02cb045b libV8_Net_Proxy.dylib`v8::base::ThreadEntry(void*) + 187
frame #6: 0x972aae13 libsystem_pthread.dylib`_pthread_body + 138
frame #7: 0x972aad89 libsystem_pthread.dylib`_pthread_start + 162
frame #8: 0x972a8e52 libsystem_pthread.dylib`thread_start + 34
thread #7: tid = 0x7e3e8, 0x98f8aa0a libsystem_kernel.dylib`semaphore_wait_trap + 10, name = 'V8 WorkerThread'
frame #0: 0x98f8aa0a libsystem_kernel.dylib`semaphore_wait_trap + 10
frame #1: 0x02caca9b libV8_Net_Proxy.dylib`v8::base::Semaphore::Wait() + 43
frame #2: 0x02cb8325 libV8_Net_Proxy.dylib`v8::platform::TaskQueue::GetNext() + 309
frame #3: 0x02cb8550 libV8_Net_Proxy.dylib`v8::platform::WorkerThread::Run() + 32
frame #4: 0x02cb0dc8 libV8_Net_Proxy.dylib`v8::base::Thread::NotifyStartedAndRun() + 56
frame #5: 0x02cb045b libV8_Net_Proxy.dylib`v8::base::ThreadEntry(void*) + 187
frame #6: 0x972aae13 libsystem_pthread.dylib`_pthread_body + 138
frame #7: 0x972aad89 libsystem_pthread.dylib`_pthread_start + 162
frame #8: 0x972a8e52 libsystem_pthread.dylib`thread_start + 34
thread #8: tid = 0x7e3e9, 0x98f8aa0a libsystem_kernel.dylib`semaphore_wait_trap + 10, name = 'V8 WorkerThread'
frame #0: 0x98f8aa0a libsystem_kernel.dylib`semaphore_wait_trap + 10
frame #1: 0x02caca9b libV8_Net_Proxy.dylib`v8::base::Semaphore::Wait() + 43
frame #2: 0x02cb8325 libV8_Net_Proxy.dylib`v8::platform::TaskQueue::GetNext() + 309
frame #3: 0x02cb8550 libV8_Net_Proxy.dylib`v8::platform::WorkerThread::Run() + 32
frame #4: 0x02cb0dc8 libV8_Net_Proxy.dylib`v8::base::Thread::NotifyStartedAndRun() + 56
frame #5: 0x02cb045b libV8_Net_Proxy.dylib`v8::base::ThreadEntry(void*) + 187
frame #6: 0x972aae13 libsystem_pthread.dylib`_pthread_body + 138
frame #7: 0x972aad89 libsystem_pthread.dylib`_pthread_start + 162
frame #8: 0x972a8e52 libsystem_pthread.dylib`thread_start + 34
thread #9: tid = 0x7e42a, 0x98f908f6 libsystem_kernel.dylib`__semwait_signal + 10
frame #0: 0x98f908f6 libsystem_kernel.dylib`__semwait_signal + 10
frame #1: 0x91bdec06 libsystem_c.dylib`nanosleep$UNIX2003 + 218
frame #2: 0x0027bb37 mono`SleepEx(ms=<unavailable>, alertable=1) + 199 at wthreads.c:290
frame #3: 0x001dcffe mono`ves_icall_System_Threading_Thread_Sleep_internal(ms=100) + 94 at threads.c:1131
frame #4: 0x007f4064
frame #5: 0x016d8f44 mscorlib.dll.dylib`System_Threading_Thread_Sleep_int + 36
frame #6: 0x007f3fe8
frame #7: 0x016d9a29 mscorlib.dll.dylib`System_Threading_Thread_StartInternal + 153
frame #8: 0x007f28aa
frame #9: 0x0004768f mono`mono_jit_runtime_invoke(method=<unavailable>, obj=<unavailable>, params=<unavailable>, exc=<unavailable>) + 751 at mini.c:6735
frame #10: 0x002067ff mono`mono_runtime_invoke(method=0x7ac23fb4, obj=0x00810010, params=<unavailable>, exc=<unavailable>) + 127 at object.c:2842
frame #11: 0x0020bdac mono`mono_runtime_delegate_invoke(delegate=0x00810010, params=<unavailable>, exc=<unavailable>) + 92 at object.c:3553
frame #12: 0x001e2005 mono`start_wrapper [inlined] start_wrapper_internal + 616 at threads.c:669
frame #13: 0x001e1d9d mono`start_wrapper(data=<unavailable>) + 29 at threads.c:710
frame #14: 0x0028e160 mono`inner_start_thread(arg=<unavailable>) + 240 at mono-threads-posix.c:88
frame #15: 0x972aae13 libsystem_pthread.dylib`_pthread_body + 138
frame #16: 0x972aad89 libsystem_pthread.dylib`_pthread_start + 162
frame #17: 0x972a8e52 libsystem_pthread.dylib`thread_start + 34
thread #10: tid = 0x7e42b, 0x98f90512 libsystem_kernel.dylib`__psynch_cvwait + 10
frame #0: 0x98f90512 libsystem_kernel.dylib`__psynch_cvwait + 10
frame #1: 0x972aba4a libsystem_pthread.dylib`_pthread_cond_wait + 726
frame #2: 0x972af20c libsystem_pthread.dylib`pthread_cond_timedwait$UNIX2003 + 71
frame #3: 0x00268e17 mono`_wapi_handle_timedwait_signal_handle [inlined] timedwait_signal_poll_cond(cond=0x7abadbe4, mutex=0x7abadbb8, timeout=<unavailable>, alertable=<unavailable>) + 95 at handles.c:1520
frame #4: 0x00268db8 mono`_wapi_handle_timedwait_signal_handle(handle=<unavailable>, timeout=0xb05a0bc0, alertable=<unavailable>, poll=<unavailable>) + 376 at handles.c:1610
frame #5: 0x00279f3a mono`WaitForSingleObjectEx(handle=<unavailable>, timeout=<unavailable>, alertable=<unavailable>) + 522 at wait.c:196
frame #6: 0x001ddc52 mono`ves_icall_System_Threading_WaitHandle_WaitOne_internal [inlined] mono_wait_uninterrupted(alertable=<unavailable>) + 34 at threads.c:1363
frame #7: 0x001ddc30 mono`ves_icall_System_Threading_WaitHandle_WaitOne_internal(this=0x008102f8, handle=<unavailable>, ms=-1, exitContext=0) + 80 at threads.c:1496
frame #8: 0x007f4c78
frame #9: 0x016deb37 mscorlib.dll.dylib`System_Threading_WaitHandle_WaitOne_int_bool + 135
frame #10: 0x016debdd mscorlib.dll.dylib`System_Threading_WaitHandle_WaitOne_int + 45
frame #11: 0x016ddc52 mscorlib.dll.dylib`System_Threading_Timer_Scheduler_SchedulerThread + 3026
frame #12: 0x016d9a29 mscorlib.dll.dylib`System_Threading_Thread_StartInternal + 153
frame #13: 0x007f28aa
frame #14: 0x0004768f mono`mono_jit_runtime_invoke(method=<unavailable>, obj=<unavailable>, params=<unavailable>, exc=<unavailable>) + 751 at mini.c:6735
frame #15: 0x002067ff mono`mono_runtime_invoke(method=0x7ac23fb4, obj=0x008103b8, params=<unavailable>, exc=<unavailable>) + 127 at object.c:2842
frame #16: 0x0020bdac mono`mono_runtime_delegate_invoke(delegate=0x008103b8, params=<unavailable>, exc=<unavailable>) + 92 at object.c:3553
frame #17: 0x001e2005 mono`start_wrapper [inlined] start_wrapper_internal + 616 at threads.c:669
frame #18: 0x001e1d9d mono`start_wrapper(data=<unavailable>) + 29 at threads.c:710
frame #19: 0x0028e160 mono`inner_start_thread(arg=<unavailable>) + 240 at mono-threads-posix.c:88
frame #20: 0x972aae13 libsystem_pthread.dylib`_pthread_body + 138
frame #21: 0x972aad89 libsystem_pthread.dylib`_pthread_start + 162
frame #22: 0x972a8e52 libsystem_pthread.dylib`thread_start + 34
thread #11: tid = 0x7e438, 0x98f90e6a libsystem_kernel.dylib`__workq_kernreturn + 10
frame #0: 0x98f90e6a libsystem_kernel.dylib`__workq_kernreturn + 10
frame #1: 0x972ab2b1 libsystem_pthread.dylib`_pthread_wqthread + 939
frame #2: 0x972a8e2e libsystem_pthread.dylib`start_wqthread + 30
thread #12: tid = 0x7e439, 0x98f90e6a libsystem_kernel.dylib`__workq_kernreturn + 10
frame #0: 0x98f90e6a libsystem_kernel.dylib`__workq_kernreturn + 10
frame #1: 0x972ab2b1 libsystem_pthread.dylib`_pthread_wqthread + 939
frame #2: 0x972a8e2e libsystem_pthread.dylib`start_wqthread + 30
thread #13: tid = 0x7e43a, 0x98f90e6a libsystem_kernel.dylib`__workq_kernreturn + 10
frame #0: 0x98f90e6a libsystem_kernel.dylib`__workq_kernreturn + 10
frame #1: 0x972ab2b1 libsystem_pthread.dylib`_pthread_wqthread + 939
frame #2: 0x972a8e2e libsystem_pthread.dylib`start_wqthread + 30
thread #14: tid = 0x7e4c9, 0x98f908f6 libsystem_kernel.dylib`__semwait_signal + 10
frame #0: 0x98f908f6 libsystem_kernel.dylib`__semwait_signal + 10
frame #1: 0x91bdec06 libsystem_c.dylib`nanosleep$UNIX2003 + 218
frame #2: 0x0027bb37 mono`SleepEx(ms=<unavailable>, alertable=1) + 199 at wthreads.c:290
frame #3: 0x001e4988 mono`monitor_thread(unused=0x00000000) + 184 at threadpool.c:909
frame #4: 0x001e1f81 mono`start_wrapper [inlined] start_wrapper_internal + 484 at threads.c:663
frame #5: 0x001e1d9d mono`start_wrapper(data=<unavailable>) + 29 at threads.c:710
frame #6: 0x0028e160 mono`inner_start_thread(arg=<unavailable>) + 240 at mono-threads-posix.c:88
frame #7: 0x972aae13 libsystem_pthread.dylib`_pthread_body + 138
frame #8: 0x972aad89 libsystem_pthread.dylib`_pthread_start + 162
frame #9: 0x972a8e52 libsystem_pthread.dylib`thread_start + 34
thread #15: tid = 0x7e4ca, 0x98f8aa22 libsystem_kernel.dylib`semaphore_timedwait_trap + 10
frame #0: 0x98f8aa22 libsystem_kernel.dylib`semaphore_timedwait_trap + 10
frame #1: 0x00288be3 mono`mono_sem_timedwait(sem=<unavailable>, timeout_ms=<unavailable>, alertable=<unavailable>) + 211 at mono-semaphore.c:64
frame #2: 0x001e2eb8 mono`async_invoke_thread(data=0x00000000) + 1320 at threadpool.c:1678
frame #3: 0x001e1f81 mono`start_wrapper [inlined] start_wrapper_internal + 484 at threads.c:663
frame #4: 0x001e1d9d mono`start_wrapper(data=<unavailable>) + 29 at threads.c:710
frame #5: 0x0028e160 mono`inner_start_thread(arg=<unavailable>) + 240 at mono-threads-posix.c:88
frame #6: 0x972aae13 libsystem_pthread.dylib`_pthread_body + 138
frame #7: 0x972aad89 libsystem_pthread.dylib`_pthread_start + 162
frame #8: 0x972a8e52 libsystem_pthread.dylib`thread_start + 34
thread #16: tid = 0x7e6c6, 0x98f8aa22 libsystem_kernel.dylib`semaphore_timedwait_trap + 10
frame #0: 0x98f8aa22 libsystem_kernel.dylib`semaphore_timedwait_trap + 10
frame #1: 0x00288be3 mono`mono_sem_timedwait(sem=<unavailable>, timeout_ms=<unavailable>, alertable=<unavailable>) + 211 at mono-semaphore.c:64
frame #2: 0x001e2eb8 mono`async_invoke_thread(data=0x00000000) + 1320 at threadpool.c:1678
frame #3: 0x001e1f81 mono`start_wrapper [inlined] start_wrapper_internal + 484 at threads.c:663
frame #4: 0x001e1d9d mono`start_wrapper(data=<unavailable>) + 29 at threads.c:710
frame #5: 0x0028e160 mono`inner_start_thread(arg=<unavailable>) + 240 at mono-threads-posix.c:88
frame #6: 0x972aae13 libsystem_pthread.dylib`_pthread_body + 138
frame #7: 0x972aad89 libsystem_pthread.dylib`_pthread_start + 162
frame #8: 0x972a8e52 libsystem_pthread.dylib`thread_start + 34
(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 57371 detached
(lldb) quit
(lldb) Abort trap: 6
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment