From owner-freebsd-current@FreeBSD.ORG Tue Mar 8 07:33:32 2005 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4209C16A4CE for ; Tue, 8 Mar 2005 07:33:32 +0000 (GMT) Received: from postfix3-1.free.fr (postfix3-1.free.fr [213.228.0.44]) by mx1.FreeBSD.org (Postfix) with ESMTP id E864643D2D for ; Tue, 8 Mar 2005 07:33:31 +0000 (GMT) (envelope-from tataz@tataz.chchile.org) Received: from tatooine.tataz.chchile.org (vol75-8-82-233-239-98.fbx.proxad.net [82.233.239.98]) by postfix3-1.free.fr (Postfix) with ESMTP id 0B28717349E; Tue, 8 Mar 2005 08:33:30 +0100 (CET) Received: by tatooine.tataz.chchile.org (Postfix, from userid 1000) id B1908407C; Tue, 8 Mar 2005 08:33:29 +0100 (CET) Date: Tue, 8 Mar 2005 08:33:29 +0100 From: Jeremie Le Hen To: Doug White Message-ID: <20050308073329.GJ94451@obiwan.tataz.chchile.org> References: <2861.172.16.0.199.1109814152.squirrel@172.16.0.199> <20050303015438.GF15329@obiwan.tataz.chchile.org> <2910.172.16.0.199.1109816379.squirrel@172.16.0.199> <20050304230723.T4084@carver.gumbysoft.com> <1646.172.16.0.199.1110049506.squirrel@172.16.0.199> <20050307184301.S32508@carver.gumbysoft.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20050307184301.S32508@carver.gumbysoft.com> User-Agent: Mutt/1.5.8i cc: Mike Jakubik cc: freebsd-current@freebsd.org cc: Jeremie Le Hen Subject: Re: dumpdev='AUTO' (was: Reproducible Panic with port iplog) X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 08 Mar 2005 07:33:32 -0000 Hi, > > Typing "call doadump" in the kernel debugger does work. Is there no way to > > have the kernel automatically do a dump when the system panics and there > > is no debugger compiled in? > > That should be the default behavior if a dumpdev is set (in rc.conf with > "dumpdev" or manually with the dumpon(8) command). This is a little bit off-topic, but I set the rc.conf(5) dumpdev variable to "AUTO". This should work (this is from rc.d/dumpon) : %%% case ${dumpdev} in [Nn][Oo] | '') ;; [Aa][Uu][Tt][Oo]) while read dev mp type more ; do [ "${type}" = "swap" ] || continue [ -c "${dev}" ] || continue if /sbin/dumpon -v "${dev}" 2>/dev/null; then # Make a symlink in devfs for savecore ln -s ${dev} /dev/dumpdev return 0 fi done