Bug 642879

Summary: Crash on CTRL-C by ELF stale reference
Product: [Fedora] Fedora Reporter: Benjamin Otte <otte>
Component: gdbAssignee: Jan Kratochvil <jan.kratochvil>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: low    
Version: 14CC: jan.kratochvil, pmuldoon
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard: abrt_hash:098269a94e0185bf109e960fb869939fb699649f
Fixed In Version: gdb-7.2-23.fc14 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2010-10-28 06:07:15 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: 643031    
Bug Blocks:    
Attachments:
Description Flags
File: backtrace none

Description Benjamin Otte 2010-10-14 01:54:22 UTC
abrt version: 1.1.13
architecture: x86_64
Attached file: backtrace
cmdline: gdb shell/.libs/lt-rhythmbox
component: gdb
crash_function: elf_rel_plt_read
executable: /usr/bin/gdb
kernel: 2.6.35.4-28.fc14.x86_64
package: gdb-7.2-22.fc14
rating: 4
reason: Process /usr/bin/gdb was killed by signal 11 (SIGSEGV)
release: Fedora release 14 (Laughlin)
time: 1287019871
uid: 500

comment
-----
Shell output from the gdb run:
lvs@thinkpad:~/cvs/rhythmbox$ gdb shell/.libs/lt-rhythmbox 
GNU gdb (GDB) Fedora (7.2-22.fc14)
Copyright (C) 2010 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".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /home/lvs/cvs/rhythmbox/shell/.libs/lt-rhythmbox...done.
(gdb) r
Starting program: /home/lvs/cvs/rhythmbox/shell/.libs/lt-rhythmbox 
^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^CQuit
Missing separate debuginfos, use: debuginfo-install ORBit2-2.14.19-1.fc14.x86_64 atk-1.32.0-1.fc14.x86_64 gdk-pixbuf2-2.22.0-1.fc14.x86_64 gnome-media-libs-2.32.0-1.fc14.x86_64 gstreamer-plugins-base-0.10.30-2.fc14.x86_64 totem-pl-parser-2.30.4-1.fc14.x86_64
(gdb) b g_log
Breakpoint 1 at 0x403448
(gdb) c
Continuing.
Segmentation fault (core dumped)

How to reproduce
-----
1. yum-builddep rhythmbox
2. Custom-compile rhythmbox on F14
3. run the resulting binary in gdb
4. Realize you forgot to set the breakpoint you wanted
5. ctrl-c madly
6. Set the breakpoint
7. Continue
8. *BOOM*

Comment 1 Benjamin Otte 2010-10-14 01:54:26 UTC
Created attachment 453358 [details]
File: backtrace

Comment 2 Jan Kratochvil 2010-10-14 15:17:15 UTC
Post upstream (in September):
[patch] Fix ELF stale reference [Re: [patch] .gdb_index: Do not crash on NOBITS]
http://sourceware.org/ml/gdb-patches/2010-09/msg00192.html

Many thanks for the "ctrl-c madly" advice, I have seen so far this bug reported by ABRT zillions times, never reproducible!  I was not aware the fix above is useful in the real world.

Comment 3 Fedora Update System 2010-10-14 15:42:33 UTC
gdb-7.2-23.fc14 has been submitted as an update for Fedora 14.
https://admin.fedoraproject.org/updates/gdb-7.2-23.fc14

Comment 4 Fedora Update System 2010-10-15 04:08:16 UTC
gdb-7.2-23.fc14 has been pushed to the Fedora 14 testing repository.  If problems still persist, please make note of it in this bug report.
 If you want to test the update, you can install it with 
 su -c 'yum --enablerepo=updates-testing update gdb'.  You can provide feedback for this update here: https://admin.fedoraproject.org/updates/gdb-7.2-23.fc14

Comment 5 Fedora Update System 2010-10-28 06:06:52 UTC
gdb-7.2-23.fc14 has been pushed to the Fedora 14 stable repository.  If problems still persist, please make note of it in this bug report.