Usenet comp.sys.dec (1990-2013)
 help / color / mirror / Atom feed
From: Roland Kruse <Roland.Kruse@efi.sintef.no>
Cc: rk
Subject: Re: Purify-like debugger for DEC Alpha
Date: 1996/06/14	[thread overview]
Message-ID: <31C135BA.2367@efi.sintef.no> (raw)
In-Reply-To: skuohmn1vcx.fsf@venus.pa.dec.com


Arun Sharma wrote:
> 
> On Wed, 12 Jun 1996 15:57:48 GMT, William R Pearson wrote:
> 
>         Bill> I am trying to track down a memory heap corruption
>         Bill> problem, and have been very impressed with the Purify
>         Bill> product.  Unfortunately, it does not run on DEC Alpha's
>         Bill> (only Suns, SGI's, and HP's)
> 
>         Bill> Any suggestions on a Purify-like product that identifies
>         Bill> all memory references outside allocation bounds for the
>         Bill> Alpha?
> 
> Take a look at ATOM. man atom should tell you more.

Tried that, all it told me was "There is not an entry for atom."
(we have Digital Unix V3.2).

I would be interested in more info on this product.

In lack of Purify, we have tried the malloc debuggers Dmalloc and
ElectricFence on Alpha. While both these products work, they are
far from as effective as Purify. The main problem with both these
products is that they abort the program at the *first* heap reference
error. Then you have to fix that, recompile, re-link, and run it
again... and if you're out of luck the first error occurs in third-
party code for which you don't have the source...

Here is an informal evaluation of these products, using Purify as
reference. Both ElectricFence and Dmalloc are freely available from
various sources.

Error type/
property               Purify          ElectricFence     Dmalloc
---------------------------------------------------------------------
Array bounds write     Yes             Yes               Yes
Array bounds read      Yes             Yes               No 
Free non-heap memory   Yes             Yes               Yes
Free memory write      Yes             Yes               Partially
Free memory read       Yes             Yes               No 
Uninitialized mem read Yes             No                No 
malloc(0)              Yes (?)         Optional          Optional
free(NULL)             Yes (?)         Yes(?)            Optional
Check auto variables   Yes             No                No 
Log file               Yes             No                Yes
Backtrace              Yes             No                No 
Memory overhead        Moderate        High              Moderate
CPU overhead           Moderate        High              Variable
                                                         (Configurable)
Disk overhead          Large           Small             Small
User interface         Superb GUI      use debugger      use debugger
Configurability        Excellent       Limited           Good
Instrumenting          link-time       link-time         link-time
                                                         + optionally
                                                         compile-time
---------------------------------------------------------------------

While this table might give the impression that ElectricFence is
the better of these products, this is not entirely the case, because
its implementation, using separate memory segments for each malloc'ed
block, prohibits its use in programs using malloc/free much, including
all X/Motif-based GUI programs. Most of our programs are this
category, and I found Dmalloc most useful.

Roland Kruse
Roland.Kruse@efi.sintef.no



  reply	other threads:[~1996-06-14  4:00 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1996-06-12  4:00 Purify-like debugger for DEC Alpha William R. Pearson
1996-06-13  4:00 ` Arun Sharma
1996-06-14  4:00   ` Roland Kruse [this message]
1996-06-13  4:00 ` Frithjof Kruggel
1996-06-14  4:00 ` Juerg Staub
1996-06-14  4:00 ` Thomas Leitner
1996-06-17  4:00 ` Dirk Grunwald
1996-06-18  4:00   ` Peter Kaiser
1996-06-20  4:00     ` Jeffrey Mogul
1996-06-17  4:00 ` Rod Burman
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