From owner-cvs-all Thu Feb 13 13: 3:15 2003 Delivered-To: cvs-all@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 728E737B401; Thu, 13 Feb 2003 13:03:13 -0800 (PST) Received: from canning.wemm.org (canning.wemm.org [192.203.228.65]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0197543FB1; Thu, 13 Feb 2003 13:03:13 -0800 (PST) (envelope-from peter@wemm.org) Received: from wemm.org (localhost [127.0.0.1]) by canning.wemm.org (Postfix) with ESMTP id D8D952A8B4; Thu, 13 Feb 2003 13:03:12 -0800 (PST) (envelope-from peter@wemm.org) X-Mailer: exmh version 2.5 07/13/2001 with nmh-1.0.4 To: Bruce Evans Cc: Aurelien Nephtali , src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org Subject: Re: cvs commit: src/sys/kern kern_shutdown.c In-Reply-To: <20030214041205.X4349-100000@gamplex.bde.org> Date: Thu, 13 Feb 2003 13:03:12 -0800 From: Peter Wemm Message-Id: <20030213210312.D8D952A8B4@canning.wemm.org> Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Bruce Evans wrote: > On Thu, 13 Feb 2003, Aurelien Nephtali wrote: > > > It could be good now to log the backtrace :/ > > When one occurs it goes nowhere so if you cannot copy it on the moment, it is > > lost forever (without talking about stopping the console and using Page UP and > > Page Down). Only the LOR is logged + 'Stack backtrace:'. > > db_print_backtrace() never really worked, since ddb uses db_printf() but > ordinary printf() should be used (except when db_print_backtrace() is > actually from within ddb). > > Workaround: use a serial console. We probably should go a little further and provide something that isn't dependent on DDB. Since we have the symbols available in most cases (even without DDB), we may as well use them. Then we can tweak the logging so that it comes out in the way most useful for collecting for bug reports. Cheers, -Peter -- Peter Wemm - peter@wemm.org; peter@FreeBSD.org; peter@yahoo-inc.com "All of this is for nothing if we don't go to the stars" - JMS/B5 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message