How do I run Purify?



How do I run Purify?..

Answer / 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

More Purify Interview Questions

How do I run Purify?

1 Answers  


I can't run Purify. Either when I compile or when I run my program, I get all sorts of unfriendly messages about not being able to write into a read-only file system. What's the problem?

1 Answers  


How to obtain a memory dump from an application that crashes?

1 Answers  


What is Debugging with Purify?

1 Answers  


When I issue "make all.purify" for the echodemo example, I see a message that says "In order for Rational PurifyPlus to work properly, you must source the appropriate shell resource file in /usr/pubsw/etc/rational..." How do I fix this?

1 Answers  






When I run my purify'ed executable, I get a cryptic message like "ld.so.1: ./server.purify: fatal: libsocket.so.1_pure_p3_c0_105022037_58_32_2171404S: open failed: No such file or directory." What's going on?

1 Answers  


I'm getting a lot of UMR errors that I don't think my program is causing. We have to turn in a program that doesn't have any Purify errors. How do I get around these?

1 Answers  


I get a file descriptor in use error that comes from the socket libraries (/etc/.name_service_door). How do I supress it?

1 Answers  


The assignment says I have to turn in a purify.output file, but the output goes to a window so I can't redirect it. How to I get the output to go to a file?

1 Answers  


When I run 'purify', I get a warning message saying "Could not locate gcc demangler 'c++filt'..." I also get warnings saying "Unhandled reloc type R_SPARC_DISP32..." Is this expected?

1 Answers  


I got placed in a company called Achir Communications located in Bangalore, for the past 4 months company website is not funtioning and even i cant contact them over phone.can any one knews any detail about that company? please help........

7 Answers  


DEVOPS comes under which categories?

0 Answers  


Categories