From owner-freebsd-current@FreeBSD.ORG Fri Sep 5 21:08:21 2014 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id DCD14BD4; Fri, 5 Sep 2014 21:08:21 +0000 (UTC) Received: from smtp2.wemm.org (smtp2.wemm.org [IPv6:2001:470:67:39d::78]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "smtp2.wemm.org", Issuer "StartCom Class 1 Primary Intermediate Server CA" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id B97CB1D9D; Fri, 5 Sep 2014 21:08:21 +0000 (UTC) Received: from overcee.wemm.org (canning.wemm.org [192.203.228.65]) by smtp2.wemm.org (Postfix) with ESMTP id 1E397B07; Fri, 5 Sep 2014 14:08:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=wemm.org; s=m20140428; t=1409951298; bh=wNQ3h8iL6SbmH5cFKsC4aseLm1J973yDWYBdybbIoI4=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=EZ5JQlyi/WP+Qr7vf3dAsCn1lwKHHy2SJP5jWJwTXbcp3HvLkch0/9elfyf+Rrd7j qVZv6xKIXAHwEXFo6ORdNhROS6stDJr0txeMIeL4YHyHV+7odGMy8UUDDdAcfjBSgo uMNO9yQXkR840TPeOd0PJDVlrgAvQAanqjwghr/c= From: Peter Wemm To: freebsd-current@freebsd.org Subject: Re: ddb_enable="YES" by default? Date: Fri, 05 Sep 2014 14:08:07 -0700 Message-ID: <1690616.oBzWaFvmny@overcee.wemm.org> User-Agent: KMail/4.12.5 (FreeBSD/11.0-CURRENT; KDE/4.12.5; amd64; ; ) In-Reply-To: References: <201409051054.11446.jhb@freebsd.org> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart1586536.letjnL5TKF"; micalg="pgp-sha1"; protocol="application/pgp-signature" Cc: Craig Rodrigues , Brooks Davis X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.18-1 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, 05 Sep 2014 21:08:22 -0000 --nextPart1586536.letjnL5TKF Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="us-ascii" On Friday 05 September 2014 13:51:24 Craig Rodrigues wrote: > On Fri, Sep 5, 2014 at 7:54 AM, John Baldwin wrote:= > > Probably at least 50% of the time when I work with a user on a bug = report, > > I ask them to go into kgdb and run specific commands to extract mor= e > > detailed info (print some struct, etc.). >=20 > Sure, I understand, but you are not working with every user who > encounters a kernel panic in FreeBSD. For the average or casual > FreeBSD user, such as desktop > users of FreeBSD or PC-BSD, wouldn't it be better > to have ddb_enable=3D"YES" be the default in FreeBSD? The ddb script= > there does a fairly reasonable > job of gathering some useful info which can be analyzed later, and > then rebooting the box. >=20 > For more expert users, or people developing products, they can set > ddb_enable=3D"NO" > and do more advanced debugging. Or hook into /etc/rc.d/ddb and defin= e > a different > ddb script which doesn't do textdumps on kernel panic. I think what John was saying was at that point it's too late. The loss= of the=20 crash dump means the one shot at getting more information is gone. For reproducable crashes, yes, an end user could just flip the bit. Bu= t for a=20 one-off, it's too late. =2D-=20 Peter Wemm - peter@wemm.org; peter@FreeBSD.org; peter@yahoo-inc.com; KI= 6FJV UTF-8: for when a ' or ... just won\342\200\231t do\342\200\246 --nextPart1586536.letjnL5TKF Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part. Content-Transfer-Encoding: 7Bit -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQEcBAABAgAGBQJUCiZBAAoJEDXWlwnsgJ4EHigH+wQnxEa89YoYfZO/3WCiYBZ0 vcILIOJHkZ8j5MKzM/9SMUujsDJVDO/xVf4nlrzW8Z5oCWu6qulhq3P+hJXL7h54 wvpbFcxPKETk+rV5rggHQJTCCgpOnGMSadxG50MXKvOKBwkoc5S7SE+HA6XZblUa byYtDO8vj4M2vlcgEkUIIgTNRfrEzXLa9cuJCHpQycIzATSUg6q/Py8n9qkcTP3i IEGWCZorXwxKSewYmfRkW0y7R9MovOBX8VBiThNi/uf3XcEIVVkorJZOrxsaFl6r qB3mOkoIwnformBG+Ct7H4iPgUmZg3BD1YBGVHJJ1BRX5n6RMzjjpK6l0Iq4sIs= =C4Ls -----END PGP SIGNATURE----- --nextPart1586536.letjnL5TKF--