Skip to content

Binary Ninja hangs when exporting deeply nested DWARF C++ types (export headers). #8158

@bukowa

Description

@bukowa

Version and Platform (required):

  • Binary Ninja Version: 5.3.9434-Stable
  • Edition: Non-Commercial
  • OS: Windows
  • OS 11
  • CPU Architecture: x64

Bug Description:
When attempting export to a C Header file, Binary Ninja hangs indefinitely with CPU usage maxed out. This occurs on an executable containing heavily nested C++ templates parsed from DWARF debug symbols.

Steps To Reproduce:
Please provide all steps required to reproduce the behavior:

  1. Load 700mb binary with DWARF symbols.
  2. Let Binary Ninja run analysis.
  3. Click on Analysis -> Export Header
  4. It hangs.

Expected Behavior:
It works.

Binary:
graphical line seeks heuristically

Additional Information:
There are other errors when analyzing this binary:
#7852 (comment)
Ghidra have same issue:
NationalSecurityAgency/ghidra#9161

Metadata

Metadata

Assignees

No one assigned

    Labels

    Component: CoreIssue needs changes to the coreCore: TypesIssues involving the representation of typesDebugInfo: DWARFImpact: HighIssue adds or blocks important functionalityState: Awaiting TriageIssue is waiting for more in-depth triage from a developer

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions