Bug 632247

Summary: gdb crashes while loading coredump file.
Product: [Fedora] Fedora Reporter: Masami Ichikawa <masami256>
Component: gdbAssignee: Jan Kratochvil <jan.kratochvil>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: low    
Version: 14CC: jan.kratochvil, pmuldoon
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2010-09-09 14:14:38 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:
Attachments:
Description Flags
gdb log. none

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 ***