From owner-freebsd-questions Tue Feb 4 7: 4:43 2003 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 8E6AB37B401 for ; Tue, 4 Feb 2003 07:04:39 -0800 (PST) Received: from pa-plum1b-166.pit.adelphia.net (pa-plum1b-166.pit.adelphia.net [24.53.161.166]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4757843F3F for ; Tue, 4 Feb 2003 07:04:38 -0800 (PST) (envelope-from wmoran@potentialtech.com) Received: from potentialtech.com ([172.16.0.95]) by pa-plum1b-166.pit.adelphia.net (8.12.3/8.12.3) with ESMTP id h14F62T5072546; Tue, 4 Feb 2003 10:06:02 -0500 (EST) (envelope-from wmoran@potentialtech.com) Message-ID: <3E3FD63B.5040302@potentialtech.com> Date: Tue, 04 Feb 2003 10:03:23 -0500 From: Bill Moran User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.1) Gecko/20021127 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Dilshod Cc: freebsd-questions@freebsd.org Subject: Re: How can I debug ? I want to help. References: <002201c2cc27$4ef1de60$5f4f0844@DT> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Dilshod wrote: > Hello everyone, > > The reason I'm posting this question is because I am not entirely sure > how to approach this issue. That's funny, that's the exact same reason most people ask questions ;) > A little of my background: I am NOT completely newbie to the FreeBSD > system. I've used FreeBSD for some time, for about a year. Recently, I > upgraded my system to FreeBSD 5.0 by clean installation. Right now > everything is up to date. One reason, I want to have FreeBSD 5.0, is > because I wanted to test it , and by that do my contribution to the > FreeBSD community. Fantastic. > However, I encountered one problem, I don't know what to do when my > system completely freezes. I know at what moments but I don't know at > what level it's, i.e.. kernel level , device, X-server, window manager, > application. The only way out when my computer freezes by pressing reset > button. This also happens to friend's computer, the hardware > architecture is different, but same OS. My background is computer > science. I know C, and some assembly. > How to capture a problem , and debug it ? The easiest way I know, is sometimes you can still ssh/telnet in to the box, and then use gdb or other debuggin tools as you normally would. Unless, of course, if the whole box is locked up solid. If that's not an option, you'll need to do serial debugging. I'm not going to pretend that I know much about that, but I do know where to point you for reading on it: http://www.freebsd.org/doc/en_US.ISO8859-1/books/developers-handbook/index.html Section 17 is on kernel debugging, and goes through setting up a remote gdb debugger. -- Bill Moran Potential Technologies http://www.potentialtech.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message