Bug 1783897

Summary: missing debuginfo packages
Product: Red Hat Enterprise Linux 8 Reporter: Steeve Goveas <sgoveas>
Component: abrtAssignee: abrt <abrt-devel-list>
Status: CLOSED ERRATA QA Contact: BaseOS QE - Apps <qe-baseos-apps>
Severity: unspecified Docs Contact:
Priority: high    
Version: 8.2CC: abrt-devel-list, atikhono, geovannisantosgmc, mkyral, msuchy
Target Milestone: rcKeywords: Regression
Target Release: 8.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: libreport-2.9.5-10.el8 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-04-28 17:04:07 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Steeve Goveas 2019-12-16 08:36:17 UTC
Description of problem:

[root@ci-vm-10-0-154-155 ccpp-2019-12-12-07:53:30-29128]# pwd
/var/spool/abrt/ccpp-2019-12-12-07:53:30-29128
 
[root@ci-vm-10-0-154-155 ccpp-2019-12-12-07:53:30-29128]# rpm -q abrt
abrt-2.10.9-11.el8.x86_64
 
[root@ci-vm-10-0-154-155 ccpp-2019-12-12-07:53:30-29128]# abrt-action-analyze-core -c coredump -o build_ids
Analyzing coredump 'coredump'
 
[root@ci-vm-10-0-154-155 ccpp-2019-12-12-07:53:30-29128]# abrt-action-install-debuginfo -y -v
All debuginfo files are available
 
[root@ci-vm-10-0-154-155 ccpp-2019-12-12-07:53:30-29128]# abrt-action-analyze-backtrace -v
 
[root@ci-vm-10-0-154-155 ccpp-2019-12-12-07:53:30-29128]# head backtrace
could not find '.gnu_debugaltlink' file for /var/cache/abrt-di/usr/lib/debug/usr/libexec/sssd/sssd_autofs-2.2.3-3.el8.x86_64.debug
[New LWP 29128]
Error while reading shared library symbols for /usr/lib64/sssd/libsss_util.so:
could not find '.gnu_debugaltlink' file for /var/cache/abrt-di/usr/lib/debug/usr/lib64/sssd/libsss_util.so-2.2.3-3.el8.x86_64.debug
Error while reading shared library symbols for /lib64/libbasicobjects.so.0:
could not find '.gnu_debugaltlink' file for /var/cache/abrt-di/usr/lib/debug/usr/lib64/libbasicobjects.so.0.1.0-0.6.1-39.el8.x86_64.debug
Error while reading shared library symbols for /lib64/libref_array.so.1:
could not find '.gnu_debugaltlink' file for /var/cache/abrt-di/usr/lib/debug/usr/lib64/libref_array.so.1.2.1-0.6.1-39.el8.x86_64.debug
Error while reading shared library symbols for /lib64/libcollection.so.4:
could not find '.gnu_debugaltlink' file for /var/cache/abrt-di/usr/lib/debug/usr/lib64/libcollection.so.4.1.1-0.6.1-39.el8.x86_64.debug
 
 
[root@ci-vm-10-0-154-155 ccpp-2019-12-12-07:53:30-29128]# abrt-action-install-debuginfo --help
Usage: abrt-action-install-debuginfo [-vy] [--ids=BUILD_IDS_FILE] [--pkgmgr=(yum|dnf)]
       [--tmpdir=TMPDIR] [--cache=CACHEDIR[:DEBUGINFODIR1:DEBUGINFODIR2...]] [--size_mb=SIZE]
       [-e, --exact=PATH[:PATH]...]
       [--releasever=RELEASEVER]
 
Installs debuginfos for all build-ids listed in BUILD_IDS_FILE
to CACHEDIR, using TMPDIR as temporary staging area.
Old files in CACHEDIR are deleted until it is smaller than SIZE.
 
