From owner-freebsd-current@FreeBSD.ORG Thu Oct 25 20:36:06 2007 Return-Path: Delivered-To: current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 18D9016A41B for ; Thu, 25 Oct 2007 20:36:06 +0000 (UTC) (envelope-from scottl@samsco.org) Received: from pooker.samsco.org (pooker.samsco.org [168.103.85.57]) by mx1.freebsd.org (Postfix) with ESMTP id A7F4F13C4BB for ; Thu, 25 Oct 2007 20:36:05 +0000 (UTC) (envelope-from scottl@samsco.org) Received: from phobos.samsco.home (phobos.samsco.home [192.168.254.11]) (authenticated bits=0) by pooker.samsco.org (8.13.8/8.13.8) with ESMTP id l9PKZxZm064131; Thu, 25 Oct 2007 14:36:02 -0600 (MDT) (envelope-from scottl@samsco.org) Message-ID: <4720FE1C.2080306@samsco.org> Date: Thu, 25 Oct 2007 14:35:40 -0600 From: Scott Long User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X; en-US; rv:1.8.1.6) Gecko/20070802 SeaMonkey/1.1.4 MIME-Version: 1.0 To: Svein Halvor Halvorsen References: <471FCFFB.7030205@lvor.halvorsen.cc> In-Reply-To: <471FCFFB.7030205@lvor.halvorsen.cc> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Greylist: Sender succeeded SMTP AUTH authentication, not delayed by milter-greylist-2.0.2 (pooker.samsco.org [168.103.85.57]); Thu, 25 Oct 2007 14:36:02 -0600 (MDT) X-Spam-Status: No, score=-1.4 required=5.5 tests=ALL_TRUSTED autolearn=failed version=3.1.8 X-Spam-Checker-Version: SpamAssassin 3.1.8 (2007-02-13) on pooker.samsco.org Cc: current@freebsd.org Subject: Re: Repatable panic in 7.0-beta1 X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 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: Thu, 25 Oct 2007 20:36:06 -0000 This sounds like a known problem with CAM not handling SIM removal very well. It almost looks like your USB device detaches itself in the middle of attaching when you plug it in. CAM got caught trying to probe the device when the detach happened, leading to a race that caused the panic. I don't have a quick solution for this, I'm afraid. Part of the problem is the incorrect design in the umass module, and part of the problem is that CAM was never hardened against this kind of incorrect design. Fixing it is a fairly major project. Scott Svein Halvor Halvorsen wrote: > I get this repeatable panic in 7.0-BETA1 whenever I connect my new > USB external hdd. This is the backtrace from kgdb on the crash file. > There is no problem if I boot the computer with the drive attached, > but if I unplug and replug in, it will panic again, like it always > does when I plug it into a running system. > > I'll gladly provide more info, if someone tells me what to do. > > > #0 doadump () at pcpu.h:195 > #1 0xc074ff67 in boot (howto=260) at > /usr/src/sys/kern/kern_shutdown.c:409 > #2 0xc0750229 in panic (fmt=Variable "fmt" is not available. > ) at /usr/src/sys/kern/kern_shutdown.c:563 > #3 0xc0a131fc in trap_fatal (frame=0xd8ed9974, eva=0) at > /usr/src/sys/i386/i386/trap.c:872 > #4 0xc0a13480 in trap_pfault (frame=0xd8ed9974, usermode=0, eva=0) > at /usr/src/sys/i386/i386/trap.c:785 > #5 0xc0a13df5 in trap (frame=0xd8ed9974) at > /usr/src/sys/i386/i386/trap.c:463 > #6 0xc09f9e1b in calltrap () at /usr/src/sys/i386/i386/exception.s:139 > #7 0xc0466f6b in xpt_done (done_ccb=0xc34cf800) at > /usr/src/sys/cam/cam_xpt.c:4856 > #8 0xc046d21e in probedone (periph=0xc4d3fe00, done_ccb=Variable > "done_ccb" is not available. > ) at /usr/src/sys/cam/cam_xpt.c:6331 > #9 0xc0468fb1 in camisr_runqueue (V_queue=Variable "V_queue" is not > available. > ) at /usr/src/sys/cam/cam_xpt.c:7255 > #10 0xc046d82f in xpt_bus_deregister (pathid=1) at > /usr/src/sys/cam/cam_xpt.c:4442 > #11 0xc06c7690 in umass_cam_detach_sim (sc=0xc48f8000) at > /usr/src/sys/dev/usb/umass.c:2694 > #12 0xc06c773d in umass_detach (self=0xc39c6a00) at > /usr/src/sys/dev/usb/umass.c:1542 > #13 0xc0770f38 in device_detach (dev=0xc39c6a00) at device_if.h:212 > #14 0xc06cd932 in usb_disconnect_port (up=0xc34b6c30, > parent=0xc34caa80) at /usr/src/sys/dev/usb/usb_subr.c:1380 > #15 0xc06c4c0e in uhub_explore (dev=0xc3489c00) at > /usr/src/sys/dev/usb/uhub.c:462 > #16 0xc06cbae5 in usb_discover (v=Variable "v" is not available. > ) at /usr/src/sys/dev/usb/usb.c:724 > #17 0xc06ccad7 in usb_event_thread (arg=0xc34a0d00) at > /usr/src/sys/dev/usb/usb.c:440 > #18 0xc0730549 in fork_exit (callout=0xc06cca20 , > arg=0xc34a0d00, frame=0xd8ed9d38) > at /usr/src/sys/kern/kern_fork.c:796 > #19 0xc09f9e90 in fork_trampoline () at > /usr/src/sys/i386/i386/exception.s:205 > > > uname -a says: > > FreeBSD weld.ej2.thelosingend.net 7.0-BETA1 FreeBSD 7.0-BETA1 #1: > Wed Oct 24 10:08:38 CEST 2007 > sveinhal@weld.ej2.thelosingend.net:/usr/obj/usr/src/sys/GENERIC i386 > > > _______________________________________________ > freebsd-current@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-current > To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org"