From owner-freebsd-usb@FreeBSD.ORG Tue Nov 2 07:42:52 2010 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id ADD75106566C; Tue, 2 Nov 2010 07:42:52 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe05.swip.net [212.247.154.129]) by mx1.freebsd.org (Postfix) with ESMTP id B1BA18FC0C; Tue, 2 Nov 2010 07:42:51 +0000 (UTC) X-Cloudmark-Score: 0.000000 [] X-Cloudmark-Analysis: v=1.1 cv=5OBHFxb9I47YZ7HELXzI6cL6pwPTRnd5uxbD1DPQ4WY= c=1 sm=1 a=88e7-T71Oz4A:10 a=8nJEP1OIZ-IA:10 a=CL8lFSKtTFcA:10 a=i9M/sDlu2rpZ9XS819oYzg==:17 a=2gous0I8H8juMTWfAzwA:9 a=5tgEV1_38apm88RSqo-W6wGdNakA:4 a=wPNLvfGTeEIA:10 a=ntJSdXeiMXs7de4o:21 a=wlr35HWB0y9YUtxd:21 a=i9M/sDlu2rpZ9XS819oYzg==:117 Received: from [188.126.198.129] (account mc467741@c2i.net HELO laptop002.hselasky.homeunix.org) by mailfe05.swip.net (CommuniGate Pro SMTP 5.2.19) with ESMTPA id 42884173; Tue, 02 Nov 2010 08:42:49 +0100 From: Hans Petter Selasky To: Alexander Best Date: Tue, 2 Nov 2010 08:44:00 +0100 User-Agent: KMail/1.13.5 (FreeBSD/8.1-STABLE; KDE/4.4.5; amd64; ; ) References: <20101020153040.GA3184@freebsd.org> <4CC529CF.8000304@FreeBSD.org> <20101101143838.GA64120@freebsd.org> In-Reply-To: <20101101143838.GA64120@freebsd.org> X-Face: +~\`s("[*|O,="7?X@L.elg*F"OA\I/3%^p8g?ab%RN'(; _IjlA: hGE..Ew, XAQ*o#\/M~SC=S1-f9{EzRfT'|Hhll5Q]ha5Bt-s|oTlKMusi:1e[wJl}kd}GR Z0adGx-x_0zGbZj'e(Y[(UNle~)8CQWXW@:DX+9)_YlB[tIccCPN$7/L' MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <201011020844.00600.hselasky@c2i.net> Cc: Alexander Motin , freebsd-current@freebsd.org, freebsd-usb@freebsd.org Subject: Re: serious issue caused by usb device, stalling almost all operations X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 02 Nov 2010 07:42:52 -0000 On Monday 01 November 2010 15:38:38 Alexander Best wrote: > On Mon Oct 25 10, Alexander Motin wrote: > > Hans Petter Selasky wrote: > > > On Wednesday 20 October 2010 17:30:40 Alexander Best wrote: > > >> hi there, > > >> > > >> i'm running HEAD (r213495; amd64). i stumbled upon this severe > > >> problem: > > >> > > >> after attaching my mobile phone, it simply resets without doing mount > > >> or anything. however after letting the device come up again it won't > > >> show up in the console. after detaching it the usb subsystem seemed > > >> to have completely crashed. but that's not all. the following > > >> programs now simply hang without producing any output C-C won't do > > >> anything: > > >> > > >> - dmesg > > >> - top > > >> - ps > > >> - killall > > >> - camcontrol devlist > > >> - usbconfig > > > > > > That's most likely because USB's umass driver is waiting for cam to > > > drain. Possibly some refcounting is not correct. I suspect this is not > > > a USB problem. Try to enter into the debugger, and look for backtrace > > > for function stuck in umass_detach. > > i set debug.kdb.panic=1, but didn't work, because writing the core dump > stalled and watchdog came up. > Maybe you could manually run: bt all And look for "cam" and "usb" keywords. And write down the backtraces. --HPS