dwarf2reader: support NaCl Saigo CFA pseudo-register -2#19
Open
illwieckz wants to merge 1 commit into
Open
Conversation
Saigo LLVM emits DWARF CFI using register number -2 as a pseudo-register when describing the canonical frame address. Breakpad currently interprets this value as register 4294967294, which can produce invalid CFI rules and cause failures while processing symbols. Normalize the NaCl CFA pseudo-register to Breakpad's existing kCFARegister representation when parsing CFI operands.
Member
Author
|
9c0148c to
25cea09
Compare
25cea09 to
2ca55d1
Compare
This was referenced Jul 13, 2026
Member
|
Gamelogic crash tests from Daemon's LGTM |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Saigo LLVM emits DWARF CFI using register number -2 as a pseudo-register when describing the canonical frame address.
Breakpad currently interprets this value as register 4294967294, which can produce invalid CFI rules and cause failures while processing symbols.
Normalize the NaCl CFA pseudo-register to Breakpad's existing kCFARegister representation when parsing CFI operands.
Disclaimer: Like for the PHDR NaCl thing (DaemonEngine/native_client#6), I experimented using ChatGPT as a debugger assistant, providing the bot some diagnostic information in a discussion:
gdbbacktrace, output fromreadelf,llvm-dwarfdump, etc. The bot suggested me some diagnostics in order to figure out where the unexpected value was emitted. And after extensive testing of the build pipeline it turns out the problem got pretty well cornered!After such investigation has been done, I decided to patch breakpad because modifying LLVM would probably be a nightmare, and this seems to be the least intrusive workaround.