Bug 688532 - eu-addr2line sometimes does not work
Summary: eu-addr2line sometimes does not work
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: elfutils
Version: 15
Hardware: x86_64
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Roland McGrath
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-03-17 10:21 UTC by Jan Kratochvil
Modified: 2018-04-11 15:06 UTC (History)
6 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2011-03-18 11:11:21 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
The files from: xorg-x11-server-Xorg-1.10.0-3.fc15.x86_64 + xorg-x11-server-debuginfo-1.10.0-3.fc15.x86_64 (2.54 MB, application/octet-stream)
2011-03-17 10:21 UTC, Jan Kratochvil
no flags Details
xz of /tmp/x (=after eu-unstrip) (2.54 MB, application/xz)
2011-03-17 17:36 UTC, Jan Kratochvil
no flags Details


Links
System ID Private Priority Status Summary Last Updated
GNU Compiler Collection 48176 0 None None None Never

Description Jan Kratochvil 2011-03-17 10:21:37 UTC
Created attachment 485978 [details]
The files from: xorg-x11-server-Xorg-1.10.0-3.fc15.x86_64 + xorg-x11-server-debuginfo-1.10.0-3.fc15.x86_64

Description of problem:
addr2line or gdb works in such case.

Version-Release number of selected component (if applicable):
elfutils-0.152-1.fc15.x86_64
binutils-2.21.51.0.6-1.fc15.x86_64
gdb-7.2.50.20110305-28.fc15.x86_64
xorg-x11-server-Xorg-1.10.0-3.fc15.x86_64
xorg-x11-server-debuginfo-1.10.0-3.fc15.x86_64

How reproducible:
Always.

Steps to Reproduce:
$ eu-addr2line -e /usr/bin/Xorg 0x4a105f

Actual results:
??:0

Expected results:
/usr/src/debug/xorg-server-1.10.0/os/backtrace.c:46

Additional info:
$ gdb -q /usr/bin/Xorg -ex 'info line *0x4a105f' -ex q
Line 46 of "backtrace.c" starts at address 0x4a105f <xorg_backtrace+47> and ends at 0x4a1067 <xorg_backtrace+55>.
$ eu-addr2line -e /usr/bin/Xorg 0x4a105f
??:0
$ addr2line -e /usr/bin/Xorg 0x4a105f
??:0
$ eu-addr2line -e /usr/lib/debug/usr/bin/Xorg.debug 0x4a105f
??:0
$ addr2line -e /usr/lib/debug/usr/bin/Xorg.debug 0x4a105f
/usr/src/debug/xorg-server-1.10.0/os/backtrace.c:46
$ prelink -u -o /tmp/y /usr/bin/Xorg
$ eu-unstrip -o /tmp/x /tmp/y /usr/lib/debug/usr/bin/Xorg.debug 
$ eu-addr2line -e /tmp/x 0x4a105f
??:0
$ addr2line -e /tmp/x 0x4a105f
/usr/src/debug/xorg-server-1.10.0/os/backtrace.c:46

Comment 1 Roland McGrath 2011-03-17 17:28:38 UTC
Since that eu-unstrip output file apparently reproduces the problem, it would be easiest if you could just attach that one binary to this bug.

Comment 2 Jan Kratochvil 2011-03-17 17:36:09 UTC
Created attachment 486076 [details]
xz of /tmp/x (=after eu-unstrip)

Comment 3 Roland McGrath 2011-03-17 23:16:37 UTC
This file has no .debug_aranges section.  libdw relies on that section.
Did the compiler fail to emit one?  Or did something else remove it?

Comment 4 Jan Kratochvil 2011-03-18 11:11:21 UTC
Tracked now upstream as a gcc-4.6 regression, thanks for the analysis.


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