Bug 1429598

Summary: warning: Invalid entry in .debug_gdb_scripts section
Product: [Fedora] Fedora Reporter: Igor Gnatenko <ignatenko>
Component: gdbAssignee: Jan Kratochvil <jan.kratochvil>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: gbenson, ignatenko, jan.kratochvil, jistone, palves, pmuldoon, rust-sig, sergiodj, TicoTimo, tom
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-03-29 20:03:10 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 Igor Gnatenko 2017-03-06 16:35:32 UTC
[brain@ignatenko-w541 ripgrep]$ rust-gdb rg
GNU gdb (GDB) Fedora 7.12.50.20170226-4.fc27
Copyright (C) 2017 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 "x86_64-redhat-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from rg...Reading symbols from /usr/lib/debug/usr/bin/rg.debug...done.
done.
warning: Invalid entry in .debug_gdb_scripts section

Comment 1 Josh Stone 2017-03-15 22:28:38 UTC
As far as I can tell, the script is still loaded fine.

(gdb) info auto-load python-scripts
Loaded  Script
Yes     gdb_load_rust_pretty_printers.py
        full name: /usr/lib/rustlib/etc/gdb_load_rust_pretty_printers.py


Jan Kratochvil told me that GDB is complaining because that section is marked NOBITS, which he thought was a bug in GDB.

Comment 2 Jan Kratochvil 2017-03-16 16:39:37 UTC
https://sourceware.org/ml/gdb-patches/2017-03/msg00263.html
[patch] Fix warning: Invalid entry in .debug_gdb_scripts section

Comment 3 Jan Kratochvil 2017-03-29 20:03:10 UTC
It is now checked in upstream.  It will get to F-26 after the next rebase.
https://sourceware.org/ml/gdb-patches/2017-03/msg00512.html