Bug 729024 - Debuginfo package issues in qt
Debuginfo package issues in qt
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: qt (Show other bugs)
Unspecified Unspecified
unspecified Severity unspecified
: rc
: ---
Assigned To: Jan Grulich
Desktop QE
Depends On:
Blocks: 727919
  Show dependency treegraph
Reported: 2011-08-08 11:19 EDT by Karel Klíč
Modified: 2017-01-09 11:02 EST (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
Last Closed:
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Karel Klíč 2011-08-08 11:19:56 EDT
Several problems related to debuginfo were found in the qt-4.6.2-17.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: qt-debuginfo-4.6.2-17.el6.i686
  debuginfo file: /usr/lib/debug/usr/lib/libQtScript.so.4.6.2.debug
    missing source: /usr/src/debug/qt-everywhere-opensource-src-4.6.2/src/script/JavaScriptCore/generated/Grammar.tab.h
    missing source: /usr/src/debug/qt-everywhere-opensource-src-4.6.2/src/script/JavaScriptCore/generated/Grammar.tab.c
    missing source: /usr/src/debug/qt-everywhere-opensource-src-4.6.2/src/parser/Grammar.y
  debuginfo file: /usr/lib/debug/usr/lib/libQtXmlPatterns.so.4.6.2.debug
    missing source: /usr/src/debug/qt-everywhere-opensource-src-4.6.2/src/xmlpatterns/querytransformparser.ypp
    missing source: /usr/src/debug/qt-everywhere-opensource-src-4.6.2/src/xmlpatterns/qquerytransformparser.cpp

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/lib/libQt3Support.so.4.6.2.debug
package: qt-debuginfo-4.6.2-17.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 Product and Program Management 2011-08-08 11:41:05 EDT
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
Comment 3 Ngo Than 2011-12-14 07:29:18 EST
Karel, can i get the script which detects the debuginfo issues?
Comment 4 Karel Klíč 2011-12-14 07:41:07 EST
Yes, although I'm afraid it is not easy to use the scripts.

See https://fedorahosted.org/faf/browser

faf-debuginfo-analyze-builds is the top-level script running analysis of all builds downloaded in local cache (via faf-koji-pull-builds, faf-koji-pull-rpms)

Also see faf-debuginfo-build-debugsources: all packages need to be rebuilt to get data from their build root.

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