Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 13 Feb 2003 13:03:12 -0800
From:      Peter Wemm <peter@wemm.org>
To:        Bruce Evans <bde@zeta.org.au>
Cc:        Aurelien Nephtali <aurelien.nephtali@wanadoo.fr>, src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   Re: cvs commit: src/sys/kern kern_shutdown.c 
Message-ID:  <20030213210312.D8D952A8B4@canning.wemm.org>
In-Reply-To: <20030214041205.X4349-100000@gamplex.bde.org> 

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030213210312.D8D952A8B4>