From owner-freebsd-questions@FreeBSD.ORG Wed Feb 27 20:07:38 2008 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 2AA811065675 for ; Wed, 27 Feb 2008 20:07:38 +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 ABBF98FC1B; Wed, 27 Feb 2008 20:07:34 +0000 (UTC) (envelope-from kris@FreeBSD.org) Message-ID: <47C5C304.40400@FreeBSD.org> Date: Wed, 27 Feb 2008 21:07:32 +0100 From: Kris Kennaway User-Agent: Thunderbird 2.0.0.9 (Macintosh/20071031) MIME-Version: 1.0 To: Bruce Cran References: <724581.33334.qm@web30807.mail.mud.yahoo.com> <47C5571C.5090207@FreeBSD.org> <39DC135F7F0571489196E0B6F5D58B4A05DDB404@MWBEXCH.mweb.com> <47C56C52.2090804@FreeBSD.org> <26ddd1750802270827x21eab37du3443b7a25c6ab6eb@mail.gmail.com> <47C5A890.6070401@cran.org.uk> In-Reply-To: <47C5A890.6070401@cran.org.uk> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Cc: Maxim Khitrov , Freebsd questions Subject: Re: FreeBSD 7.0 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: Wed, 27 Feb 2008 20:07:38 -0000 Bruce Cran wrote: >> Just curious - is there a reason why the generic kernel is still being >> built with debug symbols? I thought that was only used during the >> pre-release phase. >> > > WITNESS and INVARIANTS are enabled before the pre-release phase (i.e > before -BETA) > - as far as I know debug symbols are always generated by default, and > are dumped into /boot/kernel > as separate files. They don't hurt performance (unlike witness and > invariants) and are useful in a > few situations, one of which is if you ever get a panic. Just so. If there are no debug symbols present then users who manage to cause a panic cannot obtain the backtrace that is required to analyse the bug report. Before we made debugging symbols installed by default we had to toss out a lot of otherwise valuable bug reports because sufficient information could not be obtained after the fact. Kris