Date: Fri, 1 May 2009 00:48:28 +0400 From: Chagin Dmitry <dchagin@freebsd.org> To: Robert Watson <rwatson@freebsd.org> Cc: current@freebsd.org Subject: Re: Panic: witness_warn (r191682; shared rw udpinp (udpinp)...netinet6/udp6_usrreq.c:360) Message-ID: <20090430204828.GA6551@dchagin.static.corbina.ru> In-Reply-To: <alpine.BSF.2.00.0904302026460.8997@fledge.watson.org> References: <20090430155408.GX1387@albert.catwhisker.org> <alpine.BSF.2.00.0904302026460.8997@fledge.watson.org>
next in thread | previous in thread | raw e-mail | index | archive | help
[-- Attachment #1 --]
On Thu, Apr 30, 2009 at 08:27:48PM +0100, Robert Watson wrote:
>
> On Thu, 30 Apr 2009, David Wolfskill wrote:
>
> > Build machine crashed on boot of r191682:
> >
> > ...
> > GEOM_LABEL: Label ufsid/48fa940b4445475f removed.
> > fxp0: link state changed to UP
> > suspending ithread with the following locks held:
> > shared rw udpinp (udpinp) r = 0 (0xc5ac4f3c) locked @ /usr/src/sys/netinet6/udp6_usrreq.c:360
> > panic: witness_warn
> > cpuid = 1
> > KDB: enter: panic
> > [thread pid 12 tid 100008 ]
> > Stopped at kdb_enter+0x3a: movl $0,kdb_why
> > db>
> >
> > I started to paste the output of "show witness" in here, but it got to be
> > sufficiently lengthy that I thought it better to save it for private mail or
> > a follow-up if it's really wanted.
>
> This falls into the category of "unlikely software bugs" -- is there any
> chance this machine is overheating or has memory problems? "show alllocks"
> would be helpful on general principle, though.
>
hi Robert,
look at patch bellow (even not tested, only to show a problem):
diff --git a/sys/netinet6/udp6_usrreq.c b/sys/netinet6/udp6_usrreq.c
index 5393740..f8ac3f2 100644
--- a/sys/netinet6/udp6_usrreq.c
+++ b/sys/netinet6/udp6_usrreq.c
@@ -357,7 +357,6 @@ udp6_input(struct mbuf **mp, int *offp, int proto)
UDPSTAT_INC(udps_noportmcast);
goto badheadlocked;
}
- INP_RLOCK(last);
INP_INFO_RUNLOCK(&V_udbinfo);
if (last->inp_ppcb != NULL) {
/*
David, can you test this patch?
thnx!
--
Have fun!
chd
[-- Attachment #2 --]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.10 (FreeBSD)
iEYEARECAAYFAkn6DpsACgkQ0t2Tb3OO/O1sdwCgs5nHmV0ciGgyRE3vD2Qx6+/X
mPgAnA0zuy+0IomsfuGeny2TWxV/ZXJb
=Abzn
-----END PGP SIGNATURE-----
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20090430204828.GA6551>
