Bug 617976 - GDB debuginfo installation suggestion does not work
Summary: GDB debuginfo installation suggestion does not work
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: redhat-release-server   
(Show other bugs)
Version: 6.0
Hardware: All
OS: Linux
Target Milestone: rc
: ---
Assignee: Dennis Gregorovic
QA Contact: Release Test Team
Depends On: 617162
TreeView+ depends on / blocked
Reported: 2010-07-25 11:27 UTC by Jan Kratochvil
Modified: 2010-11-11 16:22 UTC (History)
9 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2010-11-11 16:22:41 UTC
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

Description Jan Kratochvil 2010-07-25 11:27:32 UTC
Description of problem:
GDB in some cases suggests command to install debuginfo expecting debuginfo repositories are named '*-debuginfo' (since Bug 554152).  They are not named so in RHEL-6.  Such suggested command will fail for the user.
ABRT does not seem to be affected by this issue.

Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:
(ulimit -c unlimited;sleep 1h&p=$!;sleep 1;kill -SEGV $p);sleep 5;gdb -c ./core.*
# That curious `sleep 5' is there due to unrelated Bug 584554.
It prints:
Try: yum --disablerepo='*' --enablerepo='*-debuginfo' install /usr/lib/debug/.build-id/95/660a4802f4874ec0e20f216505e1015b82baab
so run it.
Also run:
repoquery -qf /usr/lib/debug/.build-id/95/660a4802f4874ec0e20f216505e1015b82baab

Actual results:
Loaded plugins: auto-update-debuginfo, rhnplugin
This system is not registered with RHN.
RHN support will be disabled.
Setting up Install Process
No package /usr/lib/debug/.build-id/95/660a4802f4874ec0e20f216505e1015b82baab available.
Error: Nothing to do

Expected results:
 coreutils-debuginfo s390x 8.4-9.el6 rhel6-debug 2.8 M
Total download size: 2.8 M
Installed size: 14 M
Is this ok [y/N]: 

Additional info:
Fedora always has debuginfo repositories named SMTH-debuginfo.
RHEL-6 has:
$ grep '^\[' /etc/yum.repos.d/rhel-debuginfo.repo
$ rpm -qf /etc/yum.repos.d/rhel-debuginfo.repo
$ rpm -V redhat-release-server-6-
This is a regression against Fedora releases.

This bug may need to be cloned for the other many RHEL-6 release variants.

#// Disabled. Too often, debuginfo repos have names which do not conform to "foo-debuginfo" scheme,
#// and users get bad backtraces.
yum_repo_opts="$yum_repo_opts '--enablerepo=*-debug*'"

This rule should be the same for both GDB and ABRT.
The question is whether *-release rpms or GDB should be changed.
Ccing also the default ABRT Cc list.

Comment 1 Jiri Moskovcak 2010-07-26 11:11:18 UTC
seems like clone of:
Summary: debuginfo-install works only with repos named *-debuginfo-*


Comment 2 Jan Kratochvil 2010-07-26 11:18:21 UTC
Yes, the same issue, thanks.
I just now do not understand how that bug can be closed when the problem is not fixed.  Moreover that one is for yum-utils while I believe the `release' rpm should be fixed instead.

Comment 5 Jan Stodola 2010-08-30 14:42:35 UTC
[root@rtt6 ~]# yum repolist
Loaded plugins: rhnplugin
repo id                                                                                repo name                                                                                                         status
rhel-s390x-server-6                                                                    Red Hat Enterprise Linux Server (v. 6 for IBM System Z)                                                           3,057
rhel-s390x-server-6-debuginfo                                                          RHEL Server Debuginfo (v.6 for IBM System Z)                                                                      1,347
repolist: 4,404
[root@rtt6 ~]# (ulimit -c unlimited;sleep 1h&p=$! ;sleep 1;kill -SEGV $p);sleep 5;gdb -c ./core.*
Excess command line arguments ignored. (./core.1867 ...)
GNU gdb (GDB) Red Hat Enterprise Linux (7.1-29.el6)
Copyright (C) 2010 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "s390x-redhat-linux-gnu".
For bug reporting instructions, please see:
"/root/core.1859": not in executable format: File format not recognized
Missing separate debuginfo for the main executable file
Try: yum --disablerepo='*' --enablerepo='*-debuginfo' install /usr/lib/debug/.build-id/95/660a4802f4874ec0e20f216505e1015b82baab
[New Thread 1755]
Core was generated by `sleep 1h'.
Program terminated with signal 11, Segmentation fault.
#0  0x00000200000f0408 in ?? ()
(gdb) quit
[root@rtt6 ~]# yum --disablerepo='*' --enablerepo='*-debuginfo' install /usr/lib/debug/.build-id/95/660a4802f4874ec0e20f216505e1015b82baab
Loaded plugins: rhnplugin
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package coreutils-debuginfo.s390x 0:8.4-9.el6 set to be updated
--> Finished Dependency Resolution

Dependencies Resolved

 Package                                              Arch                                   Version                                      Repository                                                      Size
 coreutils-debuginfo                                  s390x                                  8.4-9.el6                                    rhel-s390x-server-6-debuginfo                                  2.8 M

Transaction Summary
Install       1 Package(s)
Upgrade       0 Package(s)

Total download size: 2.8 M
Installed size: 0  
Is this ok [y/N]: y
Downloading Packages:
coreutils-debuginfo-8.4-9.el6.s390x.rpm                                                                                                                                                 | 2.8 MB     00:01     
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
  Installing     : coreutils-debuginfo-8.4-9.el6.s390x                                                                                                                                                     1/1 

  coreutils-debuginfo.s390x 0:8.4-9.el6                                                                                                                                                                        


Tested on build RHEL6.0-20100826.1 with redhat-release-server-6Server- System registered into webdev.

Moving to VERIFIED.

Comment 6 releng-rhel@redhat.com 2010-11-11 16:22:41 UTC
Red Hat Enterprise Linux 6.0 is now available and should resolve
the problem described in this bug report. This report is therefore being closed
with a resolution of CURRENTRELEASE. You may reopen this bug report if the
solution does not work for you.

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