Reads configuration from /etc/abrt/plugins/CCpp.conf
 
    -v          Be verbose
    -y          Noninteractive, assume 'Yes' to all questions
    --ids       Default: build_ids
    --tmpdir    Default: /var/tmp/abrt-tmp-debuginfo-RANDOM_SUFFIX
    --cache     Colon separated list of directories. The first one is used for
                saving installed debuginfos.
                Default: /var/cache/abrt-dir                           <--- also default path in help is wrong
    --size_mb   Default: 4096
    --pkgmgr   Default: PackageManager from CCpp.conf or 'dnf'
    -e,--exact  Download only specified files
    --repo      Pattern to use when searching for repos.
                Default: *debug*
    --releasever RELEASEVER
                Pass this OS version to package managers.

Comment 1 Steeve Goveas 2019-12-17 08:50:03 UTC
Above command should be 'abrt-action-generate-backtrace -v' instead of 'abrt-action-analyze-backtrace -v'

Confirmed abrt-action-install-debuginfo is not unpacking all required packages in /var/cache/abrt-di
Manually install multiple debuginfo packages to get complete bt

[root@ci-vm-10-0-154-252 ccpp-2019-12-16-09:06:19-29173]# grep -c "Error while reading shared" backtrace
25

history
   13  dnf debuginfo-install sssd-common libkrb5support libkeyutilsmemberof libldb libtevent libtalloc libtdb
   14  dnf debuginfo-install sssd-common libkrb5support libldb libtevent libtalloc libtdb
   15  dnf debuginfo-install sssd-common libldb libtevent libtalloc libtdb
   34  dnf debuginfo-install libbasicobjects
   37  dnf debuginfo-install systemd-libs
   39  dnf debuginfo-install systemd-libs
   63  dnf debuginfo-install libblkid-devel libuuid-devel cyrus-sasl-devel krb5-devel libcom_err-devel keyutils-libs-devel sssd-common systemd-devel
   78  dnf debuginfo-install lz4-devel libblkid-devel libuuid-devel cyrus-sasl-devel krb5-devel libcom_err-devel keyutils-libs-devel 
   84  dnf debuginfo-install libcom_err uuidd util-linux-debugsource libuuid libpsm2-debugsource libblkid libmount libpath_utils libdhash peripety-debugsource stratisd-debugsource libsss_certmap libcollection libref_array
   89  dnf debuginfo-install liblz4 libgcc_s libsasl2 libk5crypto libkrb5support libkeyutils
   96  dnf debuginfo-install glibc
  108  dnf debuginfo-install lz4-devel libgcc cyrus-sasl-devel krb5-devel keyutils-libs-devel krb5-libs 
  109  dnf debuginfo-install lz4 libgcc cyrus-sasl krb5 keyutils-libs
  110  dnf debuginfo-install lz4 libgcc cyrus-sasl  keyutils-libs
  115  dnf debuginfo-install lz4-devel
  116  dnf debuginfo-install lz4
  118  dnf debuginfo-install lz4-debuginfo
  124  dnf debuginfo-install cyrus-sasl
  125  dnf debuginfo-install cyrus-sasl-devel
  126  dnf debuginfo-install cyrus-sasl-debugsource
  134  dnf debuginfo-install cyrus-sasl-lib

[root@ci-vm-10-0-154-252 ccpp-2019-12-16-09:06:19-29173]# abrt-action-generate-backtrace -v
Generating backtrace
Backtrace is generated and saved, 26081 bytes

[root@ci-vm-10-0-154-252 ccpp-2019-12-16-09:06:19-29173]# grep -c "Error while reading shared" backtrace
0

Comment 2 Steeve Goveas 2020-01-09 13:05:48 UTC
Hello,

Can this be fixed in 8.2?

Comment 3 Martin Kutlak 2020-01-15 09:53:55 UTC
(In reply to Steeve Goveas from comment #2)
> Hello,
> 
> Can this be fixed in 8.2?

Hello, 
yes, we have a fix that should solve the issue.

--- 

Pull-request with backported changes that should fix this bugzilla:
https://gitlab.cee.redhat.com/abrt/libreport/merge_requests/27

Comment 9 errata-xmlrpc 2020-04-28 17:04:07 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2020:1917