Bug 69671 - incorrect manpage for ptrace
incorrect manpage for ptrace
Product: Red Hat Linux
Classification: Retired
Component: man-pages (Show other bugs)
i686 Linux
medium Severity medium
: ---
: ---
Assigned To: Trond Eivind Glomsrxd
Ben Levenson
Depends On:
  Show dependency treegraph
Reported: 2002-07-24 07:41 EDT by Need Real Name
Modified: 2007-04-18 12:44 EDT (History)
1 user (show)

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

Attachments (Terms of Use)

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

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:

Steps to Reproduce:
1. man ptrace

Additional info:
Comment 1 Trond Eivind Glomsrxd 2002-07-24 12:37:23 EDT
Jakub: Is the above description of ptrace correct?
Comment 2 Jakub Jelinek 2002-07-24 16:06:52 EDT
Yes, but it has been fixed in the man page a few months ago:
              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.