Path: utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!cs.utexas.edu!uunet!mcvax!unido!pcsbst!jkh From: jkh@pcsbst.UUCP (jkh) Newsgroups: comp.unix.wizards Subject: Need debugging version of malloc()/free() Message-ID: <850@pcsbst.UUCP> Date: 6 Jun 89 20:03:48 GMT Reply-To: jkh@meepmeep.pcs.com ( Jordan K. Hubbard ) Organization: PCS GmbH, Pfaelzer-Wald-Str. 36, 8000 Muenchen; West-Germany Lines: 29 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@meepmeep.pcs.com USA: jkh@violet.berkeley.edu -- -------- Jordan Hubbard PCS Computer Systeme GmbH West Germany UUCP: {uunet,decwrl}!pyramid!pcsbst!jkh ARPA: jkh@violet.berkeley.edu Hey! Leave that alone!