From owner-freebsd-hackers@FreeBSD.ORG Thu May 20 07:47:24 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A68B716A4CE for ; Thu, 20 May 2004 07:47:24 -0700 (PDT) Received: from temp.interexc.com (temp.interexc.com [193.108.123.150]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5EC5D43D3F for ; Thu, 20 May 2004 07:47:23 -0700 (PDT) (envelope-from nick@temp.interexc.com) Received: from temp.interexc.com (localhost [127.0.0.1]) by temp.interexc.com (8.12.10/8.12.10) with ESMTP id i4JF4Vb1004192; Wed, 19 May 2004 18:04:31 +0300 (EEST) (envelope-from nick@temp.interexc.com) Received: (from nick@localhost) by temp.interexc.com (8.12.10/8.12.10/Submit) id i4JF4VQ0004191; Wed, 19 May 2004 18:04:31 +0300 (EEST) (envelope-from nick) Date: Wed, 19 May 2004 18:04:31 +0300 From: Nick Strebkov To: Peter Pentchev Message-ID: <20040519145945.GA3821@temp.interexc.com> References: <20040519133442.GA90053@nord.interexc.com> <20040519142004.GA5125@straylight.m.ringlet.net> Mime-Version: 1.0 Content-Type: text/plain; charset=koi8-u Content-Disposition: inline In-Reply-To: <20040519142004.GA5125@straylight.m.ringlet.net> User-Agent: Mutt/1.4.1i X-Operating-System: FreeBSD 5.2.1-RELEASE-p6 X-Real-Name: =?koi8-u?B?89TSxcLLz9cgSMnLz8zByiDhzsHU?= =?koi8-u?B?z8zYxdfJ3g==?= cc: hackers@freebsd.org Subject: Re: obtaining a kernel crash dump X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 20 May 2004 14:47:24 -0000 On Wed, May 19, 2004 at 05:20:04PM +0300, Peter Pentchev wrote: > On Wed, May 19, 2004 at 04:34:42PM +0300, Nick Strebkov wrote: > > Hi there. > > > > I can't obtain a crash dump. > > > > % cat /sys/i386/conf/DEVEL | grep makeoptions > > makeoptions DEBUG=-g > > % cat /etc/rc.conf| grep dump > > dumpdev="/dev/ar0s1b" > > dumpdir="/var/crash" > > > > I'm testing my kernel patch and the following is what I see in > > /var/log/messages: > > Can you force the kernel to dump by using DDB? Place 'options DDB' in > your kernel config, then, when the system is quiescent, hit Ctrl-Alt-Esc > and type 'panic' at the DDB prompt. > > If this works, and you get a crash dump, then the problem might be that > with your kernel patch, the kernel is panicking in a low-level layer, > like memory management or disk drivers or something like that, and it > simply cannot make a crash dump, since that would mean invoking code > that depends on bad data or something. Thanks a lot. I'll try. I modify the ip_input.c in the manner like IPFW do. -- Nick Strebkov Public key: http://humgat.org/~nick/pubkey.txt fpr: 552C 88D6 895B 6E64 F277 D367 8A70 8132 47F5 C1B6