Bug 208435 - gcore command produces empty/corrupted core file
Summary: gcore command produces empty/corrupted core file
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: gdb
Version: rawhide
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Alexandre Oliva
QA Contact:
URL:
Whiteboard:
Depends On: 190128
Blocks:
TreeView+ depends on / blocked
 
Reported: 2006-09-28 15:38 UTC by Jan Kratochvil
Modified: 2007-11-30 22:11 UTC (History)
4 users (show)

Fixed In Version: kernel-xen-2.6.18-1.2731.fc6
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2006-10-15 01:59:55 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Jan Kratochvil 2006-09-28 15:38:46 UTC
Description of problem:
gcore(1) produces core file of about 1.5KB without any dumped memory segments.

Version-Release number of selected component (if applicable):
kernel-2.6.18-1.2693.fc6.i686

How reproducible:
Always.

Steps to Reproduce:
1. /bin/sleep 1h& gcore -o core.sleep $!
2. gdb /bin/sleep core.sleep.*
3. bt

Actual results:
Cannot access memory at address 0xbfd2f748

Expected results:
#0  0xb7ff6402 in ?? ()
#1  0x006338b0 in ?? () from /lib/libc.so.6
...

Additional info:
Problem caused by the kernel Bug 190128.

Comment 1 Jan Kratochvil 2006-10-15 01:59:55 UTC
Kernel got fixed, gcore works again:

Bugfix found to be committed:
  revision 1.2731
  date: 2006/10/03 18:00:26;  author: davej;  state: Exp;  lines: +2 -1
  Fix breakage in /proc/*/smaps access control (#208589)
Verified in:
  kernel-xen-2.6.18-1.2747.fc6.i686



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