🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.sun
Article #12243

Trying to get saddr, scode, and smask from ptrace

#12243
From: Benson Margulies
Date: Tue, 25 Apr 1989 23:17
14 lines
951 bytes
I want to see the signal code and saved mask for a ptraced child stopped
on a signal.

So I coded up calls to ptrace to read the apparently appropriate slots
from the u area, via PTRACE_PEEKUSER. I used the offset of those slots in
the uarea as my "addr" argument to ptrace.

I got garbage.

Are these overwritten by this point? Is there something I don't know?

(All in Sunos4.0.1, on sun3's)
-- 
Benson I. Margulies
Technical Details
Message-ID: <297@odi.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!cornell!uw-beaver!rice!sun-spots-request

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!cornell!uw-beaver!rice!sun-spots-request
From: odi!benson@uunet.uu.net (Benson Margulies)
Newsgroups: comp.sys.sun
Subject: Trying to get saddr, scode, and smask from ptrace
Keywords: SunOS
Message-ID: <297@odi.UUCP>
Date: 25 Apr 89 23:17:41 GMT
Sender: usenet@rice.edu
Organization: Object Design Inc., Burlington, MA
Lines: 14
Approved: Sun-Spots@rice.edu
Original-Date: 11 Apr 89 13:22:33 GMT
X-Sun-Spots-Digest: Volume 7, Issue 248, message 11 of 13