debugger
debugger copied to clipboard
Crash in Python script
The script
from binaryninja import load
from binaryninja.debugger import DebuggerController
with load("/bin/true") as bv:
dc = DebuggerController(bv)
crashes with:
Exception ignored in: <function DebuggerController.__del__ at 0x10998ade0>
Traceback (most recent call last):
File "/Users/xxxxx/build-relwithdebinfo/out/binaryninja.app/Contents/Resources/python/binaryninja/debugger/debuggercontroller.py", line 1585, in __del__
TypeError: 'NoneType' object is not callable
The crash happens at https://github.com/Vector35/debugger/blob/58537bf244fa9d252a166ec61c78cb169eaa2e60/api/python/debuggercontroller.py#L1583-L1585
- This has nothing to do with the context manager
- This has nothing to do with the Python version
- The debugger unit test has some very similar code, and it just passes fine