Usenet comp.unix.osf.misc (1992-2004)
 help / color / mirror / Atom feed
* Looking for "Purify"?
@ 1995-10-03  4:00 Andrew Benson
  1995-10-03  4:00 ` Timothy M. Wieman
                   ` (4 more replies)
  0 siblings, 5 replies; 10+ messages in thread
From: Andrew Benson @ 1995-10-03  4:00 UTC (permalink / raw)


Hi,

	 There's a program available for Suns called "purify"
which is a library that you link with that does all kinds of
neat checking against your code, watches mallocs and frees and
so forth.  Basically it helps find memory leaks and things like
that.

	Anyway, does anyone know of a similar program available
for DEC OSF1 3.2?  Or even DEC UNIX?

Thanks,
Andrew Benson (bensona@metamor.com)



^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Looking for "Purify"?
       [not found] ` <44rmrk$50u@dual.crhc.uiuc.edu>
@ 1995-10-03  4:00   ` Dirk Grunwald
  1995-10-05  4:00   ` Juerg Staub
  1 sibling, 0 replies; 10+ messages in thread
From: Dirk Grunwald @ 1995-10-03  4:00 UTC (permalink / raw)


>>>>> "TK" == Tom Kraljevic <tomk@dual.crhc.uiuc.edu> writes:
In article <44rmrk$50u@dual.crhc.uiuc.edu> tomk@dual.crhc.uiuc.edu (Tom Kraljevic) writes:
TK> drew@mtu.edu (Andrew Benson) writes:
>> Hi,

>> There's a program available for Suns called "purify" which is a
>> library that you link with that does all kinds of neat checking
>> against your code, watches mallocs and frees and so forth.
>> Basically it helps find memory leaks and things like that.

>> Anyway, does anyone know of a similar program available for DEC
>> OSF1 3.2?  Or even DEC UNIX?

>> Thanks,
>> Andrew Benson (bensona@metamor.com)

TK> I highly recommend Purify from Pure Software.  However, it's not
TK> free, and it probably doesn't exist for OSF/1//Digital Unix.
--

I don't think Purify is available, but if you install the ATOM subset
on the OSF/1 CDrom, you can use the '3rd' (third degree) program,
which does pretty much everything Purify does, and it's free. Only
runs on Alpha, though.

Man page follows (this is actually for a more recent version than
you're likely to find on a CDrom).

third(5)                                                             third(5)



NAME

  third - Performs memory access checks and detects memory leaks

SYNOPSIS

  atom application_program  -tool third [-env environment] [-toolargs=arg1,
  arg2,...]  [atom_flags...]

PARAMETERS

  application_program
            File name of a fully linked shared or nonshared executable to be
            examined.

FLAGS

  -tool third
      Identifies the Third Degree tool to atom.

  -env environment
      Identifies any special environment.  You can invoke the Third Degree
      tool for a threaded application program by specifying the threads
      environment.  You can invoke third for a general-purpose environment by
      omitting the -env flag.

  -toolargs=arg1, arg2,...
      Passes arguments to the Third Degree tool's instrumentation routine.
      The instrumentation routine take (int argc, char **argv) as arguments.

  atom_flags
      Specifies flags to the atom command.  See the atom(1) reference page
      for descriptions of other flags accepted by the atom command.

DESCRIPTION

  The Third Degree tool performs memory access checks and memory leak detec-
  tion of C and C++ programs at run-time. The instrumented 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 and C++ programs: array overflows, memory smashing, and errors in
  the use of malloc and free. It also helps you determine the allocation
  habits of your application by listing the heap and finding memory leaks.

  For example, using the Third Degree tool, a program trying to free the same
  object twice generates the following output:

       ---------------------------------------- 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 takes as input a user-specified customization file named .3rd.
  This customization file allows you to enables and disable error detection
  and reporting.  The output of the tool is placed in file with .3log as a
  suffix.

FILES

  prog.3rd  instrumented version of prog

  prog.3log log of memory errors, leaks, and other reports

  .3rd      customization file for 3rd

RELATED INFORMATION

  atom(1)

  Programmer's Guide delim off

















































^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Looking for "Purify"?
  1995-10-03  4:00 Looking for "Purify"? Andrew Benson
@ 1995-10-03  4:00 ` Timothy M. Wieman
       [not found] ` <44rmrk$50u@dual.crhc.uiuc.edu>
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 10+ messages in thread
From: Timothy M. Wieman @ 1995-10-03  4:00 UTC (permalink / raw)


Andrew Benson (drew@mtu.edu) wrote:
: Hi,

: 	 There's a program available for Suns called "purify"
: which is a library that you link with that does all kinds of
: neat checking against your code, watches mallocs and frees and
: so forth.  Basically it helps find memory leaks and things like
: that.

: 	Anyway, does anyone know of a similar program available
: for DEC OSF1 3.2?  Or even DEC UNIX?
      ^^^^^^^^^^^^           ^^^^^^^^
I think you mean Digital UNIX on both accounts.
: Thanks,
: Andrew Benson (bensona@metamor.com)

ParaSoft has a product called Insure++ which I believe runs on DEC
Alphas under Digital UNIX.  According to their documentation, you can
check out their Web server at http://www.parasoft.com/insure.html

Tim
-- 
------------------------------------------------------------------------
   Timothy M. Wieman    |       Software Engineer
                        |
     timw@hces.com      |       PACE Health Management Systems, Inc.



^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Looking for "Purify"?
  1995-10-03  4:00 Looking for "Purify"? Andrew Benson
  1995-10-03  4:00 ` Timothy M. Wieman
       [not found] ` <44rmrk$50u@dual.crhc.uiuc.edu>
@ 1995-10-04  4:00 ` Jeffrey Mogul
  1995-10-06  4:00   ` Greg Lueck Development Environment
  1995-10-10  4:00   ` Timothy M. Wieman
  1995-10-04  4:00 ` Conor P. Cahill
  1995-10-05  4:00 ` Hal Lue
  4 siblings, 2 replies; 10+ messages in thread
From: Jeffrey Mogul @ 1995-10-04  4:00 UTC (permalink / raw)


In article <44rguo$ige@uranium.chem> bensona@metamor.com writes:
>	 There's a program available for Suns called "purify"
>which is a library that you link with that does all kinds of
>neat checking against your code, watches mallocs and frees and
>so forth.  Basically it helps find memory leaks and things like
>that.
>
>	Anyway, does anyone know of a similar program available
>for DEC OSF1 3.2?  Or even DEC UNIX?

This is becoming a FAQ.

The "Third degree" program, part of the ATOM tools kit, probably
does what you want.  As far as I know, it has been shipping with
DEC OSF/1 since version 3.0.  Note that it is not yet a supported
piece of software (which means that you may not be able to get
bugs fixed).

-Jeff



^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Looking for "Purify"?
  1995-10-03  4:00 Looking for "Purify"? Andrew Benson
                   ` (2 preceding siblings ...)
  1995-10-04  4:00 ` Jeffrey Mogul
@ 1995-10-04  4:00 ` Conor P. Cahill
  1995-10-05  4:00 ` Hal Lue
  4 siblings, 0 replies; 10+ messages in thread
From: Conor P. Cahill @ 1995-10-04  4:00 UTC (permalink / raw)


In article <44rguo$ige@uranium.chem>,
Andrew Benson <bensona@metamor.com> wrote:
>	 There's a program available for Suns called "purify"
>which is a library that you link with that does all kinds of
>neat checking against your code, watches mallocs and frees and
>so forth.  Basically it helps find memory leaks and things like
>that.
>
>	Anyway, does anyone know of a similar program available
>for DEC OSF1 3.2?  Or even DEC UNIX?

