Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crash from Python API #682

Open
daveaitel-openai opened this issue Dec 19, 2024 · 2 comments
Open

Crash from Python API #682

daveaitel-openai opened this issue Dec 19, 2024 · 2 comments
Assignees
Labels
Milestone

Comments

@daveaitel-openai
Copy link

Version and Platform (required):

Binja4.2.6455-Stable

  • OS: Ubuntu Linux
  • OS Version: 22.04
  • CPU Architecture: x64
  • Local or Remote Debugging: local via API Python

Bug Description:

Running debugger code: dc.restart(); dc.go_and_wait(); regs = {reg: hex(dc.get_reg_value(reg)) for reg in dc.regs}; print('Hit', regs)
[0:0 Default error] LLDB: go failed, process state is not stopped
terminate called after throwing an instance of 'std::logic_error'
what(): basic_string::_M_construct null not valid
Fatal Python error: Aborted

Steps To Reproduce:
Running this code on a launched little CTF binary

Expected Behavior:
No crash.

Binary:
Same binary as from previous crashes (it's not really an important binary, although it is PIE)

@xusheng6 xusheng6 added this to the Gallifrey milestone Dec 23, 2024
@negasora
Copy link
Member

negasora commented Jan 3, 2025

This can be reproduced by this script:

from binaryninja import load
from binaryninja.debugger import DebuggerController

with load("/bin/true") as bv:
    dc = DebuggerController(bv)
    dc.go_and_wait()

@negasora negasora added the crash label Jan 3, 2025
@xusheng6
Copy link
Member

xusheng6 commented Jan 3, 2025

Potentially duplicate of #676

@negasora negasora self-assigned this Jan 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants