From owner-cvs-all Thu Feb 13 9:42:21 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 BD1B437B401; Thu, 13 Feb 2003 09:42:16 -0800 (PST) Received: from nebula.wanadoo.fr (ca-sqy-4-136.abo.wanadoo.fr [80.8.57.136]) by mx1.FreeBSD.org (Postfix) with ESMTP id 94D8943F85; Thu, 13 Feb 2003 09:42:14 -0800 (PST) (envelope-from dak@wanadoo.fr) Received: from nebula.wanadoo.fr (localhost.wanadoo.fr [127.0.0.1]) by nebula.wanadoo.fr (8.12.7/8.12.7) with ESMTP id h1DHg1TM014239; Thu, 13 Feb 2003 18:42:01 +0100 (CET) (envelope-from dak@nebula.wanadoo.fr) Received: (from dak@localhost) by nebula.wanadoo.fr (8.12.7/8.12.7/Submit) id h1DHg1ja014238; Thu, 13 Feb 2003 18:42:01 +0100 (CET) Date: Thu, 13 Feb 2003 18:42:00 +0100 From: Aurelien Nephtali To: Bruce Evans Cc: Peter Wemm , src-committers@FreeBSD.ORG, cvs-src@FreeBSD.ORG, cvs-all@FreeBSD.ORG Subject: Re: cvs commit: src/sys/kern kern_shutdown.c Message-ID: <20030213174200.GA14220@nebula.wanadoo.fr> References: <20030213125204.GA12333@nebula.wanadoo.fr> <20030214041205.X4349-100000@gamplex.bde.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="envbJBWh7q8WU6mo" Content-Disposition: inline In-Reply-To: <20030214041205.X4349-100000@gamplex.bde.org> User-Agent: Mutt/1.5.3i 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 --envbJBWh7q8WU6mo Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Feb 14, 2003 at 04:35:12AM +1100, Bruce Evans wrote: > On Thu, 13 Feb 2003, Aurelien Nephtali wrote: >=20 > > 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:'. >=20 > 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). >=20 > Workaround: use a serial console. Serial consoles seem to be a good thing, only if a COM port is present ... = :/ If someone has set up a parallel console ... mail me please :) >=20 > I think the correct fix is to replace db_printf() by printf(). printf() = can > decide what to do more easily than callers of *printf() can (by checking > db_active). This would also avoid the once common error of calling print= f() > instead of db_printf() from ddb commands, and make printf() work right wh= en > it is called from functions that are called from within ddb using ddb's > call command (printf() should act like db_printf() then). If this fix is correct and can be done without breaking everything, can som= eone do it please ? -- Aurelien --envbJBWh7q8WU6mo Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (FreeBSD) iD8DBQE+S9joDNsbHbt8ok8RAhiiAJ4ymdGkLFG+hpWLScRGR/3bLY/QYwCgpyQg wBOgude1/+eHlsLFTPh4uC8= =WbCd -----END PGP SIGNATURE----- --envbJBWh7q8WU6mo-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message