From owner-freebsd-current@FreeBSD.ORG Tue Jan 8 00:08:48 2013 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id C1D41871 for ; Tue, 8 Jan 2013 00:08:48 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from kib.kiev.ua (kib.kiev.ua [IPv6:2001:470:d5e7:1::1]) by mx1.freebsd.org (Postfix) with ESMTP id B829CE56 for ; Tue, 8 Jan 2013 00:03:11 +0000 (UTC) Received: from tom.home (kostik@localhost [127.0.0.1]) by kib.kiev.ua (8.14.5/8.14.5) with ESMTP id r0802X6x010279; Tue, 8 Jan 2013 02:02:33 +0200 (EET) (envelope-from kostikbel@gmail.com) DKIM-Filter: OpenDKIM Filter v2.7.3 kib.kiev.ua r0802X6x010279 Received: (from kostik@localhost) by tom.home (8.14.5/8.14.5/Submit) id r0802XA3010278; Tue, 8 Jan 2013 02:02:33 +0200 (EET) (envelope-from kostikbel@gmail.com) X-Authentication-Warning: tom.home: kostik set sender to kostikbel@gmail.com using -f Date: Tue, 8 Jan 2013 02:02:33 +0200 From: Konstantin Belousov To: d@delphij.net Subject: Re: sysctl -a causes kernel trap 12 Message-ID: <20130108000233.GZ82219@kib.kiev.ua> References: <50EB602F.9050300@delphij.net> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="1PhPE3kzXS7rBT0C" Content-Disposition: inline In-Reply-To: <50EB602F.9050300@delphij.net> User-Agent: Mutt/1.5.21 (2010-09-15) X-Spam-Status: No, score=-2.0 required=5.0 tests=ALL_TRUSTED,BAYES_00, DKIM_ADSP_CUSTOM_MED,FREEMAIL_FROM,NML_ADSP_CUSTOM_MED autolearn=no version=3.3.2 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on tom.home Cc: freebsd-current@freebsd.org X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.14 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: Tue, 08 Jan 2013 00:08:48 -0000 --1PhPE3kzXS7rBT0C Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Jan 07, 2013 at 03:54:23PM -0800, Xin Li wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA256 >=20 > Hi, >=20 > I've recently (by mid-December I think) noticed that sysctl -a can > sometimes cause kernel trap 12. Tried enabling INVARIANTS and the > problem mysteriously disappeared. After some experiments on this, it > seems that this can be triggered by sysctl -a but the system have an 1 > in 10 chance to survive. When INVARIANTS is enabled however, I can > not trigger the panic. "sysctl hw" triggers the panic sometimes, but > not always. >=20 > Do anybody have clue on this? The system hangs hard when it panics so > kernel debugger won't work. When it panics, the fault instruction > pointer is always 0x20:0xffffffff808d61c9, which is > sys/kern/subr_turnstile.c:297: >=20 > > /* Resort td on the list if needed. */ if > > (!turnstile_adjust_thread(ts, td)) { mtx_unlock_spin(&ts->ts_lock); > > // 297 // return; } >=20 > This sounds like a race condition but I haven't yet able to track it > down... Could you try to isolate the sub-leaf under hw which causes the panic ? Just shot in the dark, do you have Intel GPU gemified driver loaded ? --1PhPE3kzXS7rBT0C Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.19 (FreeBSD) iQIcBAEBAgAGBQJQ62IYAAoJEJDCuSvBvK1B+d4P/0DrwSyV2MYDKfxbl4OT/f6r Mcrof8S/Bgpa7YMJiMVWDzIkyIBsViA+ukQpl7iiieVBS5YQOtdy63JXUbegFVpB AK+CLIjQ9wLYINe2GOnhclP2mjV80R3QxY61Vj1WR3zoL7Nhml6WDl8FDiizSAq8 ZiLn/3mBIhzphqybs++h2ZeMY0CyY8FFi0m6X9mkNdcfbmuiqywWCYQYU1L3+H5L /jpnVtZK/T7S6UTz+zIf3foYGoOnxIYFYWGD6ceMKXyYN4MRIG9ybvuJ4Lgwgjin MmiIOAcN13ERbu7aLXxOgGa9uGA/FcZA2zx+1N/HtRnSshI1NcfEn8Nz+/Yb1Nad 5TXb+UOYXtQI51C20Ns76hOLDuvY6nmdLAP2M7NPNUzJ6J+kV6kz4mXJ53sqtEEH +dr8QwwVdXKLf4uNi8G9hssGxO/TyGNvQMR4WrK07MjSb4AT5dAlY5MogR7V2yVq CswGfqPCAAEbVBhcB0oeZ9odp88md7KrS6jyaRzWUYtfw29tqqK+AnBd283TUMlg Qn44coabfD+Soznd5j3ryyTOtnbuRvsSs7X0t0YSlej5h1JR9BS1W0hX5J8ilXIA XbNXhXUJLpz4Us2LGwPd92P3KDJTYxj/Z9tXLCl9od5QFkLpOzSfvmcxrcwarz9t Li9xHx3pfpgXiKo8jjHw =OGXM -----END PGP SIGNATURE----- --1PhPE3kzXS7rBT0C--