Need debugging version of malloc()/free()

jkh jkh at pcsbst.UUCP
Wed Jun 7 06:03:48 AEST 1989


I was thinking about writing this the other day, but figured I'd ask
around first before expending the effort.

Has anyone written a version of malloc/free that keeps extra information
around about each chunk allocated and free'd so that garbage things free'd
(or legitimate data free'd multiple times) can be detected and reported?

An additional plus would be for malloc() to somehow detect when you'd gone
off the end (either end) of a malloc'd block, but I can see how this would
be a lot harder to do, if not impossible in some cases.

Nonethess, I'm interested in anything that anyone's done in this dept.

				Jordan Hubbard

				PCS Computer Systeme, GmbH.

			EUROPE:	jkh at meepmeep.pcs.com
			USA:	jkh at violet.berkeley.edu
-- 
--------
				Jordan Hubbard
				PCS Computer Systeme GmbH
				West Germany
	UUCP:			{uunet,decwrl}!pyramid!pcsbst!jkh
	ARPA:			jkh at violet.berkeley.edu

Hey! Leave that alone!



More information about the Comp.unix.wizards mailing list