Re: core dumping insider Performer
Mark Johnson (johnson++at++vrlab.uccb.ns.ca)
Wed, 16 Nov 1994 08:10:59 -0400
On Nov 16, 11:44am, Ran Yakir wrote:
> Subject: core dumping inside Performer
> Hi
>
> I tried to link my Performer application with malloc_db.o from the Dev.
Toolbox
> (in search of some malloc problems).
> Suprisingly, Performer crashed inside pfAllocChanData, upon tying to
> free (NULL). It doesn't do so when I link without malloc_db.o .
>
When I have had similar problems with malloc, the program can crash
in almost any library call. I am not sure about the malloc package you
are linking with, but malloc(3X) (link with -lmalloc) provides a few helpful
things:
mallopt(M_CLRONFREE, 0); // set all free'd blocks to zero
mallopt(M_DEBUG, 1); // causes malloc/free to do some checking
// on its own data structures every time it
// is called - very slow.
The first line above is especially useful in the case where one tries
to use data after free'ing the block. The second might help in the case
of using locations just a bit outside the allocated block.
Hope this helps,
Mark Johnson
johnson++at++vrlab.uccb.ns.ca
--- End of forwarded mail from Mailer-Daemon++at++sparc (Mail Delivery Subsystem)
This archive was generated by hypermail 2.0b2
on Mon Aug 10 1998 - 17:50:40 PDT