From owner-freebsd-hackers Sun Nov 1 11:48:24 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id LAA24331 for freebsd-hackers-outgoing; Sun, 1 Nov 1998 11:48:24 -0800 (PST) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from gershwin.tera.com (gershwin.tera.com [207.224.230.28]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id LAA24310 for ; Sun, 1 Nov 1998 11:48:09 -0800 (PST) (envelope-from kline@tao.thought.org) Received: from tao.thought.org (tao.tera.com [207.108.223.55]) by gershwin.tera.com (8.8.8/8.8.8) with ESMTP id LAA07876; Sun, 1 Nov 1998 11:47:54 -0800 (PST) Received: (from kline@localhost) by tao.thought.org (8.8.8/8.7.3) id LAA00579; Sun, 1 Nov 1998 11:47:43 -0800 (PST) From: Gary Kline Message-Id: <199811011947.LAA00579@tao.thought.org> Subject: Re: Memory leak location tool? In-Reply-To: from Julian Elischer at "Nov 1, 98 11:31:46 am" To: julian@whistle.com (Julian Elischer) Date: Sun, 1 Nov 1998 11:47:42 -0800 (PST) Cc: rjs@fdy2.demon.co.uk, joelh@gnu.org, kline@thought.org, hackers@FreeBSD.ORG Organization: <> thought.org: public access uNix in service... <> X-Mailer: ELM [version 2.4ME+ PL32 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG According to Julian Elischer: > don't forget 'mprof' > very good for this. > Right. So far I've used memleak and mprof. The outputs of both are a bit obscure, but I've fixed two programs. They had almost insignificant leaks, and now none. Can anyone send me a brief test file and Makefile that works (demonstrates something) for gc? thanks, gary > > On Sat, 31 Oct 1998, Robert Swindells wrote: > > > > > >> Are there any free tools to detect likely memory leaks? Tools > > >> like Purify aren't quite what I'm looking for. > > >> Anybody? > > > > >"more `grep -l malloc /usr/ports/devel/*/pkg/DESCR`" will turn up the > > >following: > > > > > >* The Boehm-Weiser garbage collecting malloc (boehm-gc) includes a leak > > > detector. > > > > > >* Doug Lea's malloc (libdlmalloc) and libmalloc include hooks to add > > > leak detection. > > > > > >* S-Lang (libslang) says that it includes "a malloc debugging > > > package". I'm not sure whether they mean something to help debug > > > malloc, or a malloc that helps you debug your code. > > > > There is also a simple one as part of X11R6.3. > > > > It is in xc/utils/memleak. > > > > I can't tell if the 386 support came as standard, or with the XFree86 > > patches. > > > > Robert Swindells > > ------------------------------------- > > Robert Swindells - GenRad Ltd > > rjs@genrad.co.uk - Work > > rjs@fdy2.demon.co.uk - Home > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > > with "unsubscribe freebsd-hackers" in the body of the message > > > > -- Gary D. Kline kline@tao.thought.org Public service uNix To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message