From owner-freebsd-current@FreeBSD.ORG Sat Jun 25 19:52:02 2005 Return-Path: X-Original-To: current@freebsd.org Delivered-To: freebsd-current@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 53C7516A41F for ; Sat, 25 Jun 2005 19:52:02 +0000 (GMT) (envelope-from silby@silby.com) Received: from wbm1.pair.net (wbm1.pair.net [209.68.3.41]) by mx1.FreeBSD.org (Postfix) with SMTP id D049643D1D for ; Sat, 25 Jun 2005 19:52:01 +0000 (GMT) (envelope-from silby@silby.com) Received: (qmail 30854 invoked by uid 65534); 25 Jun 2005 19:52:01 -0000 Received: from 64.215.82.94 ([64.215.82.94]) (SquirrelMail authenticated user silby@silby.com) by webmail1.pair.com with HTTP; Sat, 25 Jun 2005 15:52:01 -0400 (EDT) Message-ID: <2565.64.215.82.94.1119729121.squirrel@webmail1.pair.com> In-Reply-To: <20050625173217.GA24306@peter.osted.lan> References: <20050624212729.C537@odysseus.silby.com> <20050625133052.GA23599@peter.osted.lan> <1437.64.215.82.94.1119717536.squirrel@webmail2.pair.com> <20050625173217.GA24306@peter.osted.lan> Date: Sat, 25 Jun 2005 15:52:01 -0400 (EDT) From: "Mike Silbersack" To: "Peter Holm" User-Agent: SquirrelMail/1.4.4 MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) Importance: Normal Cc: Mike Silbersack , current@freebsd.org, Thierry Herbelot Subject: Re: Mbuf double-free guilty party detection patch X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 25 Jun 2005 19:52:02 -0000 > On Sat, Jun 25, 2005 at 12:38:56PM -0400, Mike Silbersack wrote: >> > x.123e:This memory last freed by: 0xc2fa6c00 >> > x.123e-panic: Memory modified after free 0xc2fa6a00(256) val=c2fa6c00 > (kgdb) x/40x 0xc2fa6a00 > 0xc2fa6a00: 0xc2fa6c00 0x00000000 0xc24b1ae0 0x00000520 I'm going to have to doublecheck my patch when I get home - the address returned by "This memory last freed by" should be a pointer to a function address, not a piece of data. So that we get more results, why don't you change the panic in trash_ctor to a printf, then you can continue to run tests and see how many mbufs are being corrupted without the issue of having to reboot after a panic, etc. Mike "Silby" Silbersack