Allan Schaffer (allan++at++sgi.com)
Mon, 6 Dec 1999 18:32:59 -0800 (PST)
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
This archive was generated by hypermail 2.0b2 on Mon Dec 06 1999 - 18:33:02 PST