Bug 965255 - binutils can't cope with dwz's output
Summary: binutils can't cope with dwz's output
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: binutils
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Nick Clifton
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-05-20 19:20 UTC by Adam Jackson
Modified: 2013-08-15 02:31 UTC (History)
5 users (show)

Fixed In Version: binutils-2.23.51.0.1-10.fc18
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-06-18 16:46:36 UTC


Attachments (Terms of Use)
http://kojipkgs.fedoraproject.org/packages/pango/1.34.1/1.fc19/x86_64/pango-debuginfo-1.34.1-1.fc19.x86_64.rpm (730.00 KB, application/octet-stream)
2013-05-20 19:20 UTC, Adam Jackson
no flags Details

Description Adam Jackson 2013-05-20 19:20:28 UTC
Created attachment 750696 [details]
http://kojipkgs.fedoraproject.org/packages/pango/1.34.1/1.fc19/x86_64/pango-debuginfo-1.34.1-1.fc19.x86_64.rpm

Description of problem:

Unpack the pango-debuginfo in the attachment, or equivalently:

http://kojipkgs.fedoraproject.org/packages/pango/1.34.1/1.fc19/x86_64/pango-debuginfo-1.34.1-1.fc19.x86_64.rpm

Then run 'objdump -Dl' over the debuginfo file for the DSO, and be sad:

% objdump -Dl pango-debuginfo-1.34.1-1.fc19.x86_64/usr/lib/debug/usr/lib64/libpango-1.0.so.0.3400.1.debug |& grep BFD | head -5
BFD: Dwarf Error: Invalid or unhandled FORM value: 7969.
BFD: Dwarf Error: found dwarf version '0', this reader only handles version 2, 3 and 4 information.
BFD: Dwarf Error: found dwarf version '0', this reader only handles version 2, 3 and 4 information.
BFD: Dwarf Error: found dwarf version '56191', this reader only handles version 2, 3 and 4 information.
BFD: Dwarf Error: found dwarf version '6912', this reader only handles version 2, 3 and 4 information.

Locally rebuilding pango with %global _find_debuginfo_dwz_opts %{nil} produces a .debug file without this problem.

I'm not entirely sure what the rpmbuild-generated dwz command line comes out to.  My attempts to divine it from reading find-debuginfo.sh seem to result in output files that all work correctly.

Comment 1 Jakub Jelinek 2013-05-20 19:34:24 UTC
Looks like objdump bug.  readelf -wi handles this just fine.  FORM 7969 is valid (DW_FORM_GNU_strp_alt).

Comment 2 Nick Clifton 2013-05-29 15:49:13 UTC
I have checked in a patch (to rawhide) to add support in the BFD library for handling the alternate debuginfo files produced by the DWZ program.  Please try out: binutils-2.23.88.0.1-5.fc20 and let me know if the problem still exists.

Cheers
  Nick

Comment 3 Adam Jackson 2013-06-11 13:55:27 UTC
% objdump -Dl ~/dwz/pango-debuginfo-1.34.1-1.fc19.x86_64/usr/lib/debug/usr/lib64/libpango-1.0.so.0.3400.1.debug |& grep -c BFD   
0
% rpm -q binutils
binutils-2.23.88.0.1-6.fc20.x86_64

Looks good, thanks!

Comment 4 Adam Jackson 2013-06-18 16:46:36 UTC
Fixed in F20 is good enough for me, especially since the elfutils tools don't seem to have this issue.

Comment 5 Dan Horák 2013-06-20 15:28:25 UTC
Nick, can you backport the fix also to f19 (and maybe also f18) and release an update thru bodhi?

Comment 6 Fedora Update System 2013-06-21 10:00:27 UTC
binutils-2.23.52.0.1-9.fc19 has been submitted as an update for Fedora 19.
https://admin.fedoraproject.org/updates/binutils-2.23.52.0.1-9.fc19

Comment 7 Fedora Update System 2013-06-21 10:05:04 UTC
binutils-2.23.51.0.1-10.fc18 has been submitted as an update for Fedora 18.
https://admin.fedoraproject.org/updates/binutils-2.23.51.0.1-10.fc18

Comment 8 Dan Horák 2013-06-21 11:50:59 UTC
thanks Nick, Dan

Comment 9 Fedora Update System 2013-06-29 18:15:55 UTC
binutils-2.23.52.0.1-9.fc19 has been pushed to the Fedora 19 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 10 Fedora Update System 2013-08-15 02:31:41 UTC
binutils-2.23.51.0.1-10.fc18 has been pushed to the Fedora 18 stable repository.  If problems still persist, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.