delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/07/04/11:32:20

Date: Tue, 4 Jul 2000 21:17:57 +0600 (LKT)
From: Kalum Somaratna aka Grendel <kalum AT lintux DOT cx>
X-Sender: kalum AT roadrunner DOT grendel DOT net
To: djgpp AT delorie DOT com
Subject: Re: Where can I get a Thread safe malloc debugger?
In-Reply-To: <Pine.SUN.3.91.1000704081746.818A-100000@is>
Message-ID: <Pine.LNX.4.21.0007042115050.1185-100000@roadrunner.grendel.net>
MIME-Version: 1.0
Reply-To: djgpp AT delorie DOT com
Errors-To: nobody AT delorie DOT com
X-Mailing-List: djgpp AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

On Tue, 4 Jul 2000, The awesome and feared Eli Zaretskii commented thusly,

> 
> On 3 Jul 2000, Nate Eldredge wrote:
> 
> > No, they really are the same thing.  Trust me ;-).  Both of them call
> > mprotect(...,PROT_NONE).  This causes one or more pages to be unmapped
> > from the process's address space.  But neither use any more elaborate
> > "protection" than this.
> 
> I might be mistaken (I looked at efence a long time ago), but I think it 
> also requires mmap and /dev/zero.

Yes you are correct Eli, the Efence README says so in fact...

"It will probably port to any ANSI/POSIX system that provides mmap(), and
mprotect(), as long as mprotect() has the capability to turn off all
access to a memory page, and mmap() can use /dev/zero or the MAP_ANONYMOUS
flag to create virtual memory pages."

What does this /dev/zero mean, I would be greatful if anyone could
elaborate..does it have any relation to /dev/null..unlikely though... 

Grendel


Hi, I'm a signature virus. plz set me as your signature and help me spread
:)

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019