Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
v8dotnet lldb on OSX with mono
sudo lldb
(lldb) target create mono
Current executable set to 'mono' (i386).
(lldb) run --debug V8.Net-Console.exe
Process 12784 launched: '/usr/bin/mono' (i386)
warning: (i386) /Library/Frameworks/Mono.framework/Versions/3.10.0/lib/mono/4.5/mscorlib.dll.dylib empty dSYM file detected, dSYM was created with an executable with no debug info.
(lldb) c
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)
Process 12784 stopped
* thread #1: tid = 0x7709, 0xbfffe858, queue = 'com.apple.main-thread', stop reason = EXC_BAD_ACCESS (code=2, address=0xbfffe858)
frame #0: 0xbfffe858
-> 0xbfffe858: subb $-0x17, %al
(lldb)
(lldb) thread list
Process 12784 stopped
* thread #1: tid = 0x7709, 0xbfffe858, queue = 'com.apple.main-thread', stop reason = EXC_BAD_ACCESS (code=2, address=0xbfffe858)
thread #2: tid = 0x771c, 0x95f01a6a libsystem_kernel.dylib`semaphore_wait_trap + 10
thread #3: tid = 0x771d, 0x95f088d2 libsystem_kernel.dylib`kevent64 + 10, queue = 'com.apple.libdispatch-manager'
thread #4: tid = 0x771e, 0x95f01a6a libsystem_kernel.dylib`semaphore_wait_trap + 10, name = 'OptimizingCompi'
thread #5: tid = 0x771f, 0x95f01a6a libsystem_kernel.dylib`semaphore_wait_trap + 10, name = 'V8 WorkerThread'
thread #6: tid = 0x7720, 0x95f01a6a libsystem_kernel.dylib`semaphore_wait_trap + 10, name = 'V8 WorkerThread'
thread #7: tid = 0x7721, 0x95f01a6a libsystem_kernel.dylib`semaphore_wait_trap + 10, name = 'V8 WorkerThread'
thread #8: tid = 0x7722, 0x95f01a6a libsystem_kernel.dylib`semaphore_wait_trap + 10, name = 'V8 WorkerThread'
thread #9: tid = 0x7723, 0x95f078fa libsystem_kernel.dylib`__semwait_signal + 10
thread #10: tid = 0x7724, 0x95f07516 libsystem_kernel.dylib`__psynch_cvwait + 10
thread #11: tid = 0x7725, 0x95f07e6e libsystem_kernel.dylib`__workq_kernreturn + 10
thread #12: tid = 0x7729, 0x95f07e6e libsystem_kernel.dylib`__workq_kernreturn + 10
thread #13: tid = 0x772a, 0x95f078fa libsystem_kernel.dylib`__semwait_signal + 10
thread #14: tid = 0x772b, 0x95f01a82 libsystem_kernel.dylib`semaphore_timedwait_trap + 10
(lldb)
(lldb) thread backtrace
* thread #1: tid = 0x7709, 0xbfffe858, queue = 'com.apple.main-thread', stop reason = EXC_BAD_ACCESS (code=2, address=0xbfffe858)
* frame #0: 0xbfffe858
frame #1: 0x0555bbaa libV8_Net_Proxy.dylib`ObjectTemplateProxy::RegisterNamedPropertyHandlers(HandleProxy* (*)(unsigned short*, ManagedAccessorInfo const&), HandleProxy* (*)(unsigned short*, HandleProxy*, ManagedAccessorInfo const&), v8::PropertyAttribute (*)(unsigned short*, ManagedAccessorInfo const&), int (*)(unsigned short*, ManagedAccessorInfo const&), HandleProxy* (*)(ManagedAccessorInfo const&)) + 136 at ObjectTemplateProxy.cpp:58
(lldb)
(lldb) thread select 1
* thread #1: tid = 0x7709, 0xbfffe858, queue = 'com.apple.main-thread', stop reason = EXC_BAD_ACCESS (code=2, address=0xbfffe858)
frame #0: 0xbfffe858
-> 0xbfffe858: subb $-0x17, %al
(lldb)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.