Bug 69671 - incorrect manpage for ptrace
Summary: incorrect manpage for ptrace
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: man-pages   
(Show other bugs)
Version: 7.2
Hardware: i686
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Trond Eivind Glomsrxd
QA Contact: Ben Levenson
URL:
Whiteboard:
Keywords:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2002-07-24 11:41 UTC by Need Real Name
Modified: 2007-04-18 16:44 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2002-07-24 16:37:29 UTC
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

Description Need Real Name 2002-07-24 11:41:43 UTC
From Bugzilla Helper:
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 4.0; ZDNetIndia.com 
browser)

Description of problem:
I think this is a problem with ptrace man page on all linux distributions. The 
man page says for POKE_* , "copies a word from location data", when in fact it 
copies the data.
i.e. say I want to write 100 to a particular address using ptrace, according to 
the man page I should be using:

int val = 100;
ptrace(PTRACE_POKEDATA, pid, addr, &val);

This doesn't work, what works is
int val = 100;
ptrace(PTRACE_POKEDATA, pid, addr, val);

Please fix the manpage for ptrace.

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


How reproducible:
Always

Steps to Reproduce:
1. man ptrace
2.
3.
	

Additional info:

Comment 1 Trond Eivind Glomsrxd 2002-07-24 16:37:23 UTC
Jakub: Is the above description of ptrace correct?

Comment 2 Jakub Jelinek 2002-07-24 20:06:52 UTC
Yes, but it has been fixed in the man page a few months ago:
       PTRACE_POKETEXT, PTRACE_POKEDATA
              Copies the word data to location addr in the child's memory.  As above, the  two  requests  are  cur-
              rently equivalent.


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