Bug 581215

Summary: Segmentation fault in gdb when debugging firefox
Product: [Fedora] Fedora Reporter: Joachim Backes <joachim.backes>
Component: gdbAssignee: Jan Kratochvil <jan.kratochvil>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: low    
Version: 13CC: jan.kratochvil, jlaska, meyering, pmuldoon
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: gdb-7.1-12.fc13 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2010-04-13 02:04:04 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:

Description Joachim Backes 2010-04-11 05:47:13 UTC
Description of problem:
When running firefox in gdb, gdb crashes with segmentaion fault

Version-Release number of selected component (if applicable):
gdb-7.1-9.fc13.i686

How reproducible:
Always

Steps to Reproduce:
1.gdb firefox
2.

3.
  
Actual results:
GNU gdb (GDB) Fedora (7.1-9.fc13)
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 "i686-redhat-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Segmentation fault (core dumped)

Expected results:


Additional info:

1. I tested this with firefox-3.6.3-2.fc13.i686

2. gdb gdb, then run firefox inside gdb

gdb gdb
========
GNU gdb (GDB) Fedora (7.1-9.fc13)
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 "i686-redhat-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /usr/bin/gdb...(no debugging symbols found)...done.
Missing separate debuginfos, use: debuginfo-install gdb-7.1-9.fc13.i686
(gdb) run firefox
===================
Starting program: /usr/bin/gdb firefox
[Thread debugging using libthread_db enabled]
Detaching after fork from child process 2731.
GNU gdb (GDB) Fedora (7.1-9.fc13)
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 "i686-redhat-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...

Program received signal SIGSEGV, Segmentation fault.
0x0826ad50 in bfd_check_format_matches ()

bt
====
#0  0x0826ad50 in bfd_check_format_matches ()
#1  0x0826b151 in bfd_check_format ()
#2  0x08086b55 in exec_file_attach ()
#3  0x0808417c in ?? ()
#4  0x081931fa in catch_command_errors ()
#5  0x08084de6 in ?? ()
#6  0x0819328d in catch_errors ()
#7  0x08084013 in gdb_main ()
#8  0x08083fca in main ()

Comment 1 Jan Kratochvil 2010-04-11 21:33:57 UTC
Stupid bug (of mine, just in the Fedora branch), thanks!

FYI it is due to /usr/bin/firefox is a script but you probably already know.
It has some -g|--debug support option.

Comment 2 Fedora Update System 2010-04-11 21:40:32 UTC
gdb-7.1-12.fc13 has been submitted as an update for Fedora 13.
http://admin.fedoraproject.org/updates/gdb-7.1-12.fc13

Comment 3 Fedora Update System 2010-04-13 02:03:51 UTC
gdb-7.1-12.fc13 has been pushed to the Fedora 13 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 4 Jan Kratochvil 2010-04-13 11:44:52 UTC
*** Bug 581831 has been marked as a duplicate of this bug. ***

Comment 5 Jan Kratochvil 2010-04-13 16:24:10 UTC
*** Bug 581866 has been marked as a duplicate of this bug. ***