Bug 138977 - warning is shown when "gcore" command run on RHEL4
Summary: warning is shown when "gcore" command run on RHEL4
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Enterprise Linux 4
Classification: Red Hat
Component: kernel
Version: 4.0
Hardware: ia64
OS: Linux
medium
medium
Target Milestone: ---
: ---
Assignee: Jason Baron
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2004-11-12 11:07 UTC by L3support
Modified: 2013-03-06 05:58 UTC (History)
8 users (show)

Fixed In Version: RHEL4 U2
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2005-11-15 23:05:12 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
Sample test used to create strace attachment (75 bytes, application/octet-stream)
2005-01-24 22:17 UTC, Jeff Johnston
no flags Details
Gdb command file used when creating strace output (17 bytes, application/octet-stream)
2005-01-24 22:18 UTC, Jeff Johnston
no flags Details
Strace of gdb running gcore command (2.41 MB, application/octet-stream)
2005-01-24 22:19 UTC, Jeff Johnston
no flags Details
Maps file for process that caused problem with gcore (863 bytes, text/plain)
2005-01-24 22:20 UTC, Jeff Johnston
no flags Details

Description L3support 2004-11-12 11:07:57 UTC
Description of problem:

The following warning is shown,
when we run "gcore" command on RHEL4.

warning: Memory read failed for corefile section, 16384 bytes at
0x0000000000000000

The warning is not shown,
when we run "gcore" command on RHEL3.

What should we do to the warning ?

Can we have how to aboid to the warning ?

Version-Release number of selected component (if applicable):


How reproducible:
Always

Steps to Reproduce:

1.ps -ef
2.gcore (PID)
  -- PID: I selected PID that UID is demon and CMD is "/usr/sbin/atd".

Actual results:
warning: Memory read failed for corefile section, 16384 bytes at
0x0000000000000000


Expected results:

 - What should we do to the warning ?
 - Can we have how to aboid to the warning ?

Additional info:

Comment 2 L3support 2004-11-26 05:16:34 UTC
Could you tell me status of this problem ?

Comment 3 L3support 2004-12-13 06:33:04 UTC
We'd like to know status of problem.

Comment 4 L3support 2005-01-05 06:44:02 UTC
We'd like to know status of problem.

Comment 5 RHEL4-L3support 2005-01-19 02:04:05 UTC
Add RHEL4-L3support team in Japan

Comment 7 Jeff Johnston 2005-01-24 22:14:22 UTC
Bug is being moved to kernel group for assistance.  Gdb is getting an error back
from reading memory at 00000000-00004000 which is the first entry in the "maps"
file for the process.  The storage is marked readable but the PTRACE call to
read this storage results in an EIO failure as detailed in the strace output I
am attaching.  I created the result by running the debugger on a simple hello
world program, stopping in main, and issuing gcore.  For the kernel folks, the
failure can be reproduced by running as follows:

gcc -g test.c
gdb -x t.x a.out

I have tried multiple versions of gdb, but they all result in the warning due to
the failed PTRACE read.

Comment 8 Jeff Johnston 2005-01-24 22:17:18 UTC
Created attachment 110165 [details]
Sample test used to create strace attachment

Comment 9 Jeff Johnston 2005-01-24 22:18:12 UTC
Created attachment 110166 [details]
Gdb command file used when creating strace output

Comment 10 Jeff Johnston 2005-01-24 22:19:13 UTC
Created attachment 110167 [details]
Strace of gdb running gcore command

Comment 11 Jeff Johnston 2005-01-24 22:20:07 UTC
Created attachment 110168 [details]
Maps file for process that caused problem with gcore

Comment 14 Issue Tracker 2005-02-17 20:58:36 UTC
From User-Agent: XML-RPC

As the corefile is being created properly without that piece of storage in
it, and the message shown is just a warning, and is not actually causing
any failure this issue/BZ is being closed as 'not a bug'.



If there is some other reason this is causing a problem, please re-open
this issue tracker with the appropriate information and details as well as
priority. 



 




Internal Status set to 'Resolved'
Status set to: Closed by Tech

Resolution set to: 'NotABug'

This event sent from IssueTracker by halligan
 issue 66082

Comment 18 Jeff Johnston 2005-04-21 20:07:54 UTC
I have reviewed the patch from Fujitsu.  I have modified it only slightly for
formatting and have built it into gdb-6.3.0.0-1.13

Comment 29 Jeff Johnston 2005-07-28 15:51:02 UTC
This has been fixed as of gdb-6.3.0.0-1.14

Comment 32 Jeff Johnston 2005-11-15 23:05:12 UTC
Customer has confirmed fix.


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