From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,c2882da60755c00d X-Google-Attributes: gidfee84,public From: grunwald@foobar.cs.colorado.edu (Dirk Grunwald) Subject: Re: What/Where is Third Degree Date: 1995/05/26 Message-ID: #1/1 X-Deja-AN: 103354608 distribution: world references: <3q221n$o6b@fermat.mayo.edu> organization: University of Colorado at Boulder reply-to: grunwald@foobar.cs.colorado.edu newsgroups: comp.unix.osf.osf1 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