Bug 484623

Summary: eu-unstrip core dumps running as eu-unstrip -n -e execfilename --core=core.xxxx
Product: Red Hat Enterprise Linux 5 Reporter: James Washer <washer>
Component: elfutilsAssignee: Roland McGrath <roland>
Status: CLOSED DEFERRED QA Contact: BaseOS QE <qe-baseos-auto>
Severity: high Docs Contact:
Priority: low    
Version: 5.3CC: drepper
Target Milestone: rc   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2010-04-22 00:13:30 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
This is the (1st) core file created by intentionally killing the dl3 test program
none
This is the core from eu-unstrip dumping
none
This is libauparse.so.0.0.0 that I opened in dl3 as a test
none
dl3 binary which generated the oginial core having been killed none

Description James Washer 2009-02-09 03:05:28 UTC
Description of problem:
Attempting to execute eu-unstrip

Version-Release number of selected component (if applicable):
elfutils-0.137-3.el5

How reproducible:
compile the attached program dl3, and execute it with the single argument 
/lib64/libauparse.so.0.0.0 ( I just picked this lib at random to dlopen, I suspect others will have same problem)
The program with dlopen the named lib, then pause. 

Next, coredump dl3 (I type ctrl-\)

Finally run eu-unstrip -n -e ./dl3 --core=core.xxxx
and I get 

[washer@p6 dlopen-library]$ eu-unstrip -n -e dl3 --core=core.26032 
eu-unstrip: link_map.c:566: consider_executable: Assertion `m == mod' failed.
Aborted (core dumped)

  



Expected results:
A listing of the dl3 maps


Additional info:

Comment 1 James Washer 2009-02-09 03:08:25 UTC
Created attachment 331269 [details]
This is the (1st) core file created by intentionally killing the dl3 test program

Comment 2 James Washer 2009-02-09 03:09:36 UTC
Created attachment 331270 [details]
This is the core from eu-unstrip dumping

Comment 3 James Washer 2009-02-09 03:10:19 UTC
Created attachment 331271 [details]
This is libauparse.so.0.0.0 that I opened in dl3 as a test

Comment 4 James Washer 2009-02-09 03:11:32 UTC
Per rmcgrath's suggestion in the gdb IRC, I dowloaded elfutils 0.139 and found the same behaviour.

Comment 5 James Washer 2009-02-09 03:12:38 UTC
Per rmcgrath's suggestion, I downloaded, built, and tried elfutils 0.139. Same results, eu-unstrip core dumps.

Comment 6 Roland McGrath 2009-02-10 21:19:23 UTC
You did not attach the dl3 binary.  The binaries required are the ones you passed to eu-unstrip, which are this and the core file.

Comment 7 James Washer 2009-02-10 21:29:35 UTC
Created attachment 331474 [details]
dl3 binary which generated the oginial core having been killed

Comment 8 Roland McGrath 2009-04-15 10:16:42 UTC
This is fixed upstream (and in Fedora) as of 0.140.

Comment 9 Roland McGrath 2010-04-22 00:13:30 UTC
We are unlikely to rebase elfutils in RHEL5 or bother to backport obscure fixes like this.  Reopen if you really want a RHEL5 update for this.  There are many fixes in this area upstream and the problems won't be present in RHEL6.