www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/07/03/16:16:36

From: Nate Eldredge <neldredge AT hmc DOT edu>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Where can I get a Thread safe malloc debugger?
Date: 03 Jul 2000 12:58:42 -0700
Organization: Posted via Supernews, http://www.supernews.com
Lines: 36
Sender: nate AT mercury DOT bitbucket
Message-ID: <83puovugst.fsf@mercury.bitbucket>
References: <Pine DOT LNX DOT 4 DOT 21 DOT 0007032116010 DOT 1524-100000 AT roadrunner DOT grendel DOT net>
X-Complaints-To: newsabuse AT supernews DOT com
User-Agent: Gnus/5.0802 (Gnus v5.8.2) Emacs/20.5
MIME-Version: 1.0
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Kalum Somaratna aka Grendel <kalum AT lintux DOT cx> writes:

> On 2 Jul 2000, The awesome and feared Nate Eldredge commented thusly,
> 
> > Unfortunately YAMD is not thread safe currently (at least I have not
> > tried to make it so).
> 
> Hmm..I think you should make the effort Nate...It's pretty good stuff IMHO
> but unfortunately currently I need a thread safe one..so I guess I'll have
> to go after MSS..

Yes, thread-safety is on the TODO list.  The main problem is that I
haven't any experience with threads, so I need to educate myself.
After that I think it won't be much more than adding locks in a few
places.

> 
> BTW there is a good debugger called Electric Fence for Linux...I wonder
> wether it's technique would work under DJGPP..heres a quote from it's
> README...
> 
> "Electric Fence is a different kind of malloc() debugger. It uses the
> virtual memory hardware of your system to detect when software overruns
> the boundaries of a malloc() buffer. It will also detect any accesses of
> memory that has been released by free(). Because it uses the VM hardware
> for detection, Electric Fence stops your program on the first instruction
> that causes a bounds violation. It's then trivial to use a debugger to
> display the offending statement."

This is just what YAMD does, but YAMD also does more bookkeeping, and
has some other useful features as well (IMHO of course :)

-- 

Nate Eldredge
neldredge AT hmc DOT edu

- Raw text -


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