home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.sgi
- Path: sparky!uunet!well!moon!pixar!news
- From: Bruce@Pixar.com (Bruce Perens)
- Subject: Implementing a red-zone malloc debugger - need to invalidate a single page
- Message-ID: <1992Dec16.034504.6476@pixar.com>
- Sender: news@pixar.com (Usenet Newsmaster)
- Nntp-Posting-Host: kvetch.pixar.com
- Organization: Pixar -- Point Richmond, California
- Distribution: usa
- Date: Wed, 16 Dec 1992 03:45:04 GMT
- Lines: 14
-
- I have a red-zone malloc debugger called Electric Fence that I wrote
- for the Sun a while back. To port it to the SGI, I need to be able to
- turn off all of the privileges on a page so that any reference
- to that page will cause a fault. I've tried all of the obvious ways
- to do this with mmap(), to no avail - mmap() won't map page-sized
- abutting regions, and it won't map a page without at least read privilege.
- What I really need is something that acts like the Sun mprotect() system
- call. Is there an implementation of this on the SGI? Failing that, is
- there anything that color-codes memory references for debugging like
- the Purify software for the Sun?
- Many Thanks
-
- Bruce Perens
- Pixar
-