From owner-freebsd-current@FreeBSD.ORG Tue Apr 5 14:18:33 2005 Return-Path: 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 5F9FC16A4DE for ; Tue, 5 Apr 2005 14:18:33 +0000 (GMT) Received: from mail28.sea5.speakeasy.net (mail28.sea5.speakeasy.net [69.17.117.30]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5B12F43D41 for ; Tue, 5 Apr 2005 14:18:32 +0000 (GMT) (envelope-from jhb@FreeBSD.org) Received: (qmail 16471 invoked from network); 5 Apr 2005 14:18:32 -0000 Received: from server.baldwin.cx ([216.27.160.63]) (envelope-sender )AES256-SHA encrypted SMTP for ; 5 Apr 2005 14:18:31 -0000 Received: from [10.50.41.231] (gw1.twc.weather.com [216.133.140.1]) (authenticated bits=0) by server.baldwin.cx (8.13.1/8.13.1) with ESMTP id j35EI6P3065409; Tue, 5 Apr 2005 10:18:26 -0400 (EDT) (envelope-from jhb@FreeBSD.org) From: John Baldwin To: freebsd-current@FreeBSD.org Date: Tue, 5 Apr 2005 10:17:43 -0400 User-Agent: KMail/1.6.2 References: In-Reply-To: MIME-Version: 1.0 Content-Disposition: inline Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: 7bit Message-Id: <200504051017.43129.jhb@FreeBSD.org> X-Spam-Status: No, score=-102.8 required=4.2 tests=ALL_TRUSTED, USER_IN_WHITELIST autolearn=failed version=3.0.2 X-Spam-Checker-Version: SpamAssassin 3.0.2 (2004-11-16) on server.baldwin.cx cc: Robert Watson cc: current@FreeBSD.org Subject: Re: panic: Duplicate free of item 0xc5862800 from zone 0xc55f8580(NAMEI) X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 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: Tue, 05 Apr 2005 14:18:33 -0000 On Saturday 26 March 2005 06:09 pm, Robert Watson wrote: > On Sat, 26 Mar 2005, Robert Watson wrote: > > Got the following panic while doing a buildworld on a dual xeon (quad > > logical processor) system today, using 6-CURRENT source from today. > > Actually, it looks like this is a false positive -- a race introduced in > local code because the debugging code to check for multiple frees (etc) > was getting called after mutexes/etc were released, so raced against > real-world re-allocation. Could there be a race in the current code as well? I've seen several instances of this with the Mbuf zone recently and there are other reports on the list of similar panics with other zones. In my panics, it all seems to have to do with fifo's taking to the socket code and the mbuf's being recycled. > Robert N M Watson > > > Robert N M Watson > > > > Slab at 0xc5857200, freei 2 = 0. > > panic: Duplicate free of item 0xc5862800 from zone 0xc55f8580(NAMEI) > > > > cpuid = 1 > > KDB: enter: panic > > [thread pid 10534 tid 100207 ] > > Stopped at kdb_enter+0x2b: nop > > db> trace > > Tracing pid 10534 tid 100207 td 0xc5e27000 > > kdb_enter(c08317e5) at kdb_enter+0x2b > > panic(c084b549,c5862800,c55f8580,c0839cfb,c084b52d) at panic+0x127 > > uma_dbg_free(c55f8580,0,c5862800) at uma_dbg_free+0x110 > > uma_zfree_arg(c55f8580,c5862800,0) at uma_zfree_arg+0xf4 > > namei(ebb3fbdc,c0626abe,c5e27000,c5e27000,c5e27000) at namei+0x245 > > vn_open_cred(ebb3fbdc,ebb3fcdc,1a4,c5ddec80,3) at vn_open_cred+0x278 > > vn_open(ebb3fbdc,ebb3fcdc,1a4,3,c0626abe) at vn_open+0x1e > > kern_open(c5e27000,8418900,0,8001,1b6) at kern_open+0xb6 > > open(c5e27000,ebb3fd14,3,b,202) at open+0x1a > > syscall(2f,2f,bfbf002f,0,0) at syscall+0x213 > > Xint0x80_syscall() at Xint0x80_syscall+0x1f > > --- syscall (5, FreeBSD ELF32, open), eip = 0x82d0e27, esp = 0xbfbfe2fc, > > ebp = 0xbfbfe318 --- > > db> show lockedvnods > > Locked vnodes > > > > 0xc61819fc: tag ufs, type VREG > > usecount 1, writecount 0, refcount 4 mountedhere 0 > > flags () > > v_object 0xc6174738 ref 0 pages 5 > > lock type ufs: EXCL (count 1) by thread 0xc5e27a10 (pid 10541) > > ino 2028972, on dev ar0s1e > > > > 0xc6b5fd50: tag ufs, type VREG > > usecount 1, writecount 0, refcount 3 mountedhere 0 > > flags () > > v_object 0xc76d3528 ref 0 pages 1 > > lock type ufs: EXCL (count 1) by thread 0xc624aa10 (pid 10538) > > ino 2028317, on dev ar0s1e > > > > > > _______________________________________________ > > freebsd-current@freebsd.org mailing list > > http://lists.freebsd.org/mailman/listinfo/freebsd-current > > To unsubscribe, send any mail to > > "freebsd-current-unsubscribe@freebsd.org" > > _______________________________________________ > freebsd-current@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-current > To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org" -- John Baldwin <>< http://www.FreeBSD.org/~jhb/ "Power Users Use the Power to Serve" = http://www.FreeBSD.org