Date: Tue, 11 May 1999 11:10:01 -0700 (PDT) From: Bob Willcox <bob@luke.pmr.com> To: freebsd-bugs@FreeBSD.org Subject: Re: kern/10872: Panic in sorecieve() Message-ID: <199905111810.LAA64151@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
The following reply was made to PR kern/10872; it has been noted by GNATS. From: Bob Willcox <bob@luke.pmr.com> To: Pierre Beyssac <beyssac@enst.fr> Cc: Bob Willcox <bob@pmr.com>, freebsd-bugs@freebsd.org, FreeBSD-gnats-submit@freebsd.org Subject: Re: kern/10872: Panic in sorecieve() Date: Tue, 11 May 1999 13:00:04 -0500 On Tue, May 11, 1999 at 07:53:11PM +0200, Pierre Beyssac wrote: > On Tue, May 11, 1999 at 12:41:17PM -0500, Bob Willcox wrote: > > fix). The problem as I have seen it is that the mbuf chain pointer (m) > > is NULL and so_rcv.sb_cc is not zero. Its as though somewhere either > > the mbuf chain pointer gets zapped with NULL or something fails to > > This can happen when the system is out of mbufs. Sadly there are > many places in the kernel where the condition is not trapped at > all. > > How many mbufs does netstat -m report on your system? Maybe I > couldn't reproduce it because my kernel is configured with maxusers > 128, which yields more mbufs. You can try that as a temporary fix. I have just updated my -current test system (cvsuped as of this morning) and will see if I can still reproduce it there. If so I will try changing the maxusers to see if that has any effect. > > > properly update so_rcv.sb_cc as mbufs are processed. > > > > I believe one can expand the KASSERT macro and rewrite the line: > > if (m == 0 && so->so_rcv.sb_cc != 0) > > Oops, you're right. I stupidly looked at so_snd.sb_cc in the debug > output, which is 0. > > I prefer that, it'll probably be easier to fix. Good. :-) > -- > Pierre Beyssac pb@enst.fr -- Bob Willcox The man who follows the crowd will usually get no bob@luke.pmr.com further than the crowd. The man who walks alone is Austin, TX likely to find himself in places no one has ever been. -- Alan Ashley-Pitt To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199905111810.LAA64151>