From owner-freebsd-net@FreeBSD.ORG Tue Apr 5 00:25:48 2011 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6D963106566B; Tue, 5 Apr 2011 00:25:48 +0000 (UTC) (envelope-from julian@freebsd.org) Received: from vps1.elischer.org (vps1.elischer.org [204.109.63.16]) by mx1.freebsd.org (Postfix) with ESMTP id 3F4998FC25; Tue, 5 Apr 2011 00:25:47 +0000 (UTC) Received: from julian-mac.elischer.org (home-nat.elischer.org [67.100.89.137]) (authenticated bits=0) by vps1.elischer.org (8.14.4/8.14.4) with ESMTP id p350PiMj054565 (version=TLSv1/SSLv3 cipher=DHE-RSA-CAMELLIA256-SHA bits=256 verify=NO); Mon, 4 Apr 2011 17:25:46 -0700 (PDT) (envelope-from julian@freebsd.org) Message-ID: <4D9A61A7.6080906@freebsd.org> Date: Mon, 04 Apr 2011 17:26:15 -0700 From: Julian Elischer User-Agent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X 10.4; en-US; rv:1.9.2.15) Gecko/20110303 Thunderbird/3.1.9 MIME-Version: 1.0 To: David Somayajulu References: <75E1A2A7D185F841A975979B0906BBA6774E1B99D3@AVEXMB1.qlogic.org> In-Reply-To: <75E1A2A7D185F841A975979B0906BBA6774E1B99D3@AVEXMB1.qlogic.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: "freebsd-net@freebsd.org" , "freebsd-current@freebsd.org" Subject: Re: Setting up a running FreeBSD/PCBSD system to enter kgdb on panic X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 05 Apr 2011 00:25:48 -0000 On 4/4/11 4:35 PM, David Somayajulu wrote: > Hi All, > Is there some way I can setup a running FreeBSD - (I use PCBSD7.2) - to break into kgdb when the system panics. I am trying to get a stack trace when "Fatal trap 12: page fault while in kernel mode" happens. > thanks > david S. sure but firstly have you already got everything set up so you can get into kgdb normally? (serial cable? (or firewire?) ports all set up right? second machine? here are som bits of the puzzle for my machine: from /boot/device.hints: hint.uart.1.at="isa" hint.uart.1.port="0x2F8" hint.uart.1.flags="0x80" hint.uart.1.irq="3" hint.uart.1.baud="115200" in /etc/sysctl.conf: debug.kdb.current=gdb but usually I find it better to go to ddb first and do a ps and backtrace as ps is a pain on gdb and needs macros etc. and of course kgdb needs to be set up correctly the handbook says a lot about that. > ________________________________ > This message and any attached documents contain information from QLogic Corporation or its wholly-owned subsidiaries that may be confidential. If you are not the intended recipient, you may not read, copy, distribute, or use this information. If you have received this transmission in error, please notify the sender immediately by reply e-mail and then delete this message. > _______________________________________________ > freebsd-current@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-current > To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org" > >