From owner-freebsd-current@FreeBSD.ORG Thu Dec 9 11:33:35 2004 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 B5B6D16A4CE; Thu, 9 Dec 2004 11:33:35 +0000 (GMT) Received: from moutng.kundenserver.de (moutng.kundenserver.de [212.227.126.186]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1801A43D49; Thu, 9 Dec 2004 11:33:35 +0000 (GMT) (envelope-from max@love2party.net) Received: from [212.227.126.162] (helo=mrelayng.kundenserver.de) by moutng.kundenserver.de with esmtp (Exim 3.35 #1) id 1CcMY9-0004Cl-00; Thu, 09 Dec 2004 12:33:33 +0100 Received: from [84.128.137.142] (helo=donor.laier.local) by mrelayng.kundenserver.de with asmtp (TLSv1:RC4-MD5:128) (Exim 3.35 #1) id 1CcMY9-0006mc-00; Thu, 09 Dec 2004 12:33:34 +0100 From: Max Laier To: Ruslan Ermilov Date: Thu, 9 Dec 2004 12:34:08 +0100 User-Agent: KMail/1.7.1 References: <200412090411.42258.max@love2party.net> <20041209101524.GC62331@ip.net.ua> In-Reply-To: <20041209101524.GC62331@ip.net.ua> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart1178026.9nY22vnAXz"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <200412091234.19912.max@love2party.net> X-Provags-ID: kundenserver.de abuse@kundenserver.de auth:61c499deaeeba3ba5be80f48ecc83056 cc: gnn@freebsd.org cc: freebsd-current@freebsd.org cc: Robert Watson cc: Steve Kargl Subject: Re: protocol timer running before protocol is fully initialized (again) (was re: panic: mtx_lock() of spin mutex ...) 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: Thu, 09 Dec 2004 11:33:35 -0000 --nextPart1178026.9nY22vnAXz Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Hi Ruslan, On Thursday 09 December 2004 11:15, Ruslan Ermilov wrote: > Hi Max, > > On Thu, Dec 09, 2004 at 04:11:26AM +0100, Max Laier wrote: > > On Thursday 09 December 2004 03:31, Robert Watson wrote: > > > On Wed, 8 Dec 2004, Steve Kargl wrote: > > > > panic: mtx_lock() of spin mutex (null) @ sys/netinet/frag6.c:682 > > > > cpuid =3D 0 > > > > kdb_backtrace+0x37 > > > > panic+0x1d1 > > > > _mtx_lock_flags+0x72 > > > > frag6_slowtimo+0x26 > > > > pfslowtimo+0x5a > > > > softclock+0x1c0 > > > > ithread_loop+0x179 > > > > fork_exit+0xe9 > > > > fork_trampoline+0xe > > > > > > > > This is FreeBSD/amd64 from today's sources of about 30 minutes ago. > > > > > > > >From the instant interpretation unit: it looks like this is another > > > > > > example of a protocl's timeout firing before the protocol is properly > > > initialized, as the mutex appears to be zero'd due to being in BSS. > > > > Here is a lazy fix: > > http://people.freebsd.org/~mlaier/uipc_domain.c.lazy.diff > > > > Should help for (almost) sure. This fixes all domains that are > > initialized in SI_SUB_PROTO_DOMAIN, those that are initialized later on > > (netgraph e.g.) can still trigger this prime example why it's bad to ho= ok > > something in before initializing it properly. Unfortunately our code and > > API force us to do so at the moment :-\ > > > > Please tell me if the patch (apply to src/sys/kern/uipc_domain.c) helps. > > I've got the same panic early on boot, but in ip_input(), on i386. > Your patch helps. in ip_input() - that's not good! Can you send me the trace? I was under the= =20 impression that net send and esp. reveice is off during this part of the=20 initialization. Crashing ip_input() would question that assumption. Thanks. Anyway, have enough "working for me" by now. Will commit the temporary fix. =2D-=20 /"\ Best regards, | mlaier@freebsd.org \ / Max Laier | ICQ #67774661 X http://pf4freebsd.love2party.net/ | mlaier@EFnet / \ ASCII Ribbon Campaign | Against HTML Mail and News --nextPart1178026.9nY22vnAXz Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.6 (FreeBSD) iD8DBQBBuDg7XyyEoT62BG0RAn/IAJ9EEGZeSi07aLkreBF4wrQ73figXgCfdwYq XXVqE+BSznlgx3+OZVTgnKw= =zr7M -----END PGP SIGNATURE----- --nextPart1178026.9nY22vnAXz--