From owner-freebsd-current Sat Aug 19 16:52:42 2000 Delivered-To: freebsd-current@freebsd.org Received: from wall.polstra.com (rtrwan160.accessone.com [206.213.115.74]) by hub.freebsd.org (Postfix) with ESMTP id 84C9A37B423; Sat, 19 Aug 2000 16:52:38 -0700 (PDT) Received: from vashon.polstra.com (vashon.polstra.com [206.213.73.13]) by wall.polstra.com (8.9.3/8.9.3) with ESMTP id QAA09166; Sat, 19 Aug 2000 16:52:17 -0700 (PDT) (envelope-from jdp@polstra.com) From: John Polstra Received: (from jdp@localhost) by vashon.polstra.com (8.9.3/8.9.1) id QAA15880; Sat, 19 Aug 2000 16:52:16 -0700 (PDT) (envelope-from jdp@polstra.com) Date: Sat, 19 Aug 2000 16:52:16 -0700 (PDT) Message-Id: <200008192352.QAA15880@vashon.polstra.com> To: current@freebsd.org Cc: bmilekic@technokratis.com, dwmalone@freebsd.org Subject: Re: (URGENT) Instant panic in _MEXT_ALLOC_CNT In-Reply-To: <000501c00a34$dfd43f20$71cbc918@jehovah> References: <000501c00a34$dfd43f20$71cbc918@jehovah> Organization: Polstra & Co., Seattle, WA Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG In article <000501c00a34$dfd43f20$71cbc918@jehovah>, Bosko Milekic wrote: > > Hrmmm, there may be a logic problem here. Try this (apply it manually, > as I am not able to produce a diff at this time): > > change: > > if ((__mcnt == NULL) && (m_alloc_ref(1) == 0)) > panic("mbuf subsystem: out of ref counts!"); > > to: > > if (__mcnt == NULL) { > if (m_alloc_ref(1) != 0) > __mcnt = mext_refcnt_free; > else > panic("mbuf subsystem: out of ref counts!"); > } > > It could be that the m_alloc_ref(1) doesn't fail, but that __mcnt > is still NULL, it's missing that __mcnt = mext_refcnt_free assignment. > This is most probably a BUG, so please commit the fix... That fixed it. Thanks for the quick reply! I have committed the fix just now. John -- John Polstra jdp@polstra.com John D. Polstra & Co., Inc. Seattle, Washington USA "Disappointment is a good sign of basic intelligence." -- Chögyam Trungpa To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message