Request - malloc/free wrappers to aid debugging

Mark Brader msb at sq.sq.com
Wed Jan 24 12:42:58 AEST 1990


> I vaguely 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.

This could be referring to malloctrace/mallck, which appeared in, um,
comp.sources.unix in October or November of 1988, and is available from
the archives of that group.  However, before you gleefully go retrieving
it from there, read this excerpt from the OVERALL_README file:

#  UNPORTABILITY CAVEATS -
#  
#    The tracing depends on being able to dump one's call stack.  This is
#  done by code in the file write_trace.c.  It works on our Sun running SunOS
#  3.0 or 3.2, but is likely to need rewriting on your machine!
#    There are two other things that work on our Sun but aren't portable:
#  the types "char *", "long", and "unsigned" seem to be inter-assigned
#  carelessly (I don't have time to delint this, either); and the BSDish
#  library function bcopy() is used.
#    Use at your own risk.
#  
#  Mark Brader, SoftQuad Inc., Toronto, August 25, 1988
#  { uunet!attcan | linus | decvax | watmath | pyramid } !utzoo!sq!msb
#  msb at sq.com		decwrl!utcsri!sq!msb

No, we haven't fixed these limitations since then.

Mark Brader, Toronto	    "If you feel [that Doug Gwyn] has a bad attitude,
utzoo!sq!msb, msb at sq.com     then use lint (or Chris Torek...)" -- Joe English



More information about the Comp.lang.c mailing list