From owner-freebsd-current@FreeBSD.ORG Fri Sep 5 20:51:27 2014 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 684C481E; Fri, 5 Sep 2014 20:51:27 +0000 (UTC) Received: from mail-lb0-x231.google.com (mail-lb0-x231.google.com [IPv6:2a00:1450:4010:c04::231]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 89FBE1C89; Fri, 5 Sep 2014 20:51:26 +0000 (UTC) Received: by mail-lb0-f177.google.com with SMTP id l4so1648625lbv.36 for ; Fri, 05 Sep 2014 13:51:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type; bh=4zCUbJmzxHFsnsTUSGwh7Uwv3RGkgs+9ylQrL3GMWeU=; b=wSK5dvbKfS6IOm6YyZToKmqZb29829rzktqTEKTGY+p+9wuqr3A1bL01scvUnEx271 qIz1JTSihcJkgRTBxDswCIkOClCMIjsCGBHNMGbDbRPzRDvF1BhX+8EOacp68tf2q2L/ X/Tf5b1rpJK2BftCY7XykGuW2uZqxF/8iHZht85AwqHpKInVMwbXYHxCju/VMT0zpfXr /yadTlT2j8/dmq0ve5lT3GP+grCVSDxwOmtUzpx/6cV3LrAr6h0C7HXyTxnJgEy7PYed AQM9ZUHwQW0vufUDODQtbjn7kyNYDWavOhnjCUQb/QGKy1KDC3OBv+0VAx8AaLFQP+5p IYHA== MIME-Version: 1.0 X-Received: by 10.112.149.133 with SMTP id ua5mr13445250lbb.40.1409950284336; Fri, 05 Sep 2014 13:51:24 -0700 (PDT) Sender: crodr001@gmail.com Received: by 10.112.22.72 with HTTP; Fri, 5 Sep 2014 13:51:24 -0700 (PDT) In-Reply-To: <201409051054.11446.jhb@freebsd.org> References: <201409051054.11446.jhb@freebsd.org> Date: Fri, 5 Sep 2014 13:51:24 -0700 X-Google-Sender-Auth: BH-HMZRWwFnnTEOksTX95QYqpZg Message-ID: Subject: Re: ddb_enable="YES" by default? From: Craig Rodrigues To: John Baldwin Content-Type: text/plain; charset=ISO-8859-1 Cc: freebsd-current Current , 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 20:51:27 -0000 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 more detailed > info (print some struct, etc.). 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="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. For more expert users, or people developing products, they can set ddb_enable="NO" and do more advanced debugging. Or hook into /etc/rc.d/ddb and define a different ddb script which doesn't do textdumps on kernel panic. -- Craig