From owner-freebsd-current@FreeBSD.ORG Tue Jan 8 00:09:16 2013 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 25ECAA2C for ; Tue, 8 Jan 2013 00:09:16 +0000 (UTC) (envelope-from delphij@delphij.net) Received: from anubis.delphij.net (anubis.delphij.net [64.62.153.212]) by mx1.freebsd.org (Postfix) with ESMTP id 13967EBC for ; Tue, 8 Jan 2013 00:09:15 +0000 (UTC) Received: from epsilon.delphij.net (drawbridge.ixsystems.com [206.40.55.65]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by anubis.delphij.net (Postfix) with ESMTPSA id 651041FC51; Mon, 7 Jan 2013 16:09:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=delphij.net; s=anubis; t=1357603754; bh=nh4+Px4mXSgxDfRR+p2Xnl2BCqnOSl31YnVuXGuV0DM=; h=Date:From:Reply-To:To:CC:Subject:References:In-Reply-To; b=1Vs46tfyhqieSrcrjuABnNQezPHXV+spVTrRXKrGTyLfV4ePKDuJm7l7G+tZdEp+O cmOCEBVwTB5hjpdCqXMz9M8t/fI4cl/WiKdSPkSclqyvWrdJP5N9tnwvdLmy9TefLb N7zFrWrDA3lE9LF9tC+B1QKnnlEGmHNtdYmUvl4o= Message-ID: <50EB63A9.50903@delphij.net> Date: Mon, 07 Jan 2013 16:09:13 -0800 From: Xin Li Organization: The FreeBSD Project MIME-Version: 1.0 To: Konstantin Belousov Subject: Re: sysctl -a causes kernel trap 12 References: <50EB602F.9050300@delphij.net> <20130108000233.GZ82219@kib.kiev.ua> In-Reply-To: <20130108000233.GZ82219@kib.kiev.ua> X-Enigmail-Version: 1.4.6 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: freebsd-current@freebsd.org, d@delphij.net X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: d@delphij.net 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:09:16 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 On 01/07/13 16:02, Konstantin Belousov wrote: > On Mon, Jan 07, 2013 at 03:54:23PM -0800, Xin Li wrote: >> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 >> >> Hi, >> >> 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. >> >> 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: >> >>> /* Resort td on the list if needed. */ if >>> (!turnstile_adjust_thread(ts, td)) { >>> mtx_unlock_spin(&ts->ts_lock); // 297 // return; } >> >> 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 ? It seems that it was not hw itself that causes the problem (I thought about isolating to sub-leaf and at one point believed it was hw.acpi.battery but doing so repeatedly doesn't panic the system, with or without INVARIANTS; doing 'sysctl hw' sometimes causes panic but not always). The laptop is running nVidia but it's using i7-3610QM which does have Intel GPU, but I have not loaded drm2.ko and the panic is reproducible in single user mode. Cheers, - -- Xin LI https://www.delphij.net/ FreeBSD - The Power to Serve! Live free or die -----BEGIN PGP SIGNATURE----- iQEcBAEBCAAGBQJQ62OpAAoJEG80Jeu8UPuzsYgH/iw8ispGuIqYkDAcfH1rh2AR MvSF3kf6OsPUAm3hRpa+VGcwssqgPTnyTgB2AGDPQ4FPurep/9sVD7rEmjy+4jFY 6bpUvirTcfSVnuEXWKq+ySaq7K+zR9SvorNMOnufS91oY+hzwwnZd3iykjhLAAth MNjmhAoSsT+MHvMBNweIoWA7FH9MxE7yfOi89foM/ZTcbibt9vY+gTpAPAlrfsab xG1w8aQhgX6/91QZGh8E1nVDo8vqO9Fqte+tkaZbEh3eJQFx8uRktvAps6T052T/ la/1zzGoqxfZZRbc0/bK7CnhyM4N5xPM1Q+eB2Q9F6F/S+XQPPhASnJNJXh0XAw= =tCfp -----END PGP SIGNATURE-----