Skip to content

fix: dump_syms fails due to incorrect path handling#162

Merged
bobbyg603 merged 4 commits intomainfrom
bobbyg603/issue160
May 23, 2025
Merged

fix: dump_syms fails due to incorrect path handling#162
bobbyg603 merged 4 commits intomainfrom
bobbyg603/issue160

Conversation

@bobbyg603
Copy link
Copy Markdown
Member

@bobbyg603 bobbyg603 commented May 22, 2025

Description

The logic used to determine the module and sym file names used by Crashpad is bananas.

  • .pdb exists in the module portion of the path but not the sym file name eg, thing.pdb/GUID/thing.sym
  • .so.* exists in both the module portion and the sym file name eg, thing.so.6/GUID/thing.so.6.sym
  • .dSYM always gets removed, and .dylib.dSYM gets trimmed to thing.dylib/GUID/thing.dylib.sym but .app.dSYM gets trimmed to thing/GUID/thing.sym
  • .debug always gets removed, and .so.2.debug gets trimmed to thing.so.2/GUID/thing.so.2.sym

Fixes #160

Checklist

  • Tested manually
  • Unit tests pass with no errors or warnings
  • Documentation updated (if applicable)
  • Reviewed by at least 1 other contributor

@bobbyg603 bobbyg603 requested a review from daveplunkett May 22, 2025 21:51
@bobbyg603 bobbyg603 merged commit c35ba08 into main May 23, 2025
7 checks passed
@bobbyg603 bobbyg603 deleted the bobbyg603/issue160 branch May 23, 2025 14:45
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.

dump_syms fails due to incorrect path handling

2 participants