Our product, Sentinel, is available on DEC OSF1.  Sentinel performs
run-time analysis of the memory accesses in your program in order
to report incorrect memory accesses as well as memory leaks.  More
info or a free, fully functional, evaluation is available from
info@aib.com or by calling 800-296-3000 (703-787-7700).

Conor

-- 
***** SENTINEL(tm) - the multi-platform run-time analysis tool  *****

Conor P. Cahill          (703)787-7700           conor.cahill@aib.com
AIB Software, Inc.    1145 Herndon Parkway          Herndon, VA 22070 



^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Looking for "Purify"?
       [not found] ` <44rmrk$50u@dual.crhc.uiuc.edu>
  1995-10-03  4:00   ` Dirk Grunwald
@ 1995-10-05  4:00   ` Juerg Staub
  1 sibling, 0 replies; 10+ messages in thread
From: Juerg Staub @ 1995-10-05  4:00 UTC (permalink / raw)


Hi there,


There is a packages called "atom" available on gatekeeper which
does the same as purify. The only thing missing is a graphical
user interface. Make shure that you pickup the right version.

Contact lueck@zk3.dec.com for information on how to get this kit.


Juerg
 




^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Looking for "Purify"?
  1995-10-03  4:00 Looking for "Purify"? Andrew Benson
                   ` (3 preceding siblings ...)
  1995-10-04  4:00 ` Conor P. Cahill
@ 1995-10-05  4:00 ` Hal Lue
  4 siblings, 0 replies; 10+ messages in thread
From: Hal Lue @ 1995-10-05  4:00 UTC (permalink / raw)
  To: bensona

You can call Purify at (408)-720-1600.




^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Looking for "Purify"?
  1995-10-04  4:00 ` Jeffrey Mogul
@ 1995-10-06  4:00   ` Greg Lueck Development Environment
  1995-10-10  4:00   ` Timothy M. Wieman
  1 sibling, 0 replies; 10+ messages in thread
From: Greg Lueck Development Environment @ 1995-10-06  4:00 UTC (permalink / raw)



In article <44sjj9$n8p@usenet.pa.dec.com>, mogul@pa.dec.com (Jeffrey Mogul) writes:
|> The "Third degree" program, part of the ATOM tools kit, probably
|> does what you want.  As far as I know, it has been shipping with
|> DEC OSF/1 since version 3.0.  Note that it is not yet a supported
|> piece of software (which means that you may not be able to get
|> bugs fixed).

In the upcoming release of Digital Unix V4.0, Third Degree (along with
Atom and other Atom tools) will be fully supported products.  Third Degree
detect memory leaks, reads and writes beyond the end of allocated memory,
and reads of uninitialized memory.

-- 
-------------------------------------------------------------------------------
Greg Lueck                              Opinions expressed herein are my own.
lueck@zk3.dec.com
-------------------------------------------------------------------------------
-- 
-------------------------------------------------------------------------------
Greg Lueck                              Opinions expressed herein are my own.
lueck@zk3.dec.com
-------------------------------------------------------------------------------



^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Looking for "Purify"?
  1995-10-04  4:00 ` Jeffrey Mogul
  1995-10-06  4:00   ` Greg Lueck Development Environment
@ 1995-10-10  4:00   ` Timothy M. Wieman
  1995-10-12  4:00     ` Greg Lueck Development Environment
  1 sibling, 1 reply; 10+ messages in thread
From: Timothy M. Wieman @ 1995-10-10  4:00 UTC (permalink / raw)


Jeffrey Mogul (mogul@pa.dec.com) wrote:
: In article <44rguo$ige@uranium.chem> bensona@metamor.com writes:
: >	 There's a program available for Suns called "purify"
: >which is a library that you link with that does all kinds of
: >neat checking against your code, watches mallocs and frees and
: >so forth.  Basically it helps find memory leaks and things like
: >that.
: >
: >	Anyway, does anyone know of a similar program available
: >for DEC OSF1 3.2?  Or even DEC UNIX?

: This is becoming a FAQ.

: The "Third degree" program, part of the ATOM tools kit, probably
: does what you want.  As far as I know, it has been shipping with
: DEC OSF/1 since version 3.0.  Note that it is not yet a supported
: piece of software (which means that you may not be able to get
: bugs fixed).

: -Jeff

I discovered Third Degree a couple weeks ago, but I'm unable to get it
to work.  AlphaServer 1000 4/200 running Digital UNIX 3.2 214.  Here's
what I get (following the documents instructions):
$ 3rd cc junk.c -o junk
Assertion failed: IsLoad[ins->memtype] /* SP modification? */, file tdi.c, line 1463
/usr2/tmp//Atom.junk21621: Fatal error: One of Atom's passes terminated abnormally
/usr2/tmp//Atom.junk21621: Run atom with -dbx to see if it was in the instrumentation routines
3rd: error running ATOM

This also leaves a ~5 Meg. core file.  I try running atom with "-dbx"
and it stops in dbx giving the following stack trace:
(dbx) t
>  0 Instrument(0x1400340c0, 0x100000008, 0x1200163f8, 0x0, 0x14048e040) ["tdi.c":1594, 0x12005ca94]
   1 main(argc = 10, argv = 0x11ffff7e8) ["alpha2rtl.c":2635, 0x120016444]

I know that 3rd is unsupported, so I'm hoping someone here can help out.
I think this would be a VERY useful tool if I can get it working.

TIA, Tim
P.S. "setld -i" shows ATMBASE320 installed, the "confidence" program
that comes with ATOM also fails on 3rd with the same error, and junk.c is
just a "Hello World" program.
-- 
------------------------------------------------------------------------
   Timothy M. Wieman    |       Software Engineer
                        |
     timw@hces.com      |       PACE Health Management Systems, Inc.



^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Looking for "Purify"?
  1995-10-10  4:00   ` Timothy M. Wieman
