From owner-freebsd-questions@FreeBSD.ORG Sat Oct 6 19:26:51 2007 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D61FE16A418 for ; Sat, 6 Oct 2007 19:26:51 +0000 (UTC) (envelope-from fj@panix.com) Received: from mail3.panix.com (mail3.panix.com [166.84.1.74]) by mx1.freebsd.org (Postfix) with ESMTP id 8830513C45B for ; Sat, 6 Oct 2007 19:26:51 +0000 (UTC) (envelope-from fj@panix.com) Received: from panix5.panix.com (panix5.panix.com [166.84.1.5]) by mail3.panix.com (Postfix) with ESMTP id CA09013A84A; Sat, 6 Oct 2007 15:26:50 -0400 (EDT) Received: (from fj@localhost) by panix5.panix.com (8.11.6p3/8.8.8/PanixN1.1) id l96JQob21814; Sat, 6 Oct 2007 15:26:50 -0400 (EDT) Date: Sat, 6 Oct 2007 15:26:50 -0400 From: Joe Altman To: freebsd-questions@freebsd.org, freebsd-usb@freebsd.org Message-ID: <20071006192650.GA23085@panix.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20070923235741.GA22027@panix.com> User-Agent: Mutt/1.5.10i Cc: Subject: Kernel panic; fatal trap 12; on task 22, USB0: was Re: Moused issues? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 06 Oct 2007 19:26:51 -0000 NB: I've copied -usb because it looks to me like it's definitely USB that's implicated; but I still need a clue for getting a crash dump; -questions seems the place to ask for that. On Sun, Sep 23, 2007 at 07:57:41PM -0400, Joe Altman wrote: > > uname for the machine on which it fails: > > 6.2-STABLE FreeBSD 6.2-STABLE #0: Sun Sep 2 17:30:39 EDT 2007 i386 > > Is it possible to get more info on this for debugging short of putting > debugging in the kernel, and configuring a dump device; rebuilding > world, and hoping my machine does not become unusable? I'm still seeing the USB associated crashes, with sources updated several times and world remade between Sept. 23 and Oct. 6, 11 AM EDT. The above uname shows the only kernel I can use. I've attempted to obtain a dump using these instructions: http://www.freebsd.org/doc/en_US.ISO8859-1/books/developers-handbook/kerneldebug.html#KERNELDEBUG-OBTAIN And here, I think, are the relevent details. In /etc/rc.conf, I have: ##Crash dumpdev="AUTO" dumpdir="/var/tmp/crash" /var/tmp/crash exists with appropriate permissions; and swapinfo shows 2 Gig of space: ~ $: swapinfo Device 1M-blocks Used Avail Capacity /dev/ad0s1b 2048 0 2048 0% AIUI, dumpdev="AUTO" dictates the use of /dev/ad0s1b. /var/tmp has this much free space: df -m /dev/ad0s1f 3962 618 3027 17% /var/tmp However, my kernel tosses this message to the console: Fatal trap 12: page fault while in kernel mode and indicates a problem with task 22, USB[1] 0. Prior to problem with task 22, USB 0; it was the same fatal trap, task 25, USB 1. Then it indicates that there is no dump device. It seems to me that all I should have to do is define the dumpdev in rc.conf to obtain a dump; and in my case, since /var is smaller than RAM and swap, define /var/tmp/crash. So it looks to me as if I am experiencing what is described here: "...a kernel is crashing before dumpon(8) can be executed." taken from the kerneldebug.html page. Or am I missing something in the configuration of the dump device? If not, is my only option to put a dump directive into my kernel config? If so, what is the proper syntax? device dump or something else? Also, I decided it was easier for my to snap a picture than transcribe the screen; it's here if anyone is interested: chthonic.com/crash-crash-crash I'm limping along, I think; and would appreciate some clues, please. One more data point: I'm using an IBM PIII laptop; and I do not experience any crash on that; and my AMD dual core does not crash either; all three machines use, AFAICT, the same USB code. Thanks. [1] The USB controller is: