Bug 1176238 - Resolve ppc64 symbols even without opd
Summary: Resolve ppc64 symbols even without opd
Keywords:
Status: NEW
Alias: None
Product: Fedora
Classification: Fedora
Component: elfutils
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Mark Wielaard
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-12-19 19:51 UTC by Mark Wielaard
Modified: 2023-07-09 12:57 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: Enhancement
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-07-19 12:34:03 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Mark Wielaard 2014-12-19 19:51:18 UTC
We test whether we can unwind through a "deleted" shared library of a remote process with the run-deleted.sh test. This work fine on ppc64. Except for resolving some of the addresses. The problem is that we sanity check a symbol address against the odp, if we don't have that, we don't resolve it in backends/ppc64_resolve_sym.c. For ELF images gotten through elf_remote_memory we don't have shdrs and so won't find the .odp.

For now the test has been disabled for ppc64 in tests/run-deleted.sh:

+# For PPC64 we need access to the OPD table which we get through the shdrs
+# (see backends/ppc64_init.c) but for the deleted-lib we only have phdrs.
+# So we don't have the name of the function. But since we should find
+# the EH_FRAME through phdrs just fine, we can unwind into main.
+if test "`uname -m`" != "ppc64"; then
+  grep -qw libfunc bt
+fi

We could/should probably be a little less paranoid and just fetch the data section and resolve anyway.

Comment 1 Jaroslav Reznik 2015-03-03 16:38:30 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 22 development cycle.
Changing version to '22'.

More information and reason for this action is here:
https://fedoraproject.org/wiki/Fedora_Program_Management/HouseKeeping/Fedora22

Comment 2 Fedora End Of Life 2016-07-19 12:34:03 UTC
Fedora 22 changed to end-of-life (EOL) status on 2016-07-19. Fedora 22 is
no longer maintained, which means that it will not receive any further
security or bug fix updates. As a result we are closing this bug.

If you can reproduce this bug against a currently maintained version of
Fedora please feel free to reopen this bug against that version. If you
are unable to reopen this bug, please file a new report against the
current release. If you experience problems, please add a comment to this
bug.

Thank you for reporting this bug and we are sorry it could not be fixed.

Comment 3 Mark Wielaard 2016-07-19 12:47:18 UTC
This should have stayed open. Changing version to rawhide (it already has FutureFeature keyword) hopefully that helps.


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