From owner-freebsd-current@freebsd.org Fri Jun 9 15:23:57 2017 Return-Path: Delivered-To: freebsd-current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id D4DC7BF76A7 for ; Fri, 9 Jun 2017 15:23:57 +0000 (UTC) (envelope-from david@catwhisker.org) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id BBF5E70EBB for ; Fri, 9 Jun 2017 15:23:57 +0000 (UTC) (envelope-from david@catwhisker.org) Received: by mailman.ysv.freebsd.org (Postfix) id B87B9BF76A5; Fri, 9 Jun 2017 15:23:57 +0000 (UTC) Delivered-To: current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id B811FBF76A4 for ; Fri, 9 Jun 2017 15:23:57 +0000 (UTC) (envelope-from david@catwhisker.org) Received: from albert.catwhisker.org (mx.catwhisker.org [198.144.209.73]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 8B5D870EBA; Fri, 9 Jun 2017 15:23:57 +0000 (UTC) (envelope-from david@catwhisker.org) Received: from albert.catwhisker.org (localhost [127.0.0.1]) by albert.catwhisker.org (8.15.2/8.15.2) with ESMTP id v59FNtAj076957; Fri, 9 Jun 2017 15:23:55 GMT (envelope-from david@albert.catwhisker.org) Received: (from david@localhost) by albert.catwhisker.org (8.15.2/8.15.2/Submit) id v59FNtRe076956; Fri, 9 Jun 2017 08:23:55 -0700 (PDT) (envelope-from david) Date: Fri, 9 Jun 2017 08:23:55 -0700 From: David Wolfskill To: Konstantin Belousov Cc: current@freebsd.org, glebius@freebsd.org Subject: Re: Panic @r319733: "mtx_lock() of spin mutex (null) @ /usr/src/sys/kern/sys_socket.c:305" Message-ID: <20170609152355.GZ1180@albert.catwhisker.org> Mail-Followup-To: David Wolfskill , Konstantin Belousov , current@freebsd.org, glebius@freebsd.org References: <20170609125715.GP1180@albert.catwhisker.org> <20170609135517.GA2088@kib.kiev.ua> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="NnUDYhz5zoqA1Riz" Content-Disposition: inline In-Reply-To: <20170609135517.GA2088@kib.kiev.ua> User-Agent: Mutt/1.8.2 (2017-04-18) X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.23 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: Fri, 09 Jun 2017 15:23:57 -0000 --NnUDYhz5zoqA1Riz Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Jun 09, 2017 at 04:55:17PM +0300, Konstantin Belousov wrote: > On Fri, Jun 09, 2017 at 05:57:15AM -0700, David Wolfskill wrote: > > Build machine updated from r319689 to r319733 OK; smoke test was > > uneventful. > >=20 > > Laptop updated similarly, but smoke test was a little more "interesting= ". > >=20 > > Turns out that laptop gets to multi-user mode OK... if I disable > > starting xdm, devd, and hald. But then, issuing "service hald onestart" > > generates the panic in question -- at r319733. At r319689, xdm & > > friends worked fine. > >=20 > > I have placed copies of the /var/crash/*.6 files in > > -- along with > > gzipped copies, as well. (It's residential DSL in the US, so there's > > not a huge amount of bandwidth.) > >=20 > > I get the impression that something (ini hald) was trying to use > > the freebsd11 version of stat(), and Something Bad happened: > >=20 > > panic: mtx_lock() of spin mutex (null) @ /usr/src/sys/kern/sys_socket.c= :305 > > cpuid =3D 7 > > time =3D 1497011454 > > KDB: stack backtrace: > > db_trace_self_wrapper() at 0xffffffff803a461b =3D db_trace_self_wrapper= +0x2b/frame 0xfffffe0c268ff600 > > vpanic() at 0xffffffff80a1f94c =3D vpanic+0x19c/frame 0xfffffe0c268ff680 > > kassert_panic() at 0xffffffff80a1f7a6 =3D kassert_panic+0x126/frame 0xf= ffffe0c268ff6f0 > > __mtx_lock_flags() at 0xffffffff809fedfe =3D __mtx_lock_flags+0x14e/fra= me 0xfffffe0c268ff740 > > soo_stat() at 0xffffffff80a8f8f0 =3D soo_stat+0x60/frame 0xfffffe0c268f= f770 > > The main suspect is r319722. > Try reverting it or downgrading before it (the later might be simple due > to the patch size). > .... It was easy enough for me to use "svn diff -c r319722" & "svn patch --reverse-diff" to effectively revert r319722. I re-ran the build after that, and a subsequent reboot allowed me to "sudo service hald onestart" (which whined a bit about dbus not being enabled but started it anyway), after which I was able to start xdm -- so that seems to have been successful. Perhaps I'll chat with Gleb a bit later today. :-) (Our cubes are adjacent.) Thanks, Konstantin! :-) Peace, david --=20 David H. Wolfskill david@catwhisker.org Looking forward to telling Mr. Trump: "You're fired!" See http://www.catwhisker.org/~david/publickey.gpg for my public key. --NnUDYhz5zoqA1Riz Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQF8BAEBCgBmBQJZOr2LXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXRDQ0I3Q0VGOTE3QTgwMUY0MzA2NEQ3N0Ix NTM5Q0M0MEEwNDlFRTE3AAoJEBU5zECgSe4XlnkH/3kcm1elZsj/DQXCIwSXFEpb zbKbIUnqnuI+HFKf5c57SiCqduu4d5W/n3idGElOsquT10wSZzwTCYiHKSG/ytj8 jO51X1cfA+7LIJGSQCiFnHjbyYw6awo6Hvlh7i4wO6NQmEwMYffBgDvHt6zHSfd+ 2br24fBBzWihn+XtJd3HU50n394vyz/TKLl/9Idj1lhQMSPC5pJxxofnUKQGpQVF qeFoDVuwEcH157qc8BV/QygHThooay2/WhPzTmCiPsfXgGUPAHxpGvnvOUaOo/VU RrRC6YKenSohNRYmKULoRwuEdpqDh5kiYqRfuOfoLjgUg6MUNp9Lj9Fzq5PFOKA= =PoRa -----END PGP SIGNATURE----- --NnUDYhz5zoqA1Riz--