strace BROKEN since 1.3.96

Martin Pirker (pirker@eiunix.tuwien.ac.at)
Fri, 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.