rustc silently ignores failures in dsymutil #78770
Labels
A-debuginfo
Area: Debugging information in compiled programs (DWARF, PDB, etc.)
A-linkage
Area: linking into static, shared libraries and binaries
C-bug
Category: This is a bug.
E-easy
Call for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.
O-macos
Operating system: macOS
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
On macOS rustc runs dsymutil to generate debug info files. This invocation incorrectly ignores dsymutil's output and exit status. rustc thus succeeds even if dsymutil fails or crashes.
Example: in #78657, dsymutil crashed and left behind a corrupt .dSYM file. rustc nevertheless succeeded, thereby confusing the user after the debugger ignored that bad debug info.
The text was updated successfully, but these errors were encountered: