From owner-freebsd-usb@freebsd.org Wed Apr 13 08:59:47 2016 Return-Path: Delivered-To: freebsd-usb@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 21A28B0E537 for ; Wed, 13 Apr 2016 08:59:47 +0000 (UTC) (envelope-from hps@selasky.org) Received: from mail.turbocat.net (mail.turbocat.net [IPv6:2a01:4f8:d16:4514::2]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id E35F710BD; Wed, 13 Apr 2016 08:59:46 +0000 (UTC) (envelope-from hps@selasky.org) Received: from laptop015.home.selasky.org (unknown [62.141.129.119]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.turbocat.net (Postfix) with ESMTPSA id 24AA61FE028; Wed, 13 Apr 2016 10:59:45 +0200 (CEST) Subject: Re: usbconfig just hangs To: Matthias Apitz , freebsd-usb@freebsd.org, Alexander Motin References: <20160413085212.GA3064@c720-r292778-amd64> From: Hans Petter Selasky Message-ID: <570E0B40.7010808@selasky.org> Date: Wed, 13 Apr 2016 11:02:56 +0200 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:38.0) Gecko/20100101 Thunderbird/38.5.0 MIME-Version: 1.0 In-Reply-To: <20160413085212.GA3064@c720-r292778-amd64> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 13 Apr 2016 08:59:47 -0000 On 04/13/16 10:52, Matthias Apitz wrote: > just hangs forever. What do I wrong? > > matthias Hi, It means a USB kernel device driver did not detach. Historically there has been several issues in cam/scsi where detaching the instance hangs. Try running kgdb and backtrace all USB process treads. Look for "detach" keyword. I've been thinking to maybe catch signals during the sx locking so that usbconfig can be CTRL-C'ed. --HPS