How do I run Purify?

Answer Posted / chaitanya

Purify is available on any of the Solaris machines in the Leland cluster.

To run Purify, you should create a new target in your Makefile that runs Purify while linking your program. For Cs244a, the convention is to use the same name as your regular executable with .purify appended to the end. For example:

ftpcopy.purify: ftpcopy.o

purify gcc -o ftpcopy.purify ftpcopy.o

Your program should compile and link as usual. When you run the Purify'ed version, however, you will get another window that will contain all of the Purify diagnostic messages about your program. These messages contain a three-letter code, a stack trace showing where the error occurred, and information about the memory associated with the error. Some of the common codes you will see are:

UMR Uninitialized memory read. Your program attempted to read a value from memory that was never given a value.

ABR Array Bounds Read. Your program attempted to read from memory before or after a declared array.

FIU File In Use. Your program left a file descriptor open at exit.

More of these codes are explained in the on-line documentation.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

DEVOPS comes under which categories?

726