Bug 729000

Summary: Failed to find the .debug_info section in a debuginfo file
Product: Red Hat Enterprise Linux 6 Reporter: Karel Klíč <kklic>
Component: nfs-utils-libAssignee: Steve Dickson <steved>
Status: CLOSED DUPLICATE QA Contact: Filesystem QE <fs-qe>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 6.3CC: rvokal, syeghiay
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-05-01 21:18:14 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Bug Depends On:    
Bug Blocks: 727919    

Description Karel Klíč 2011-08-08 15:18:57 UTC
A problem related to debuginfo was found in the nfs-utils-lib-1.1.5-3.el6 package. This issue might affect crash analysis done by Automatic Bug Reporting Tool and its retrace server, and also prevent proper debugging of crashes via GDB.

When a binary is compiled without gcc's -g option, no debugging information is generated and rpmbuild creates almost-empty debuginfo file, which cannot be used for debugging. Please fix the package build process to use $RPM_OPT_FLAGS, which include the -g option among others.

path: /usr/lib/debug/usr/lib/libnfsidmap/umich_ldap.so.debug
package: nfs-utils-lib-debuginfo-1.1.5-3.el6.i686

This issue can be investigated and tested by using eu-readelf tool from the elfutils package. Use `eu-readelf --section-headers /usr/lib/debug/usr/bin/<debuginfofile>.debug` to see if debuginfo file contains .debug_info section. It is supposed to be there.

(This bug was detected and filed by a script.)

Comment 5 RHEL Program Management 2012-09-07 05:08:22 UTC
This request was evaluated by Red Hat Product Management for
inclusion in the current release of Red Hat Enterprise Linux.
Because the affected component is not scheduled to be updated
in the current release, Red Hat is unable to address this
request at this time.

Red Hat invites you to ask your support representative to
propose this request, if appropriate, in the next release of
Red Hat Enterprise Linux.

Comment 6 Steve Dickson 2012-10-12 13:31:11 UTC
I'm not understanding what the problem is here or how to fix it... Can you be a bit more explicit as to what you are asking for?

Comment 7 Karel Klíč 2012-10-15 08:54:47 UTC
Hi Steve,

/usr/lib/debug/usr/lib/libnfsidmap/umich_ldap.so.debug is supposed to contain debugging symbols for umich_ldap.so shared library, but it doesn't contain them.

This is usually caused by a missing compiler/linker flag -g during the package build.

Is nfs-utils-lib build with -g?

Ideally, $RPM_OPT_FLAGS, which includes -g, are added to the compiler flags.

Comment 8 Steve Dickson 2012-10-15 20:51:08 UTC
So something like this:

diff --git a/nfs-utils-lib.spec b/nfs-utils-lib.spec
index fa152a5..7c06576 100644
--- a/nfs-utils-lib.spec
+++ b/nfs-utils-lib.spec
@@ -72,7 +72,8 @@ mv %{librpcsecgss}-%{rpcsecgssvers} %{librpcsecgss}
 pushd  %{libnfsidmap}
+CFLAGS="`echo $RPM_OPT_FLAGS $ARCH_OPT_FLAGS -fno-strict-aliasing`"
+%configure CFLAGS="$CFLAGS"
 make %{?_smp_mflags} all

Comment 13 Steve Dickson 2014-05-01 21:18:14 UTC

*** This bug has been marked as a duplicate of bug 594279 ***