From owner-freebsd-net@FreeBSD.ORG Sun Feb 8 19:27:25 2009 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2B73A1065672 for ; Sun, 8 Feb 2009 19:27:25 +0000 (UTC) (envelope-from freebsd-listen@fabiankeil.de) Received: from smtprelay08.ispgateway.de (smtprelay08.ispgateway.de [80.67.29.8]) by mx1.freebsd.org (Postfix) with ESMTP id A5A9D8FC12 for ; Sun, 8 Feb 2009 19:27:24 +0000 (UTC) (envelope-from freebsd-listen@fabiankeil.de) Received: from [88.153.16.241] (helo=localhost) by smtprelay08.ispgateway.de with esmtpsa (TLSv1:AES128-SHA:128) (Exim 4.68) (envelope-from ) id 1LWFJL-00063t-5A; Sun, 08 Feb 2009 20:27:23 +0100 Date: Sun, 8 Feb 2009 20:27:18 +0100 From: Fabian Keil To: Jeff Roberson Message-ID: <20090208202718.256db562@fabiankeil.de> In-Reply-To: <20090208083321.M983@desktop> References: <20090131125100.N983@desktop> <20090201160544.4f1961b4@fabiankeil.de> <20090201170550.482bf325@fabiankeil.de> <20090202094226.E983@desktop> <20090208152647.3e4316d1@fabiankeil.de> <20090208083321.M983@desktop> X-Mailer: Claws Mail 3.7.0 (GTK+ 2.14.7; i386-portbld-freebsd8.0) X-PGP-KEY-URL: http://www.fabiankeil.de/gpg-keys/freebsd-listen-2008-08-18.asc Mime-Version: 1.0 Content-Type: multipart/signed; boundary="Sig_/7UR9Z9+4+nghoIGhCFX/eig"; protocol="application/pgp-signature"; micalg=PGP-SHA1 X-Df-Sender: 775067 Cc: freebsd-net@freebsd.org Subject: Re: mbuf revision, testers/comments wanted. X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 08 Feb 2009 19:27:31 -0000 --Sig_/7UR9Z9+4+nghoIGhCFX/eig Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Jeff Roberson wrote: > On Sun, 8 Feb 2009, Fabian Keil wrote: >=20 > > Jeff Roberson wrote: > >> I have updated the patch here: > >> > >> http://people.freebsd.org/~jeff/mbuf_ref2.diff > >> > >> This resolves the !INVARIANTS bug and improves the style as you sugges= ted. > > > > I run into several system hangs (or maybe panics) yesterday, > > mostly with Xorg running so I didn't get any details. > > > > I got one on the console though. After running a regression > > test that opens multiple HTTP connections to the loop back > > device, I used rsync to restore some files that were damaged by > > an earlier hang. That lead to a page fault in em_start_locked(). > > > > While I dumped core from the debugger, > > savecore didn't find the dump afterwards. > > > > Anyway, there's a screen shot available at: > > http://www.fabiankeil.de/bilder/freebsd/mbuf-patch-page-fault-em_start_= locked.jpg >=20 > Can you open gdb on kernel.debug and tell me what: >=20 > list *(em_start_locked+0x1e5) >=20 > outputs? Unfortunately I didn't keep the kernel.debug for the patched kernel around. For my current kernel I get: fk@TP51 ~ $gdb /usr/obj/usr/src/sys/THINKPAD/kernel.debug=20 GNU gdb 6.1.1 [FreeBSD] Copyright 2004 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain condition= s. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "i386-marcel-freebsd"... (gdb) list *(em_start_locked+0x1e5) 0xc0529eb5 is in em_start_locked (/usr/src/sys/dev/e1000/if_em.c:1003). 998 if (!adapter->link_active) 999 return; 1000 =20 1001 while (!IFQ_DRV_IS_EMPTY(&ifp->if_snd)) { 1002 =20 1003 IFQ_DRV_DEQUEUE(&ifp->if_snd, m_head); 1004 if (m_head =3D=3D NULL) 1005 break; 1006 /* 1007 * Encapsulation can modify our pointer, and or ma= ke it Not sure if it's any good ... Fabian --Sig_/7UR9Z9+4+nghoIGhCFX/eig Content-Type: application/pgp-signature; name=signature.asc Content-Disposition: attachment; filename=signature.asc -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (FreeBSD) iEYEARECAAYFAkmPMhYACgkQBYqIVf93VJ17AgCfRYoZA/yXanDkVOhY1ZxdZ9YH vHIAn0V/VbOyrX5sJnii4OC4PvwQYsbA =f+am -----END PGP SIGNATURE----- --Sig_/7UR9Z9+4+nghoIGhCFX/eig--