Skip to content
This repository was archived by the owner on Mar 21, 2026. It is now read-only.
This repository was archived by the owner on Mar 21, 2026. It is now read-only.

Problems loading/using the addon on OSX #1

Description

@thlorenz

Here is what I'm seeing when I try to load the python addon immediately:

➝  lldb ../../node_g simple.js
Current executable set to '../../node_g' (x86_64).
(lldb) command script import ./lldb-v8/v8.py
Traceback (most recent call last):
  File "/Users/thlorenz/dev/js/node/addons/simple/lldb-v8/v8.py", line 839, in __lldb_init_module
    v8cfg = V8Cfg(target)
  File "/Users/thlorenz/dev/js/node/addons/simple/lldb-v8/v8.py", line 99, in __init__
    raise ret
TypeError: exceptions must be old-style classes or derived from BaseException, not SBError

When I load it while stopped at a breakpoint (which works) and run jsstack:

(lldb) jsstack
Traceback (most recent call last):
  File "/Users/thlorenz/dev/js/node/addons/simple/lldb-v8/v8.py", line 788, in jsstack
    v8cfg.jsstack(result)
  File "/Users/thlorenz/dev/js/node/addons/simple/lldb-v8/v8.py", line 530, in jsstack
    self.jsstack_thread(self.process.GetThreadAtIndex(i), result)
  File "/Users/thlorenz/dev/js/node/addons/simple/lldb-v8/v8.py", line 503, in jsstack_thread
    f = self.jsstack_frame(result, thread, frame.fp)
  File "/Users/thlorenz/dev/js/node/addons/simple/lldb-v8/v8.py", line 457, in jsstack_frame
    funcname = self.jsfunc_name(func)
  File "/Users/thlorenz/dev/js/node/addons/simple/lldb-v8/v8.py", line 312, in jsfunc_name
    name = self.jstr_print(fstr)
  File "/Users/thlorenz/dev/js/node/addons/simple/lldb-v8/v8.py", line 294, in jstr_print
    typename = self.read_type(addr)
  File "/Users/thlorenz/dev/js/node/addons/simple/lldb-v8/v8.py", line 234, in read_type
    return self.types[hbyte]
KeyError: 4

Note that I'm running the latest node version in debug mode and latest lldb:

➝  ../../node_g --version
v0.13.0-pre

➝  lldb --version
lldb-320.99.0

➝  uname -a
Darwin Thorstens-MacBook-Pro.local 13.3.0 Darwin Kernel Version 13.3.0: Tue Jun  3 21:27:35 PDT 2014; root:xnu-2422.110.17~1/RELEASE_X86_64 x86_64

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions