Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
From: Shaw Terwilliger <sterwill@dogbert.advancenet.net>
To: Tom Browder <tom2@fwb.asi.srs.com>
Cc: axp-list@redhat.com
Subject: Re: Re: Alpha Numerical Rant
Date: Wed, 24 Mar 1999 16:49:21 -0600	[thread overview]
Message-ID: <19990324164921.A16848@dogbert.io.nu> (raw)
In-Reply-To: <01be7642$1c8eeb00$cb01000a@tomtom2.asi-fwb.com>; from Tom Browder on Wed, Mar 24, 1999 at 04:03:13PM -0600

On Wed, Mar 24, 1999 at 04:03:13PM -0600, Tom Browder wrote:
> Greg, I'm sure you are correct: it's probably a memory overwrite bug--
> isn't there a free bounds checker out there for C++ (checkers?).  
> I know about dmalloc for C.

Try Electric Fence, an old tool by Bruce Perens.  While
it's nowhere near as extensive a tool as say Bounds Checker,
it will almost always catch an errant write to memory you don't
own, or a double free() or delete, etc.  I'm not sure where
the latest version is, but it doesn't require any code
changes.  Just recompile and link with -lefence and it'll
use its own special malloc().  Run your program in gdb (and
grab 4.17 if you don't have it; it's about 2 whole years newer
than 4.16) and your program should throw a signal right when
memory is getting stomped on.

-- 
Shaw Terwilliger (twig@advancenet.net)


      reply	other threads:[~1999-03-24 23:00 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-03-24 22:03 Re: Alpha Numerical Rant Tom Browder
1999-03-24 22:49 ` Shaw Terwilliger [this message]
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox