Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 28 Dec 2007 22:44:58 +0100
From:      Kris Kennaway <kris@FreeBSD.org>
To:        Brian O'Shea <b_oshea@yahoo.com>
Cc:        FreeBSD Questions <freebsd-questions@freebsd.org>
Subject:   Re: buildkernel with INVARIANTS, WITNESS, DEBUG_LOCKS, etc. fails
Message-ID:  <47756E5A.9060904@FreeBSD.org>
In-Reply-To: <89106.34681.qm@web39509.mail.mud.yahoo.com>
References:  <89106.34681.qm@web39509.mail.mud.yahoo.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Brian O'Shea wrote:
> Thank you for your reply, Kris.
> 
> --- Kris Kennaway <kris@FreeBSD.org> wrote:
>> Brian O'Shea wrote:
>>> Hello FreeBSD developers,
>>>
>>> Building a FreeBSD 6.2-RELEASE kernel on an Intel Pentium 4 with the
>>> following config options causes buildkernel to fail with undefined
>>> references to stack_save, stack_zero, and stack_print functions:
>>>
>>> makeoptions DEBUG=-g
> 
> options     KDB
> options     DDB
> 
>>> options     INVARIANTS
>>> options     INVARIANT_SUPPORT
>>> options     WITNESS
>>> options     DEBUG_LOCKS
>>> options     DEBUG_VFS_LOCKS
>>> options     DIAGNOSTIC
>>>
> ...
> 
>> I think you also need DDB.
> 
> I added the KDB and DDB options and now the buildkernel succeeds.  Now
> hopefully I can get a crash dump and (try to) start debuging my problem.
> 
>> This is a minor bug which you could send-pr about if you like.
> 
> Would this be a docs bug, or a config bug?

Mostly a docs bug.  In 6.x the stack_save foo isn't really useful 
without DDB.

Kris




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