From: Yair Kurzion (yair++at++polygon.engr.sgi.com)
Date: 08/31/2001 10:49:00
Hello Andreas !
I don't compile with purify.
For some executable `foo' that I want to purify, I run `purify foo' to produce
`foo.pure'. I then run foo.pure.
I never had the problem you describe. Can you try my method ?
-yair
> 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 |
> ---------------------------------------------------------
> -----------------------------------------------------------------------
> List Archives, FAQ, FTP: http://www.sgi.com/software/performer/
> Open Development Project: http://oss.sgi.com/projects/performer/
> Submissions: info-performer++at++sgi.com
> Admin. requests: info-performer-request++at++sgi.com
> -----------------------------------------------------------------------
>
--
\_________ \_____ \__ \__ \_____ Yair Kurzion
\_________ \_____ \__ \__ \_____ yair++at++sgi.com
\__ \__ \____\__ \__ http://reality.sgi.com/yair
\__ \__ \__ Work: (650) 933-6502
\__ \__ \__ Home: (408) 226-9771
\__ \__ \__
This archive was generated by hypermail 2b29 : Fri Aug 31 2001 - 10:49:09 PDT