home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / sys / sgi / 18075 < prev    next >
Encoding:
Text File  |  1992-12-16  |  1.1 KB  |  27 lines

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