Bug 632247 - gdb crashes while loading coredump file.
Summary: gdb crashes while loading coredump file.
Keywords:
Status: CLOSED DUPLICATE of bug 631575
Alias: None
Product: Fedora
Classification: Fedora
Component: gdb
Version: 14
Hardware: All
OS: Linux
low
medium
Target Milestone: ---
Assignee: Jan Kratochvil
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2010-09-09 13:59 UTC by Masami Ichikawa
Modified: 2010-09-09 14:14 UTC (History)
2 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2010-09-09 14:14:38 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
gdb log. (15.44 KB, text/plain)
2010-09-09 13:59 UTC, Masami Ichikawa
no flags Details

Description Masami Ichikawa 2010-09-09 13:59:08 UTC
Created attachment 446252 [details]
gdb log.

Description of problem:
gdb crashes while loading coredump file.
This is the log.

[masami@f14test ~]$ gdb /usr/bin/gnome-panel
GNU gdb (GDB) Fedora (7.2-1.fc14)
>>>snip<<<<
Reading symbols from /usr/bin/gnome-panel...(no debugging symbols found)...done.
Missing separate debuginfos, use: debuginfo-install gnome-panel-2.31.90-1.fc14.i686
(gdb) set debug-file-directory /usr/lib/debug:/var/cache/abrt-di/usr/lib/debug
(gdb) core-file /var/spool/abrt/ccpp-1284036556-2226/coredump
[New Thread 2226]
[New Thread 2229]
Reading symbols from /usr/lib/libSM.so.6...Reading symbols from /var/cache/abrt-di/usr/lib/debug/.build-id/22/311d5b61996ea91c4c1f0b2e1ad5405599cce6.debug...done.
done.
Loaded symbols for /usr/lib/libSM.so.6
>>>snip<<<<
symbols:
Dwarf Error: Can't read DWARF data from '/usr/lib/debug/lib/libutil-2.12.90.so.debug'
Reading symbols from /usr/lib/gio/modules/libgvfsdbus.so...Reading symbols from /var/cache/abrt-di/usr/lib/debug/.build-id/80/3dcf446ddfca6bc21d0080afa1ecdbee109365.debug...done.
done.
Loaded symbols for /usr/lib/gio/modules/libgvfsdbus.so
Reading symbols from /lib/libudev.so.0.9.1...Reading symbols from /usr/lib/debug/lib/libudev.so.0.9.1.debug...done.
done.
Loaded symbols for /lib/libudev.so.0.9.1
Segmentation fault (core dumped)

Version-Release number of selected component (if applicable):
7.2-1.fc14

How reproducible:
If you log out gnome desktop, gnome-panel might crash. if you got the crash, run Abort to collect crash infomation then abort reports gdb has crashed.
After that I can reproduce without Abort.

Steps to Reproduce:
precondition:
You should have gnome-panel's coredump file.
1.Run gdb 
 gdb /usr/bin/gnome-panel
2.Run this command. 
 set debug-file-directory /usr/lib/debug:/var/cache/abrt-di/usr/lib/debug
3.Read corefile
 core-file /var/spool/abrt/ccpp-XXXXXXXXXX-XXXX/coredump
  
Actual results:
Read coredump file without crash.

Expected results:
gdb crashes.

Additional info:
I wrote simple program such as following c code. That code will crash and give coredump file to test gdb. When I run gdb and read corefile, gdb didn't crash.  

#include <string.h>

int main(int argc, char **argv)
{
	strcpy(NULL, argv[0]);
	return 0;
}

Comment 1 Jan Kratochvil 2010-09-09 14:14:38 UTC

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


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