From owner-freebsd-arch@FreeBSD.ORG Mon Apr 21 19:22:57 2008 Return-Path: Delivered-To: arch@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6DFA01065686; Mon, 21 Apr 2008 19:22:57 +0000 (UTC) (envelope-from bright@elvis.mu.org) Received: from elvis.mu.org (elvis.mu.org [192.203.228.196]) by mx1.freebsd.org (Postfix) with ESMTP id 4AE568FC1F; Mon, 21 Apr 2008 19:22:57 +0000 (UTC) (envelope-from bright@elvis.mu.org) Received: by elvis.mu.org (Postfix, from userid 1192) id 2BB451A4D86; Mon, 21 Apr 2008 12:22:57 -0700 (PDT) Date: Mon, 21 Apr 2008 12:22:57 -0700 From: Alfred Perlstein To: Brooks Davis Message-ID: <20080421192257.GF95731@elvis.mu.org> References: <20080421182338.GB20417@lor.one-eyed-alien.net> <20080421185557.GB95731@elvis.mu.org> <20080421192059.GA20748@lor.one-eyed-alien.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20080421192059.GA20748@lor.one-eyed-alien.net> User-Agent: Mutt/1.4.2.3i Cc: arch@freebsd.org, current@freebsd.org Subject: Re: ddb scripts now load by default X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 21 Apr 2008 19:22:57 -0000 * Brooks Davis [080421 12:20] wrote: > On Mon, Apr 21, 2008 at 11:55:57AM -0700, Alfred Perlstein wrote: > > I know this is a big step forward in a lot of ways, but it's also > > a big step backwards for people used to how things just work. > > > > Can we somehow put a "press a key to abort reboot" option in that > > script before acting on it? > > echo 'ddb_enable="NO" >> /etc/rc.conf See, that's not really what I asked for. :) but it's OK. -Alfred > > -- Brooks > > > -Alfred (who thinks this is really cool, but wants to be able to > > debug kernels without having to learn and disable something > > new) > > > > * Brooks Davis [080421 11:24] wrote: > > > I've changed the default value of ddb_enable to YES so we now load ddb > > > scripts from ddb.conf by default. Developers expecting to perform > > > active deugging should add ddb_enable=NO or change the script to not > > > perform at textdump and reboot the machine. > > > > > > This is another step toward hopefully shipping 8.0 with DDB built > > > in and generating useful crash dumps. The security implications of > > > doing so need to be carefully considered and in particular the GENERIC > > > kernel will probably want to be shipped with at least the options > > > DDB_UNATTENDED and SC_DISABLE_KDBKEY. > > > > > > The fact that the watchdog driver changes it's behavior based on > > > DDB_UNATTENDED is probably a bug that should be fixed. > > > > > > -- Brooks > > > > > > ----- Forwarded message from Brooks Davis ----- > > > > > > From: Brooks Davis > > > Date: Mon, 21 Apr 2008 18:18:00 +0000 (UTC) > > > To: brooks@FreeBSD.ORG > > > Subject: [src] cvs commit: src/etc/defaults rc.conf > > > > > > brooks 2008-04-21 18:17:48 UTC > > > > > > FreeBSD src repository > > > > > > Modified files: > > > etc/defaults rc.conf > > > Log: > > > Change the default of ddb_enable to YES so we default to generating textdumps > > > on panic. This means you get a potentially useful dump even if your system > > > is running X when you panic. > > > > > > X-MFC after: never > > > > > > Revision Changes Path > > > 1.332 +1 -1 src/etc/defaults/rc.conf > > > _______________________________________________ > > > cvs-all@freebsd.org mailing list > > > http://lists.freebsd.org/mailman/listinfo/cvs-all > > > To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org" > > > > > > > > > Index: src/etc/defaults/rc.conf > > > diff -u src/etc/defaults/rc.conf:1.331 src/etc/defaults/rc.conf:1.332 > > > --- src/etc/defaults/rc.conf:1.331 Sun Apr 20 20:37:20 2008 > > > +++ src/etc/defaults/rc.conf Mon Apr 21 18:17:48 2008 > > > @@ -33,7 +33,7 @@ > > > apm_enable="NO" # Set to YES to enable APM BIOS functions (or NO). > > > apmd_enable="NO" # Run apmd to handle APM event from userland. > > > apmd_flags="" # Flags to apmd (if enabled). > > > -ddb_enable="NO" # Set to YES to load ddb scripts at boot. > > > +ddb_enable="YES" # Load ddb scripts at boot. > > > ddb_config="/etc/ddb.conf" # ddb(8) config file. > > > devd_enable="YES" # Run devd, to trigger programs on device tree changes. > > > devd_flags="" # Additional flags for devd(8). > > > > > > > > > ----- End forwarded message ----- > > > > > > > > -- > > - Alfred Perlstein > > _______________________________________________ > > freebsd-arch@freebsd.org mailing list > > http://lists.freebsd.org/mailman/listinfo/freebsd-arch > > To unsubscribe, send any mail to "freebsd-arch-unsubscribe@freebsd.org" > > -- - Alfred Perlstein