@ 1995-10-12  4:00     ` Greg Lueck Development Environment
  0 siblings, 0 replies; 10+ messages in thread
From: Greg Lueck Development Environment @ 1995-10-12  4:00 UTC (permalink / raw)



|> 
|> I discovered Third Degree a couple weeks ago, but I'm unable to get it
|> to work.  AlphaServer 1000 4/200 running Digital UNIX 3.2 214.  Here's
|> what I get (following the documents instructions):
|> $ 3rd cc junk.c -o junk
|> Assertion failed: IsLoad[ins->memtype] /* SP modification? */, file tdi.c, line 1463
|> /usr2/tmp//Atom.junk21621: Fatal error: One of Atom's passes terminated abnormally
|> /usr2/tmp//Atom.junk21621: Run atom with -dbx to see if it was in the instrumentation routines
|> 3rd: error running ATOM

A patch is available for this problem on Digital Unix V3.2 (it did not exist
on V3.0).  Call your customer service representative and ask for patch ID
ATOMV32-1302. 

-- 
-------------------------------------------------------------------------------
Greg Lueck                              Opinions expressed herein are my own.
lueck@zk3.dec.com
-------------------------------------------------------------------------------
-- 
-------------------------------------------------------------------------------
Greg Lueck                              Opinions expressed herein are my own.
lueck@zk3.dec.com
-------------------------------------------------------------------------------



^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~1995-10-12  4:00 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1995-10-03  4:00 Looking for "Purify"? Andrew Benson
1995-10-03  4:00 ` Timothy M. Wieman
     [not found] ` <44rmrk$50u@dual.crhc.uiuc.edu>
1995-10-03  4:00   ` Dirk Grunwald
1995-10-05  4:00   ` Juerg Staub
1995-10-04  4:00 ` Jeffrey Mogul
1995-10-06  4:00   ` Greg Lueck Development Environment
1995-10-10  4:00   ` Timothy M. Wieman
1995-10-12  4:00     ` Greg Lueck Development Environment
1995-10-04  4:00 ` Conor P. Cahill
1995-10-05  4:00 ` Hal Lue

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