From owner-freebsd-stable@FreeBSD.ORG Mon Jan 1 15:10:18 2007 Return-Path: X-Original-To: freebsd-stable@freebsd.org Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id DA81616A412 for ; Mon, 1 Jan 2007 15:10:18 +0000 (UTC) (envelope-from stb@lassitu.de) Received: from koef.zs64.net (koef.zs64.net [212.12.50.230]) by mx1.freebsd.org (Postfix) with ESMTP id 737BC13C442 for ; Mon, 1 Jan 2007 15:10:18 +0000 (UTC) (envelope-from stb@lassitu.de) Received: (from stb@koef.zs64.net) (authenticated) by koef.zs64.net (8.13.8/8.13.8) with ESMTP id l01Evlev041340 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NO); Mon, 1 Jan 2007 15:57:48 +0100 (CET) (envelope-from stb@lassitu.de) In-Reply-To: <3aaaa3a0701010331u72d70e90p714a0171fe9f292a@mail.gmail.com> References: <20061230035722.L39715@thebighonker.lerctr.org> <4596543D.2090700@orchid.homeunix.org> <3aaaa3a0701010331u72d70e90p714a0171fe9f292a@mail.gmail.com> Mime-Version: 1.0 (Apple Message framework v752.2) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: Content-Transfer-Encoding: 7bit From: Stefan Bethke Date: Mon, 1 Jan 2007 15:57:46 +0100 To: Chris X-Mailer: Apple Mail (2.752.2) Cc: FreeBSD Stable Subject: Re: 6.2-PRE: Fatal Trap? X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 01 Jan 2007 15:10:18 -0000 Am 01.01.2007 um 12:31 schrieb Chris: > Is it possible to make it auto run debugger, then auto run backtrace > then dump the output to disk so people who have no local access can > get backtraces? No, but you can enable crashdumps and run the debugger on the dump afterwards. Add dumpdev="AUTO" to /etc/rc.conf, then run /etc/rc.d/dumpon start. When the next panic occurs, the kernel will write the dump to the configured swap space, and the system will save the dump to /var/crash on rebooting. See http://www.freebsd.org/doc/en_US.ISO8859-1/books/developers-handbook/ kerneldebug-gdb.html on how to get a backtrace from that dump. If you're short on space in /var, and/or you have a large amount of RAM, you can set the sysctl debug.minidump to 1 to have the kernel only dump relevant portions of memory, instead of everything. This, however, is experimental in -stable, afaik. Stefan -- Stefan Bethke Fon +49 170 346 0140