From owner-freebsd-rc@FreeBSD.ORG Tue Nov 27 06:49:43 2007 Return-Path: Delivered-To: freebsd-rc@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9FEB216A41A for ; Tue, 27 Nov 2007 06:49:43 +0000 (UTC) (envelope-from dougb@FreeBSD.org) Received: from mail2.fluidhosting.com (mx21.fluidhosting.com [204.14.89.4]) by mx1.freebsd.org (Postfix) with SMTP id 72CDD13C467 for ; Tue, 27 Nov 2007 06:49:41 +0000 (UTC) (envelope-from dougb@FreeBSD.org) Received: (qmail 8787 invoked by uid 399); 27 Nov 2007 06:49:22 -0000 Received: from localhost (HELO ?192.168.0.4?) (dougb@dougbarton.us@127.0.0.1) by localhost with ESMTP; 27 Nov 2007 06:49:22 -0000 X-Originating-IP: 127.0.0.1 Date: Mon, 26 Nov 2007 22:49:02 -0800 (PST) From: Doug Barton To: Robert Watson In-Reply-To: <20071126101420.N65286@fledge.watson.org> Message-ID: References: <20071126101420.N65286@fledge.watson.org> User-Agent: Alpine 0.99999 (BSF 796 2007-11-08) X-message-flag: Outlook -- Not just for spreading viruses anymore! X-OpenPGP-Key-ID: 0xD5B2F0FB Organization: http://www.FreeBSD.org/ MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: koitsu@FreeBSD.org, freebsd-rc@FreeBSD.org Subject: Re: RELENG_6 kernel panic + savecore(8) problem (fwd) X-BeenThere: freebsd-rc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussion related to /etc/rc.d design and implementation." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 27 Nov 2007 06:49:43 -0000 It's an already-known chicken and egg problem. In order to run savecore you have to have file systems mounted. In order to have file systems mounted you have to have swap. Short term fix is to disable swapping on the system long enough to get the dump, then reboot with swapping turned back on. Longer term I have some patches for a fairly complicated dance between savecore, swapon and disk mounting around here somewhere. I'll try to resurrect them, but that's not likely to happen till later this week. hth, Doug On Mon, 26 Nov 2007, Robert Watson wrote: > > > FYI. > > > > Robert N M Watson > Computer Laboratory > University of Cambridge > > ---------- Forwarded message ---------- > Date: Sun, 25 Nov 2007 18:33:13 -0800 > From: Jeremy Chadwick > To: freebsd-stable@freebsd.org > Subject: Re: RELENG_6 kernel panic + savecore(8) problem > > On Sun, Nov 25, 2007 at 06:21:36PM -0800, Jeremy Chadwick wrote: >> I believe the problem is that /etc/rc.d/swap1 is being run before >> savecore. I'm guessing that swapon(8) actually destroys/clobbers the >> existing saved kernel panic/core data, thus one will never get a >> coredump in /var/crash. I believe some re-organisation of rcorder(8) >> arguments in the files is in order, but I don't know what should >> be changed to what. >> >> I'll submit a PR for the above, because IMHO that's a serious one. > > PR 118255 has been opened for this matter. > > http://www.freebsd.org/cgi/query-pr.cgi?pr=118255 > > -- This .signature sanitized for your protection