Bug 1680765

Summary: glibc: debuginfo does not have .gdb_index (gdb-add-index)
Product: [Fedora] Fedora Reporter: Carlos O'Donell <codonell>
Component: glibcAssignee: DJ Delorie <dj>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: aoliva, arjun.is, ashankar, codonell, dj, fweimer, glibc-bugzilla, jan.kratochvil, law, mfabian, mnewsome, pfrankli, siddhesh
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: glibc-2.29.9000-3.fc31 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 1612448 Environment:
Last Closed: 2019-03-02 06:50:24 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: 1612448    
Bug Blocks:    

Description Carlos O'Donell 2019-02-25 14:44:05 UTC
+++ This bug was initially created as a clone of Bug #1612448 +++

Description of problem:
glibc is using custom debuginfo generation but it does not run gdb-add-index like /usr/lib/rpm/find-debuginfo.sh does. Therefore glibc-debuginfo is missing .gdb_index.

Version-Release number of selected component (if applicable):
glibc-debuginfo-2.27-30.fc28.x86_64

How reproducible:
Always

Steps to Reproduce:
dnf debuginfo-install glibc
time gdb -batch /lib64/libc.so.6

Actual results:
real	0m0.204s

Expected results:
real	0m0.119s
One can get this result after:
  gdb-add-index /usr/lib/debug/lib64/libc-2.27.so.debug
  readelf -S $PWD/libc-2.27.so.debug|grep -w gdb_index
  [80] .gdb_index        PROGBITS         0000000000000000  00f6a777

Additional info:
It is sure not such a big deal but given glibc is loaded with any program it is a needless slowdown by 0.1s of any debugging.

Comment 1 Carlos O'Donell 2019-02-26 14:07:27 UTC
DJ,

Could you please look into fixing this in Fedora Rawhide?

Comment 2 DJ Delorie 2019-03-02 06:50:24 UTC
Fixed.  find-debuginfo.sh used to always include the index, now you must pass -i