Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 19 Aug 2000 16:52:16 -0700 (PDT)
From:      John Polstra <jdp@polstra.com>
To:        current@freebsd.org
Cc:        bmilekic@technokratis.com, dwmalone@freebsd.org
Subject:   Re: (URGENT) Instant panic in _MEXT_ALLOC_CNT
Message-ID:  <200008192352.QAA15880@vashon.polstra.com>
In-Reply-To: <000501c00a34$dfd43f20$71cbc918@jehovah>
References:  <XFMail.000819152111.jdp@polstra.com> <000501c00a34$dfd43f20$71cbc918@jehovah>

next in thread | previous in thread | raw e-mail | index | archive | help
In article <000501c00a34$dfd43f20$71cbc918@jehovah>,
Bosko Milekic  <bmilekic@technokratis.com> 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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200008192352.QAA15880>