Re: How to use Purify with Performer?

New Message Reply Date view Thread view Subject view Author view

Allan Schaffer (allan++at++sgi.com)
Mon, 6 Dec 1999 18:32:59 -0800 (PST)


[Back from I/ITSEC ..]

On Dec 1, 6:39pm, B S Cho wrote:
> I would like to get help on using Purify with Performer.
> The Performer Programmer's Guide tells: [....]
> malloc(int n) {return malloc(n);}
> afree(void*p) {free(p);}
> arealloc(void*p, int n) {return realloc(p, n);}

I think that first 'malloc' is a typo, it should be:

   amalloc(int n) {return malloc(n);}
   ^
I'll have that fixed. The others were correct:

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

> I followed the above, and after the setenv, typing UNIX commands like
> "ls" and "pwd" give "Segmentation fault" message after long wait.

That long wait is undoubtedly as the typo'd malloc above keeps
recursing into itself. Sorry.

Allan

-- 
Allan Schaffer                                            allan++at++sgi.com
Silicon Graphics                           http://reality.sgi.com/allan

New Message Reply Date view Thread view Subject view Author view

This archive was generated by hypermail 2.0b2 on Mon Dec 06 1999 - 18:33:02 PST

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