[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Segfault in libc -- call to malloc from libpng



On Wed, Nov 17, 1999 at 04:06:54PM -0500, Jim Ziegler wrote:
> I have a program which uses libpng.  Libpng makes several
> calls to malloc.  At some point libc segfaults.

This is not necessarily libc's problem.  If, for example, you try to
free() the same piece of memory twice, then a segmentation fault is
a reasonable result.  You might try a memory-allocation debugger,
such as dmalloc or electric-fence.

Richard Braakman


Reply to: