From owner-freebsd-questions@FreeBSD.ORG Fri Dec 28 21:45:00 2007 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4851016A420 for ; Fri, 28 Dec 2007 21:45:00 +0000 (UTC) (envelope-from kris@FreeBSD.org) Received: from weak.local (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 74A6F13C442; Fri, 28 Dec 2007 21:44:59 +0000 (UTC) (envelope-from kris@FreeBSD.org) Message-ID: <47756E5A.9060904@FreeBSD.org> Date: Fri, 28 Dec 2007 22:44:58 +0100 From: Kris Kennaway User-Agent: Thunderbird 2.0.0.9 (Macintosh/20071031) MIME-Version: 1.0 To: Brian O'Shea References: <89106.34681.qm@web39509.mail.mud.yahoo.com> In-Reply-To: <89106.34681.qm@web39509.mail.mud.yahoo.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: FreeBSD Questions Subject: Re: buildkernel with INVARIANTS, WITNESS, DEBUG_LOCKS, etc. fails X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 28 Dec 2007 21:45:00 -0000 Brian O'Shea wrote: > Thank you for your reply, Kris. > > --- Kris Kennaway 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