From owner-cvs-all Fri Jul 19 21:18:39 2002 Delivered-To: cvs-all@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id CC16337B401; Fri, 19 Jul 2002 21:18:35 -0700 (PDT) Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3D81843E65; Fri, 19 Jul 2002 21:18:31 -0700 (PDT) (envelope-from peter@FreeBSD.org) Received: from freefall.freebsd.org (peter@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.4/8.12.4) with ESMTP id g6K4ILJU018167; Fri, 19 Jul 2002 21:18:21 -0700 (PDT) (envelope-from peter@freefall.freebsd.org) Received: (from peter@localhost) by freefall.freebsd.org (8.12.4/8.12.4/Submit) id g6K4ILGf018166; Fri, 19 Jul 2002 21:18:21 -0700 (PDT) Message-Id: <200207200418.g6K4ILGf018166@freefall.freebsd.org> From: Peter Wemm Date: Fri, 19 Jul 2002 21:18:21 -0700 (PDT) To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/lib/libstand Makefile stand.h zalloc_defs.h zalloc_malloc.c zutil.h.diff X-FreeBSD-CVS-Branch: HEAD Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG peter 2002/07/19 21:18:20 PDT Modified files: lib/libstand Makefile stand.h zalloc_defs.h zalloc_malloc.c Added files: lib/libstand zutil.h.diff Log: Reimplement malloc/free debugging that includes the offending file:line info. This turned out to be rather useful on ia64 for tracking down malloc/free problems. Detect duplicate free()'s - otherwise these show up as a guard1 failure and it looks like corruption instead of something simple like a second free() where there shouldn't be. Deal with libz using libc headers and not seeing the malloc/free stuff that we provide in libstand. Do similar nastiness to what is done for bzlib. Tested on: i386, ia64 (compile, run) Revision Changes Path 1.36 +19 -5 src/lib/libstand/Makefile 1.34 +14 -21 src/lib/libstand/stand.h 1.11 +1 -0 src/lib/libstand/zalloc_defs.h 1.7 +23 -13 src/lib/libstand/zalloc_malloc.c 1.1 +15 -0 src/lib/libstand/zutil.h.diff (new) To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message