Bug 1638989

Summary: gdb crashing
Product: [Fedora] Fedora Reporter: Tomasz Kłoczko <kloczko.tomasz>
Component: gdbAssignee: Sergio Durigan Junior <sergiodj>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: jan.kratochvil, keiths, kevinb, pmuldoon, sergiodj
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-10-13 20:34:05 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 Tomasz Kłoczko 2018-10-13 20:10:40 UTC
For example during bash build:

+ /usr/lib/rpm/find-debuginfo.sh -j4 --strict-build-id -m -i --build-id-seed 4.4.23-6.fc30 --unique-debug-suffix -4.4.23-6.fc30.x86_64 --unique-debug-src-base bash-4.4.23-6.fc30.x86_64 --run-dwz --dwz-low-mem-die-limit 10000000 --dwz-max-die-limit 110000000 -S debugsourcefiles.list /home/tkloczko/rpmbuild/BUILD/bash-4.4
explicitly decompress any DWARF compressed ELF sections in /home/tkloczko/rpmbuild/BUILDROOT/bash-4.4.23-6.fc30.x86_64/usr/bin/bash
extracting debug info from /home/tkloczko/rpmbuild/BUILDROOT/bash-4.4.23-6.fc30.x86_64/usr/bin/bash

Tryiing to debug core file:

# file core.gdb.1000.33d83b83743f48789cde7ca7640ea572.9471.1539461127000000 
core.gdb.1000.33d83b83743f48789cde7ca7640ea572.9471.1539461127000000: ELF 64-bit LSB core file, x86-64, version 1 (SYSV), SVR4-style, from 'gdb --batch -nx -iex set auto-load no -ex file /home/tkloczko/rpmbuild/BUILDROO', real uid: 1000, effective uid: 1000, real gid: 1000, effective gid: 1000, execfn: '/usr/bin/gdb', platform: 'x86_64'

# file core.gdb.1000.33d83b83743f48789cde7ca7640ea572.9471.1539461127000000 
core.gdb.1000.33d83b83743f48789cde7ca7640ea572.9471.1539461127000000: ELF 64-bit LSB core file, x86-64, version 1 (SYSV), SVR4-style, from 'gdb --batch -nx -iex set auto-load no -ex file /home/tkloczko/rpmbuild/BUILDROO', real uid: 1000, effective uid: 1000, real gid: 1000, effective gid: 1000, execfn: '/usr/bin/gdb', platform: 'x86_64'

[root@domek coredump]# gdb -c core.gdb.1000.33d83b83743f48789cde7ca7640ea572.9471.1539461127000000 
GNU gdb (GDB) Fedora 8.2.50.20181006-4.fc30
Copyright (C) 2018 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".
[New LWP 9471]
[New LWP 9473]
[New LWP 9472]
[New LWP 9474]
Reading symbols from /usr/libexec/gdb...
Reading symbols from /usr/lib/debug/usr/libexec/gdb-8.2.50.20181006-4.fc30.x86_64.debug...

warning: Ignoring non-absolute filename: <linux-vdso.so.1>
Missing separate debuginfo for linux-vdso.so.1
Try: dnf --enablerepo='*debug*' install /usr/lib/debug/.build-id/12/945ae11e145cbdf017b8c26a423fc4f013cab7

warning: Loadable section ".note.gnu.property" outside of ELF segments
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib64/libthread_db.so.1".

warning: Loadable section ".note.gnu.property" outside of ELF segments

warning: Loadable section ".note.gnu.property" outside of ELF segments

warning: Loadable section ".note.gnu.property" outside of ELF segments

warning: Loadable section ".note.gnu.property" outside of ELF segments

warning: Loadable section ".note.gnu.property" outside of ELF segments

warning: Loadable section ".note.gnu.property" outside of ELF segments

warning: Loadable section ".note.gnu.property" outside of ELF segments

warning: Loadable section ".note.gnu.property" outside of ELF segments
Core was generated by `gdb --batch -nx -iex set auto-load no -ex file /home/tkloczko/rpmbuild/BUILDROO'.
Program terminated with signal SIGSEGV, Segmentation fault.
Segmentation fault (core dumped)

Comment 1 Sergio Durigan Junior 2018-10-13 20:34:05 UTC
Thanks for the report.  This bug is already being tracked by Bug 1638798.  I'm closing this one as a duplicate.  Feel free to follow the progress there.

*** This bug has been marked as a duplicate of bug 1638798 ***