Request - malloc/free wrappers to aid debugging
Linda S. Saus
lss at babcock.cerc.wvu.wvnet.edu
Tue Jan 23 01:30:53 AEST 1990
>From article <gZhzPmi00WB8N9WoYF at andrew.cmu.edu>, by dg3s+ at andrew.cmu.edu (David Gentzel):
> I vaugely recall reading a message (or messages) on this list some time ago
> about a set of wrapper functions/macros for malloc/free to aid debugging.
> They (if my memory serves) kept track of malloced/freed memory and allowed
> you to detect such common snafus as multiple frees and memory leaks.
>
On SUN systems, the following is available: See man pages for free to
get complete details.
DIAGNOSTICS
More detailed diagnostics can be made available to programs
using malloc, calloc, realloc, valloc, memalign, cfree, and
free, by including a special relocatable object file at link
time (see FILES). This file also provides routines for con-
trol of error handling and diagnosis, as defined below.
Note: these routines are not defined in the standard
library.
FILES
/usr/lib/debug/malloc.o diagnostic versions of malloc()
routines.
More information about the Comp.lang.c
mailing list