From owner-freebsd-questions@FreeBSD.ORG Tue Mar 21 22:13:09 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2BC5E16A401 for ; Tue, 21 Mar 2006 22:13:09 +0000 (UTC) (envelope-from duane@greenmeadow.ca) Received: from smtpout.eastlink.ca (smtpout.eastlink.ca [24.222.0.30]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5D65C43D46 for ; Tue, 21 Mar 2006 22:13:08 +0000 (GMT) (envelope-from duane@greenmeadow.ca) Received: from ip04.eastlink.ca ([24.222.10.20]) by mta01.eastlink.ca (Sun Java System Messaging Server 6.2-4.03 (built Sep 22 2005)) with ESMTP id <0IWI00GIA0DR2KL0@mta01.eastlink.ca> for freebsd-questions@freebsd.org; Tue, 21 Mar 2006 18:13:03 -0400 (AST) Received: from blk-224-199-230.eastlink.ca (HELO [192.168.0.103]) ([24.224.199.230]) by ip04.eastlink.ca with ESMTP; Tue, 21 Mar 2006 18:12:54 -0400 Date: Tue, 21 Mar 2006 18:11:59 -0400 From: Duane Whitty To: freebsd-questions@freebsd.org Message-id: <44207A2F.1050501@greenmeadow.ca> MIME-version: 1.0 Content-type: text/plain; charset=ISO-8859-1; format=flowed Content-transfer-encoding: 7BIT X-BrightmailFiltered: true X-Brightmail-Tracker: AAAAAQAAA+k= User-Agent: Thunderbird 1.5 (X11/20060309) Subject: Dropping into ddb from kernel panic 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: Tue, 21 Mar 2006 22:13:09 -0000 Hi, I am trying to learn how to trace kernel issues or determine if a problem even is a kernel issue. Here are the debugging options I have set in my kernel config. makeoptions DEBUG=-g options KDB options KDB_TRACE options DDB options KTRACE options AHC_REG_PRETTY_PRINT options AHD_REG_PRETTY_PRINT #sysctl -a debug.debugger_on_panic: 1 I am trying to track down two system crash problems. One is a kmem_map issue. Are my kernel debug options correct or am I missing anything (memguard perhaps)? Would being in an X session interfere with dropping into the debugger? Are there any specific options I should set in the make.conf for the buildworld/buildkernel process? Thanks in advance for any pointers --Duane