-
Notifications
You must be signed in to change notification settings - Fork 13.5k
[llvm-dwarfdump] Crash in llvm::prettyPrintBaseTypeRef #93104
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
@llvm/issue-subscribers-tools-llvm-dwarfdump Author: None (mgschossmann)
When executing `llvm-dwarfdump /usr/bin/python3.10d --debug-loclists`, llvm-dwarfdump crashes.
LLVM version: 19.0.0git (commit b586149, DEBUG build with assertions) The Python binary can be obtained from python3-dbg_3.10.6-1~22.04_amd64.deb Console output (beginning skipped):
Adding a null-check for Because |
…lvm#93104 Prevent a crash by only printing DWARFUnit-unaware information in cases in which `DWARFUnit* U` is `nullptr`.
Fixes #93104 Prevent a crash by only printing DWARFUnit-unaware information in cases in which `DWARFUnit* U` is `nullptr`.
…93156) Fixes llvm#93104 Prevent a crash by only printing DWARFUnit-unaware information in cases in which `DWARFUnit* U` is `nullptr`. Signed-off-by: Hafidz Muzakky <[email protected]>
When executing
llvm-dwarfdump /usr/bin/python3.10d --debug-loclists
, llvm-dwarfdump crashes.LLVM version: 19.0.0git (commit b586149, DEBUG build with assertions)
The Python binary can be obtained from python3-dbg_3.10.6-1~22.04_amd64.deb
Console output (beginning skipped):
Adding a null-check for
U
in llvm::prettyPrintBaseTypeRef solves the issue.Because
dumpLoclistsSection
passesnullptr
for parameterDWARFUnit *U
ofDWARFLocationTable::dumpLocationList
, which gets forwarded tollvm::prettyPrintBaseTypeRef
, I suppose thatnullptr
is also a valid argument for parameterDWARFUnit *U
ofllvm::prettyPrintBaseTypeRef
.The text was updated successfully, but these errors were encountered: