Performer and Purify

New Message Reply Date view Thread view Subject view Author view

From: Andreas Ekstrand (Andreas.Ekstrand++at++saab.se)
Date: 08/31/2001 01:23:40


Hi!

I'm trying to run Purify on my performer application. Following Yair's
mail about this from 22 Jan 2001, I have taken the following steps to
get it to work:

* My pureamalloc.c:

  #include <stdlib.h>

  void *amalloc(int n) {return malloc(n);}
  void afree(void*p) {free(p);}
  void *arealloc(void*p, int n) {return realloc(p, n);}

* Compile:

  CC -c pureamalloc.c

* Link:

  ld pureamalloc.o -shared -o pureamalloc.so

* Set environment variables:

  setenv _RLDN32_LIST `pwd`/pureamalloc.so:DEFAULT
  setenv LD_LIBRARY_PATH <absolute path where my pureamalloc.so is>

* I run my application in PFMP_APPCULLDRAW mode.

I compile my application with Purify. But when I try to run the
application I get the following error message:

Purify/PureCoverage-rtlib: Error: Un-instrumented object file
</home/andek/source/purifytest/pureamalloc.so> detected.

I assume this is due to pureamalloc.so not being compiled with Purify.
On the other hand - I don't want to compile pureamalloc with Purify, do
I?

Is there anyone who has succeeded in running a Performer app with Purify
like this? What am I doing wrong?

Regards,
Andreas Ekstrand

-- 
---------------------------------------------------------
FDM-AE Andreas Ekstrand |E-mail: Andreas.Ekstrand++at++saab.se
Saab AB                 |Phone:  +46 (0)13 - 18 40 42
SE-581 88 Linkoping     |Fax:    +46 (0)13 - 18 41 77
SWEDEN                  |
---------------------------------------------------------


New Message Reply Date view Thread view Subject view Author view

This archive was generated by hypermail 2b29 : Fri Aug 31 2001 - 02:07:04 PDT

This message has been cleansed for anti-spam protection. Replace '++at++' in any mail addresses with the '@' symbol.