Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
From: grunwald@foobar.cs.colorado.edu (Dirk Grunwald)
Subject: Re: What/Where is Third Degree
Date: 1995/05/26	[thread overview]
Message-ID: <GRUNWALD.95May26172137@foobar.cs.colorado.edu> (raw)
In-Reply-To: 3q221n$o6b@fermat.mayo.edu


You need to install the ATOM application development kit. I think this
is on the "complimentary products" CDrom. Install that kid using
'setld' and you should be ready.

3rd Degree is more like 'Purify' than a debugging malloc. It modifies
your program such that all memory references are checked. The checks
indicate if you read memory before writing it, access dead objects
(dangling pointer), access beyond an object boundary, and so on.

Here's a man page describing third degree.



third(1)                                                             third(1)



NAME
   3rd - memory checker and leak finder (a-la-Purify)


DESCRIPTION

  Does your C or C++ program behave unpredictably, have storage leaks or use
  too much memory? Give it the Third Degree!

  Third Degree is similar to but better than commercial programs like Purify
  and Sentinel which do not run on Alpha. It performs memory access checks
  and memory leak detection of C and C++ programs at run-time. The instru-
  mented application is larger than the original application, runs exactly
  like it --just slower-- and in addition logs all errors and requested
  reports.

  This instrumented program locates most occurrences of the worst types of
  bugs in C/C++ programs: array overflows, memory smashing and malloc/free
  errors. It also helps figure out the allocation habits of your application
  by listing the heap and finding memory leaks.

  For example, a program trying to free the same object twice results in:

  ---------------------------------------- pid=3878 --- fof ---- 3 --
  Freeing already freed memory in heap at 0x140038010
    at byte 0 of 32-byte block at 0x140038010
    - main                                         ex.c, line 21

  This block was allocated by malloc at
    - Booboo                                       ex.c, line 10
    - main                                         ex.c, line 20

  This block was freed at
    - Booboo                                       ex.c, line 14
    - main                                         ex.c, line 20

  Third Degree may be used from the atom(1) command line, or invoked from a
  makefile.  Refer to the atomtools(5) man page or the manual
  /usr/lib/atom/doc/3rd.ps.


FILES

  prog.3rd - instrumented version of prog
  prog.3log - log of memory errors, leaks, and other reports
   .3rd - customization file for 3rd


SEE ALSO

  atom(1), atomtools(5)
  /usr/lib/atom/doc/3rd.ps












      parent reply	other threads:[~1995-05-26  4:00 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1995-05-25  4:00 What/Where is Third Degree Andrew Staniszewski
1995-05-26  4:00 ` David Metsky
1995-05-26  4:00   ` John Stoffel
1995-05-30  4:00     ` Greg Lueck Development Environment
1995-06-03  4:00       ` Torbj|rn Lindgren
1995-06-06  4:00         ` Greg Lueck Development Environment
1995-05-28  4:00   ` Spider Boardman
1995-05-29  4:00     ` Torbj|rn Lindgren
1995-05-30  4:00   ` John Stoffel
1995-06-01  4:00     ` J. R. Valverde (4423)
1995-05-31  4:00   ` John Stoffel
1995-06-07  4:00   ` John Stoffel
1995-06-12  4:00     ` Greg Lueck Development Environment
1995-05-26  4:00 ` Greg Lueck Development Environment
1995-05-26  4:00 ` Dirk Grunwald [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