Bug 208435

Summary: gcore command produces empty/corrupted core file
Product: [Fedora] Fedora Reporter: Jan Kratochvil <jan.kratochvil>
Component: gdbAssignee: Alexandre Oliva <aoliva>
Status: CLOSED RAWHIDE QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: rawhideCC: aoliva, cagney, jan.kratochvil, pmuldoon
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: kernel-xen-2.6.18-1.2731.fc6 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2006-10-15 01:59:55 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: 190128    
Bug Blocks:    

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