Bug 1680765 - glibc: debuginfo does not have .gdb_index (gdb-add-index)
Summary: glibc: debuginfo does not have .gdb_index (gdb-add-index)
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: glibc
Version: rawhide
Hardware: x86_64
OS: Linux
unspecified
unspecified
Target Milestone: ---
Assignee: DJ Delorie
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On: 1612448
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-02-25 14:44 UTC by Carlos O'Donell
Modified: 2019-03-02 06:50 UTC (History)
13 users (show)

Fixed In Version: glibc-2.29.9000-3.fc31
Doc Type: If docs needed, set a value
Doc Text:
Clone Of: 1612448
Environment:
Last Closed: 2019-03-02 06:50:24 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

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


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