Bug 729006

Summary: Debuginfo package issues in groff
Product: Red Hat Enterprise Linux 6 Reporter: Karel Klíč <kklic>
Component: groffAssignee: Peter Schiffer <pschiffe>
Status: CLOSED WONTFIX QA Contact: BaseOS QE - Apps <qe-baseos-apps>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 6.3CC: rvokal
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-04-25 14:30:02 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:
Bug Depends On:    
Bug Blocks: 727919    

Description Karel Klíč 2011-08-08 15:19:12 UTC
Several problems related to debuginfo were found in the groff-1.18.1.4-21.el6 package. These issues might affect crash analysis done by Automatic Bug Reporting Tool and its retrace server, and also prevent proper debugging of crashes via GDB.

Source file missing in debuginfo package
----------------------------------------
Multiple source files that were used by the compiler to generate a binary are missing from the debuginfo package. This is usually caused by the build script creating temporary source files during the build and deleting them after usage, or by moving source files between directories. Missing source files in debuginfo packages make debugging of crashes more difficult.

debuginfo package: groff-debuginfo-1.18.1.4-21.el6.i686
  debuginfo file: /usr/lib/debug/usr/bin/refer.debug
    missing source: /usr/src/debug/groff-1.18.1.4/src/preproc/refer/y.tab.c
  debuginfo file: /usr/lib/debug/usr/bin/eqn.debug
    missing source: /usr/src/debug/groff-1.18.1.4/src/preproc/eqn/y.tab.c
  debuginfo file: /usr/lib/debug/usr/bin/pic.debug
    missing source: /usr/src/debug/groff-1.18.1.4/src/preproc/pic/y.tab.c

Please consider changing the package build script (if that is the cause of this issue) to keep the source files on their compilation place, so rpmbuild can find them when generating debuginfo package.

No .debug_info section in a debug file
--------------------------------------
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/bin/gxditview.debug
package: groff-debuginfo-1.18.1.4-21.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 2 RHEL Program Management 2011-08-08 15:42:18 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 unfortunately unable to
address this request at this time. Red Hat invites you to
ask your support representative to propose this request, if
appropriate and relevant, in the next release of Red Hat
Enterprise Linux. If you would like it considered as an
exception in the current release, please ask your support
representative.

Comment 4 Peter Schiffer 2013-04-25 14:30:02 UTC
y.tab.c shouldn't be important for debugging, it's temporary file used by yacc

missing .debug_info section in gxditview is probably because this binary is conditionally compiled, the rest of the binaries has .debug_info section; also gxditview has .debug_info section in Fedora

I don't think this is worth fixing, so closing as WONTFIX