lkml.org 
[lkml]   [1996]   [May]   [4]   [last100]   RSS Feed
Views: [more markup]  [less markup]  [headers]  [forward] 
 
Messages in this thread
/
FromMartin Pirker <>
Subjectstrace BROKEN since 1.3.96
DateFri, 3 May 1996 12:09:59 +0100 (MESZ)
Hi!

Kernel 1.3.96 breaks strace-3.0.8, because strace
reads "/proc/<pid>/mem" to access a tasks memory.

Reading this file seems to be no longer permitted,
except for the task <pid> itself.

What access method for the data segment of a process should we use?

As a quick fix I copied the oldway for SUNOS4, using request
PTRACE_PEEKDATA for ptrace (function "umoven" in file "util.c").

Surprisingly it works!

-- 
Martin Pirker <pirker@eiunix.tuwien.ac.at>
Vienna University of Technology, Austria
Computer Graphics Dept.


\
 
 \ /
  Last update: 2005-03-22 13:37    [from the cache]
©2003-2008