Bug 200886

Summary: KProf - BFD: LiftSimulator(.rel.plt): relocation 0 has invalidsymbol index 1
Product: Red Hat Enterprise Linux 4 Reporter: Jose Plans <jplans>
Component: binutilsAssignee: Jakub Jelinek <jakub>
Status: CLOSED ERRATA QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: 4.0CC: tao
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: RHBA-2007-0207 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2007-05-01 23:16:23 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
Patch for RHEL4 binutils-2.15.92.0.2. none

Description Jose Plans 2006-08-01 11:42:11 UTC
After compiling for profiling a program and then using gprof to generate some
monitoring, this last one will complain with the following errors:
 ---
         BFD: LiftSimulator(.rel.plt): relocation 0 has invalid symbol
         index 1
         BFD: LiftSimulator(.rel.plt): relocation 1 has invalid symbol
         index 2
         ...
 ---
This happens on latest binutils : binutils-2.15.92.0.2
And has been fixed : http://sourceware.org/ml/binutils/2005-01/msg00433.html.

To reproduce it:
   --- prog.cpp ---
#include <iostream>

int main()
{
std::cout << "Hello, world!" << std::endl;
return 0;
}
   --- prog.cpp ---
% g++ -pg -g -o prog prog.cpp
% ./prog
% gprof ./prog gmon.out > gmon.results

Attached you will find a backported patch fixing this problem.

Comment 1 Jose Plans 2006-08-01 11:42:11 UTC
Created attachment 133391 [details]
Patch for RHEL4 binutils-2.15.92.0.2.

Comment 4 RHEL Program Management 2006-08-18 14:52:22 UTC
This request was evaluated by Red Hat Product Management for inclusion in a Red
Hat Enterprise Linux maintenance release.  Product Management has requested
further review of this request by Red Hat Engineering, for potential
inclusion in a Red Hat Enterprise Linux Update release for currently deployed
products.  This request is not yet committed for inclusion in an Update
release.

Comment 6 Jakub Jelinek 2007-01-05 15:04:14 UTC
Should be fixed in 2.15.92.0.2-22.

Comment 10 Red Hat Bugzilla 2007-05-01 23:16:23 UTC
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on the solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.

http://rhn.redhat.com/errata/RHBA-2007-0207.html