Skip to content

Crash when using the API after calling shutdown() #6596

Open
@jduck

Description

@jduck

Version and Platform (required):

  • Seems to affect all versions (from 4.2 to 5.0 at least)
  • OS: Ubuntu Linux
  • OS Version: 24.04
  • CPU Architecture: x64

Bug Description:
Binary ninja crashes with evidence of memory corruption:

Steps To Reproduce:

lappy [0] ~/binaryninja » python
Python 3.12.3 (main, Feb  4 2025, 14:48:35) [GCC 13.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import binaryninja
>>> binaryninja.core_version()
'5.0.7182-dev Ultimate'
>>> binaryninja.shutdown()
>>> bv = binaryninja.load("/bin/ls")
double free or corruption (!prev)
Aborted

Expected Behavior:
Not sure... Maybe successfully loads the new binary? Maybe just error about how you shutdown and so shouldn't expect the API to continue working?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Component: APIIssue needs changes to the APIEffort: TrivialIssue should take < 1 dayImpact: LowIssue is a papercut or has a good, supported workaround

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions