From owner-freebsd-hackers@FreeBSD.ORG Tue Jul 8 07:11:53 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B31071065679 for ; Tue, 8 Jul 2008 07:11:53 +0000 (UTC) (envelope-from fernando.apesteguia@gmail.com) Received: from fg-out-1718.google.com (fg-out-1718.google.com [72.14.220.153]) by mx1.freebsd.org (Postfix) with ESMTP id 2F4A88FC12 for ; Tue, 8 Jul 2008 07:11:52 +0000 (UTC) (envelope-from fernando.apesteguia@gmail.com) Received: by fg-out-1718.google.com with SMTP id l26so1308962fgb.35 for ; Tue, 08 Jul 2008 00:11:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=uaPmiliFTQa0BR8rqDBX12U/YJFrMAfdKh0tDkmlH2M=; b=pn8TYEdEgpLTtAukxdGvlls0Kvhj11s2w81AHzbfJo8ul94dgmEIBysR+rJeWrZsPs tQe/CP87Q567CNO2DUdKx1Q5Tt3AhtMC2ImhaRRIZU5BhypNxHeeR8oYrqKCODT4IzRJ 565ZRXQ/q3h9R9CftjfhZ8Clr3AH+uB4NxyT0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=VdBRcUex/pv/YEOQxIm8xjzY/6qX+mo+aNf2fTOVzb48Rxhqsa8C/XF3IKuJi6Omil OgVUVW9TLSTVVSqmoMa4P96ZlKU9N/k2jCP1VuhKGNREEi5J4RNKsU9+pttDlcCDTjoA FRiGvb6hE+5qpLjJVSBaWlakunwv9pErTQC2Q= Received: by 10.86.58.3 with SMTP id g3mr5143603fga.21.1215501110905; Tue, 08 Jul 2008 00:11:50 -0700 (PDT) Received: by 10.86.25.1 with HTTP; Tue, 8 Jul 2008 00:11:50 -0700 (PDT) Message-ID: <1bd550a00807080011j3355b80ame4de6c3546b04f4b@mail.gmail.com> Date: Tue, 8 Jul 2008 09:11:50 +0200 From: "=?ISO-8859-1?Q?Fernando_Apestegu=EDa?=" To: "Alexander Sack" In-Reply-To: <3c0b01820807030752p212c3f17i236004c37bc39016@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <1bd550a00807020950x24af0f8n6d2a9c66f14f1cfd@mail.gmail.com> <3c0b01820807030752p212c3f17i236004c37bc39016@mail.gmail.com> Cc: FreeBSD Hackers Subject: Re: FreeBSD 7 64 bits kernel crash debugging X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 08 Jul 2008 07:11:53 -0000 On Thu, Jul 3, 2008 at 4:52 PM, Alexander Sack wrote: > On Wed, Jul 2, 2008 at 12:50 PM, Fernando Apestegu=EDa > wrote: >> Hi all, >> >> I'm experiencing several kernel crashes with the GENERIC kernel and >> with custom kernels as well. One of my MP3 players seems to be >> recognized, but if I disconnect it from the USB port (even without >> mounting the device), I got a kernel crash. >> >> I've tried to follow the instructions at >> http://www.freebsd.org/doc/en/books/developers-handbook/kerneldebug.html >> I have dumpdev and dumpdir properly set to my swap partition (ad0s2b) >> and to /var/crash. >> >> However, during the next boot, I got a message that indicates it is >> looking for a dump on such device but it couldn't find any. >> >> How can I track this error? > > Have you enabled at least KDB/DDB debugger support so you can look at > a stack trace ("t") and post this? This will at least give us/you > some idea on what is crashing... No, running GENERIC kernel. > > Add minimally to your kernel build conf file: > > options DDB > options KDB > > Rebuild, reboot, and test. I'm not sure why a crash dump is not > working. Have you tried specifying your dump device in your kernel > config file? Hi, First of all sorry for the delay, but my ISP is pissing me off since a couple of days and I don't have either telephone, nor Internet connection :S Anyway, I managed to recompile the kernel with debugging support. I provoked the panic and here is the trace: db> t Tracing pid 2 tid 100006 td 0xffffff0001096340 xpt_done() at xpt_done+0x54 cam_periph_runccb() at cam_periph_runccb+0x46 daprevent() at daprevent+0x80 daclose() at daclose+0x164 g_disk_access() at g_disk_access+0x107 g_access() at g_access+0x188 g_bsd_taste() at g_bsd_taste+0xdc g_new_provider_event() at g_new_provider_event+0x75 g_run_events() at g_run_events+0x1c7 g_event_procbody() at g_event_procbody+0x56 fork_exit() at fork_exit+0x11e fork_trampoline() at fork_trampoline()+0xe --- trap 0, rip =3D 0, rsp =3D 0xffffffffa0574d30, rbp =3D 0 --- The chain of events that leads to this panic is as follows: 1.- I plug the mp3 player in 2.- I see console messages about the device (size, transfer speed, etc). It is assigned the da0 device 3.- I list /dev and ther is no da0 (kernel still busy doing something?) 4.- After waiting some time (even minutes) I unplug the mp3 player and I got the crash. Thanks in advance. > > Let us know, > > -aps >