From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 3026 invoked from network); 24 Mar 1999 23:00:40 -0000 Received: from mail.redhat.com (199.183.24.239) by lists.redhat.com with SMTP; 24 Mar 1999 23:00:39 -0000 Received: from io.nu (qmailr@dogbert.advancenet.net [209.44.30.54]) by mail.redhat.com (8.8.7/8.8.7) with SMTP id RAA26078 for ; Wed, 24 Mar 1999 17:47:13 -0500 Received: (qmail 16857 invoked by uid 1000); 24 Mar 1999 22:49:21 -0000 Date: Wed, 24 Mar 1999 16:49:21 -0600 From: Shaw Terwilliger To: Tom Browder Cc: axp-list@redhat.com Subject: Re: Re: Alpha Numerical Rant Message-ID: <19990324164921.A16848@dogbert.io.nu> References: <01be7642$1c8eeb00$cb01000a@tomtom2.asi-fwb.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.95.4us 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)