From owner-freebsd-current@freebsd.org Mon Oct 30 17:15:44 2017 Return-Path: Delivered-To: freebsd-current@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 DF57EE624D1 for ; Mon, 30 Oct 2017 17:15:44 +0000 (UTC) (envelope-from hps@selasky.org) Received: from mail.turbocat.net (turbocat.net [88.99.82.50]) (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 A58B86B1B8 for ; Mon, 30 Oct 2017 17:15:44 +0000 (UTC) (envelope-from hps@selasky.org) Received: from hps2016.home.selasky.org (unknown [62.141.128.70]) (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 C860C26081E; Mon, 30 Oct 2017 18:15:35 +0100 (CET) Subject: Re: pcsc-lite hangs up after unplugging an USB card reader To: =?UTF-8?Q?Jairo_Montes_Gonz=c3=a1lez?= , ludovic.rousseau@free.fr, freebsd-current@freebsd.org, "Fernandez-Cueto, Roberto" References: From: Hans Petter Selasky Message-ID: <9b50e911-4a19-8f2c-75e9-17fa1b455edd@selasky.org> Date: Mon, 30 Oct 2017 18:12:55 +0100 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:52.0) Gecko/20100101 Thunderbird/52.4.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.23 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: Mon, 30 Oct 2017 17:15:45 -0000 On 10/30/17 18:10, Jairo Montes González wrote: > Jairo Montes schrieb am 30.10.2017 17:09 > _____________________________________________________________________ > > Hi people! > > My problem appears only when unplugging one device. I can have more than > one connected, but when I disconnect one, an error occurs, and if I plug in > a device, even the same I just unplugged, it won't be loaded. I don't know > if the problem comes from pcsc-lite or FreeBSD (libusb). > > > Information requested for support at: > http://pcsclite.alioth.debian.org/ccid.html#support > > Versions: > - ccid-1.4.27 > - pcsc-lite-1.8.22,2 > - Inside Secure AT90SCR200 > - Enabled features: FreeBSD amd64-portbld-freebsd12.0 serial usb libusb >     usbdropdir=/usr/local/lib/pcsc/drivers/ ipcdir=/var/run/pcscd >     configdir=/usr/local/etc/reader.conf.d > > Platform: > - FreeBSD 10.4-STABLE and 12.0-CURRENT r323761 amd64 > - Standard compatible PC (Intel i5-6500) > - No card involved. It does the same with or without a card. > - SCM Microsystems Inc. SCR 335,  Inside Secure AT90SCR200. > > The output of pcscd is attached to this email. > > Any thoughts on this? Thanks in advance people. > Check the output from "procstat -ak". --HPS