From: Clare Michael (MCLARE++at++qinetiq.com)
Date: 06/12/2002 07:47:54
Olivier,
Use the Purify GUI instead of manually writing the .purify file to suppress messages - that way you can choose to suppress messages due to a library (in results in suppress UMR "libstl*" in the .purify file for example) or various different levels of suppression. If you then don't suppress you own code messages you may find out the cause of the exit code -1.
As you link Purify into your executable, you can only use it on the executable produced by the link and not at each stage of compilation. Purify is a run-time tool not a compilation tool.
Regards,
Mike.
-----Original Message-----
From: Olivier Koch [mailto:koch++at++graphics.lcs.mit.edu]
Sent: 12 June 2002 13:37
To: SGI
Subject: [info-performer] Purify
Hi, I am running Purify 4.1 on Irix 6.5. Running Purify is successful.
However, I have a problem.
When I run Purify with no .purify file, I get 50 errors : UMR and FMM.
They are all due to the iterator library (stl). The program exits with
status code -1. Since I am not responsible for the iterator library, I
have decided to suppress these errors by creating the following .purify
file :
suppress UMR "*.h"
suppress FMM "*.h"
suppress FMM "*.cxx"
suppress FMM "*.c"
Since my code is only in *.cpp and *.hpp files, I should get only my own
errors. However, when I run Purify with this .purify file, I get 0 errors
and the program still exits with status code -1.
How can I ask Purify to ignore the iterator library and to work on my code
only ? How can I have more information about the exit status ? Indeed,
there is no explanation about why the program exited with status code -1.
Last question : my code is included in several *.cpp and *.hpp files. I
compile with a Makefile file. How should I run Purify ? Should I run
Purify only on the main program, or should I run Purify at each step of
compilation ?
I hope all of this makes sense. The samples I have found on the web were
not very useful, since they are limited to very simple examples.
Thanks a lot in advance.
Best,
Olivier Koch
-- koch++at++graphics.lcs.mit.eduThe Information contained in this E-Mail and any subsequent correspondence is private and is intended solely for the intended recipient(s). For those other than the recipient any disclosure, copying, distribution, or any action taken or omitted to be taken in reliance on such information is prohibited and may be unlawful.
This archive was generated by hypermail 2b29 : Wed Jun 12 2002 - 07:48:11 PDT