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?
Answer / chaitanya
Purify has to instrument all of the libraries that are linked with your program as well as the program itself (so it can catch errors that occur in the library code that might have been caused by the application). Normally, these instrumented libraries are cached in the Purify installation directory. The problem is that if you use a library that isn't already instrumented, Purify tries to instrument it for you. Since you can't write to that directory, Purify fails.
To get around this, you can change where Purify caches the libraries. Add the option -cache-dir=/tmp to your Purify command line in the Makefile; for example:
ftpcopy.purify: ftpcopy.o
purify -cache-dir=/tmp gcc -o ftpcopy.purify ftpcopy.o
This will cause your compilation to be a little slower the first time around since it has to re-instrument all of the libraries you link again. However, it will solve the problem.
Also, please copy the error messages you originally got into an e-mail message to your TA. This allows us to let the Leland maintainers know what libraries need to be in the system cache directory.
Is This Answer Correct ? | 0 Yes | 0 No |
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?
How do I run Purify?
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?
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?
What is Debugging with Purify?
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?
How to obtain a memory dump from an application that crashes?
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........
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?
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?
I get a file descriptor in use error that comes from the socket libraries (/etc/.name_service_door). How do I supress it?
DEVOPS comes under which categories?