From owner-freebsd-current@FreeBSD.ORG Mon Jan 24 10:51:17 2011 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 08F0C106566B; Mon, 24 Jan 2011 10:51:17 +0000 (UTC) (envelope-from gljennjohn@googlemail.com) Received: from mail-fx0-f54.google.com (mail-fx0-f54.google.com [209.85.161.54]) by mx1.freebsd.org (Postfix) with ESMTP id 636FE8FC16; Mon, 24 Jan 2011 10:51:15 +0000 (UTC) Received: by fxm16 with SMTP id 16so4166883fxm.13 for ; Mon, 24 Jan 2011 02:51:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:date:from:to:cc:subject:message-id:in-reply-to :references:reply-to:x-mailer:mime-version:content-type :content-transfer-encoding; bh=4k+uZbtr2QawtU1yjz1pm+LrS2bMb5OsslupfY5LIN0=; b=Cz4zwBGIZ/gnnp/UmmKY/xUpncYkome2Ro25OuVKs+iWKszZ4sWxyWrqrjqRHLqXrJ DNSAO1CaqCSH0YBGrwxGsMZeuFxX2iVJJdsMGaiTvpadEUNnt7697HqSp6FPtSs1+jEI vZqy9gTBZY0LHVopT2Qg+LQuTzrhyuhwBlt9I= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=date:from:to:cc:subject:message-id:in-reply-to:references:reply-to :x-mailer:mime-version:content-type:content-transfer-encoding; b=N1xYhUnHBXxOTYI2xyCPWGkH3NQSvT+flq/3Qv5rV+LJoUvEKL1gq0t0VVq+WR+xzc 5UQcd9ii2I4KV40wBngFG9qowVBkQZ2GfYNtRyfRYpBUMtQ4wY38apMVAO0gebsKHEba clsXNsHyhVtfRrsFHJXmjjxoGud/1Nf/7yWJo= Received: by 10.223.106.134 with SMTP id x6mr4033203fao.73.1295866275134; Mon, 24 Jan 2011 02:51:15 -0800 (PST) Received: from ernst.jennejohn.org (p578E2521.dip.t-dialin.net [87.142.37.33]) by mx.google.com with ESMTPS id k6sm4464632faa.6.2011.01.24.02.51.13 (version=TLSv1/SSLv3 cipher=RC4-MD5); Mon, 24 Jan 2011 02:51:14 -0800 (PST) Date: Mon, 24 Jan 2011 11:51:12 +0100 From: Gary Jennejohn To: Doug Barton Message-ID: <20110124115112.624daee1@ernst.jennejohn.org> In-Reply-To: <4D3CF1DE.8010403@FreeBSD.org> References: <4D3CB2FE.2080603@gmail.com> <4D3CF1DE.8010403@FreeBSD.org> X-Mailer: Claws Mail 3.7.8 (GTK+ 2.18.7; amd64-portbld-freebsd9.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: David Demelier , freebsd-current@freebsd.org, Garrett Cooper Subject: Re: why panic(9) ? X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: gljennjohn@googlemail.com List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 24 Jan 2011 10:51:17 -0000 On Sun, 23 Jan 2011 19:28:30 -0800 Doug Barton wrote: > On 01/23/2011 15:00, David Demelier wrote: > > In any case, when panic occurs, switching display to the tty can be > > great. Why not a sysctl like kern.tty_on_panic? Because when you're > > running X and a panic occurs not everybody understand what happens. > > Putting the following in /etc/sysctl.conf can help: > > debug.debugger_on_panic=0 > > The reason being that sometimes when you panic in X the system is > attempting to drop to the debugger, but can't, which is why it hangs. > For what it's worth this appears to be the default on -current. -- Gary Jennejohn