Skip to content

Conversation

@EricRahm
Copy link
Collaborator

Prevent infinite recursion in ReadDWARFDebugInfo when a DWO file
contains a DW_AT_GNU_dwo_name attribute pointing to itself.
We now only follow DWO links if the current CU is a skeleton CU.

Issue #344
Fixes #476

Prevent infinite recursion in ReadDWARFDebugInfo when a DWO file
contains a DW_AT_GNU_dwo_name attribute pointing to itself.
We now only follow DWO links if the current CU is a skeleton CU.

Issue google#344
Fixes google#476
Adds a test case simulating a self-referential DWO file to ensure
recursion is handled gracefully without crashing.

See google#476
@EricRahm EricRahm requested a review from haberman January 13, 2026 01:10
@EricRahm
Copy link
Collaborator Author

EricRahm commented Jan 13, 2026

@haberman Mind taking a look at this small one line fix for handling an issue with chrome's split dwarf builds.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Stack Overflow due to Recursive DWO Reference in Chromium

1 participant