Open thlorenz opened 9 years ago
for right now, I've only been testing on v0.10
OK, good to know will try to run against that and report back with the results.
I'm getting the same TypeError: exceptions must be old-style classes or derived from BaseException, not SBError
error with node v0.10.32 when attempting to load v8.py
. I'm loading in a heapdump generated with node-heapdump
:
(lldb) command script import ./v8.py
Traceback (most recent call last):
File "/Users/aleksey/lldb-v8/v8.py", line 844, in __lldb_init_module
v8cfg = V8Cfg(target)
File "/Users/aleksey/lldb-v8/v8.py", line 240, in __init__
ret = self.load_symbol(value[0])
File "/Users/aleksey/lldb-v8/v8.py", line 330, in load_symbol
raise error
TypeError: exceptions must be old-style classes or derived from BaseException, not SBError
$ lldb --version
lldb-320.4.124.10
$ ./node_g --version
v0.10.32
$ uname -mprsv
Darwin 13.4.0 Darwin Kernel Version 13.4.0: Sun Aug 17 19:50:11 PDT 2014; root:xnu-2422.115.4~1/RELEASE_X86_64 x86_64 i386
You don't want to use a heapdump file, you want to use a core file, something you would get from using --abort-on-uncaught-exception
or calling process.abort()
on osx they will be found in /cores/
Duh. I just figured that out. Heap dump != core dump.... Thank you!
same error as @lxe, but while trying to debug v8's d8 process, not on a core.
Here is what I'm seeing when I try to load the python addon immediately:
When I load it while stopped at a breakpoint (which works) and run
jsstack
:Note that I'm running the latest node version in debug mode and latest lldb: