ddb_enable="YES" by default?

Peter Wemm peter at wemm.org
Fri Sep 5 21:08:22 UTC 2014


On Friday 05 September 2014 13:51:24 Craig Rodrigues wrote:
> On Fri, Sep 5, 2014 at 7:54 AM, John Baldwin <jhb at freebsd.org> 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.

I think what John was saying was at that point it's too late.  The loss of the 
crash dump means the one shot at getting more information is gone.

For reproducable crashes, yes, an end user could just flip the bit.  But for a 
one-off, it's too late.

-- 
Peter Wemm - peter at wemm.org; peter at FreeBSD.org; peter at yahoo-inc.com; KI6FJV
UTF-8: for when a ' or ... just won\342\200\231t do\342\200\246
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 473 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.freebsd.org/pipermail/freebsd-current/attachments/20140905/af85b2da/attachment.sig>


More information about the freebsd-current mailing list