From owner-cvs-src@FreeBSD.ORG Wed Apr 23 22:00:56 2008 Return-Path: Delivered-To: cvs-src@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 179801065674 for ; Wed, 23 Apr 2008 22:00:56 +0000 (UTC) (envelope-from lynx.ripe@gmail.com) Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.172]) by mx1.freebsd.org (Postfix) with ESMTP id 95A8C8FC14 for ; Wed, 23 Apr 2008 22:00:55 +0000 (UTC) (envelope-from lynx.ripe@gmail.com) Received: by ug-out-1314.google.com with SMTP id y2so590525uge.37 for ; Wed, 23 Apr 2008 15:00:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; bh=aPzrZ5uTVZl0+/QpmWvNjpCp24KadBLPtD6vacybAGA=; b=ncu+VHebkenDxGZd+ZjQYkzDmNSLrGzlBmDsK6uS+ZPivF32rUFrusDot0bk52qN10g4gzg1vKdBJ/29ZtqUvnU8BBsJz7qdmxHvumOEzvYQ33cu6IpxFYlcowY8+J1iV42CPdRML61ua0hOI/p29HeiLbj0Js4pzwg6kbAwi14= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=iX9FRQTqJjyBK9XUEvwN8J+7mcDUnbfae7q2J7deXghjeq5Isj0xw7Mc4aoS0J/92eJuUxAETc1lsxdx+EOGbFDPC5IUBsq5cED3V0aq8I7k5iD/VhQ78fZh3nXGUvlGmmGCFbfK6y7KFuz7OWi2/JCjSiDu8wAUl2xzxGatyjY= Received: by 10.66.237.9 with SMTP id k9mr9019685ugh.13.1208986529815; Wed, 23 Apr 2008 14:35:29 -0700 (PDT) Received: by 10.66.249.12 with HTTP; Wed, 23 Apr 2008 14:35:29 -0700 (PDT) Message-ID: <754a9c140804231435p20abc4a0pdf1d65d2374b0c91@mail.gmail.com> Date: Thu, 24 Apr 2008 00:35:29 +0300 From: "Dmitry Pryanishnikov" To: "John Baldwin" , "Brooks Davis" , cvs-src@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Cc: Subject: Re: cvs commit: src/etc/defaults rc.conf X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 23 Apr 2008 22:00:56 -0000 Hello! On Wed, 23 Apr 2008 John Baldwin wrote: >> 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. > > Note that for many panics (such as page faults due to a NULL pointer > dereference) the enhanced stack handling ability of kgdb (ability to examine > local variables in stack frames, etc.) is a lot more useful than ddb and now > those panics won't be nearly as easy to debug via textdumps. > > As far as panics in X are concerned, that is a bug in the console driver that > it doesn't just abort ddb already and write out a dump and reboot. I've been > disabling ddb on panics via tunable as a workaround on my laptop to get > crashdumps during panics in X. Indeed, I haven't missed a single crash dump since addition of debug.debugger_on_panic=0 to /etc/sysctl.conf on my Asus M5A. That crashes occur now and again due to usb/116561 (previously in RELENG_6, now in RELENG_7) almost always during web browsing in X while using CDMA USB modem. I also think that textdumps severely limit amount of available debugging information as compared with ordinary memory [mini]dump. I don't think one can reliably and universally foresee which variables/structures should be dumped by ddb scripts; and once you don't have access to some specific piece of info in textdump, you can't proceed with the debugging. There is no such problem with ordinary dumps as they contain all information available at the moment of the crash. -- Sincerely, Dmitry nic-hdl: LYNX-RIPE