-
Notifications
You must be signed in to change notification settings - Fork 35.5k
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
Objdump can't parse our Linux debug information #30016
Comments
Okay, may be a
(FWIW i did try various versions of |
Closing for now. edit: It's this objdump bug in dealing with compressed debug info sections: https://sourceware.org/bugzilla/show_bug.cgi?id=24319 |
Reopening with more accurate title (phew). Filed upstream issue: https://sourceware.org/bugzilla/show_bug.cgi?id=31692 |
This is probably because the Windows Binutils is configured without support for compressed debug sections, as it was, iirc, causing other windows build issues. |
Right, that makes sense. DWARF in PE binaires is a quite peculiar concept in the first place--heck, GNU even has its own way to encode the long section names needed: lief-project/LIEF#1043. i'm not surprised it's not set up to handle compressed sections. |
This was already solved upstream! i expect this will land in binutils 2.43. No need to keep this issue open. |
Upstream issue: https://sourceware.org/bugzilla/show_bug.cgi?id=31692
The debug information in the shipped
.dbg
artifacts seems to be unusable for objdump. The.debug_info
section is corrupt:i've checked various Linux architectures (at least x86_64, ARM, RISC-V) and the same issue exists there. Interestingly, the Windows build is unaffected. Maybe because of a different gcc/binutils? Builds outside guix seem unaffected.
My first thought is that something goes wrong while splitting the debug symbols. However, the unsplitted binaries suffer from the same problem:
$ objdump -Wi guix-build-27.0/distsrc-27.0-x86_64-linux-gnu/src/bitcoind Section '.debug_info' has an invalid size: 0
This issue affects at least release
27.0
and current master.Edit: Looks like there is a
.debug_info
section in the files.objdump -s -j .debug_info bitcoin-27.0/bin/bitcoind.dbg
shows contents, so it's not really size 0. But it can't be parsed somehow.The text was updated successfully, but these errors were encountered: