Date: Mon, 6 Nov 2017 13:26:14 +0100 From: Hans Petter Selasky <hps@selasky.org> To: Roberto Fernandez Cueto <r.fernandez-cueto@bally-wulff.de> Cc: Ludovic Rousseau <ludovic.rousseau@free.fr>, freebsd-current@FreeBSD.org Subject: Re: pcsc-lite hangs up after unplugging an USB card reader Message-ID: <ebe61b8f-4818-1ae1-fb37-500ccc82c7bf@selasky.org> In-Reply-To: <20171106121141.GA1437@BWEPCFERNANDEZ> References: <a45490b0-8a3e-4897-8b04-eb709d99411e@BW-EX-CASHUB.bally-wulff.de> <9b50e911-4a19-8f2c-75e9-17fa1b455edd@selasky.org> <27dc1898-074f-4e4b-849b-4985138eec1b@BW-EX-CASHUB.bally-wulff.de> <a655e9cc-2e1f-d1e7-467e-6940269e3c67@free.fr> <20171106082707.GA927@BWEPCFERNANDEZ> <94e6c712-5c56-544e-77c3-bc6fc6f833bc@selasky.org> <20171106121141.GA1437@BWEPCFERNANDEZ>
next in thread | previous in thread | raw e-mail | index | archive | help
On 11/06/17 13:11, Roberto Fernandez Cueto wrote: > Roberto Fernandez-Cueto schrieb am 06.11.2017 13:11 > _____________________________________________________________________ > > On Mon, Nov 06, 2017 at 12:55:20PM +0100, Hans Petter Selasky wrote: >> On 11/06/17 09:27, Roberto Fernandez Cueto wrote: >>> Roberto Fernandez-Cueto schrieb am 06.11.2017 09:27 >>> _____________________________________________________________________ >>> >>> Hi people, >>> >>> the original person who wrote this email has left our company so I will >>> retake it from here. >>> >> >> Hi Roberto, >> >> Have you read through this thread in the mailing list archives? >> >> --HPS > > Hi Hans, > > I have recently read the thread and I am trying to get all the > information I can before digging more into the matter. > > It is a complex matter and I just one to try every single possible > solution and be advised from the experts in the matter. > > Thanks in advance, > Roberto > Hi, In FreeBSD there is a special function that the application can use to check if the USB device is still present: libusb_check_connected() Checking this function regularly and then closing the USB handles might fix the problem you are experiencing. At least for debugging, try to print the value from this function in a separated thread, and check if there are any differences when you experience the hang. Try to use GDB to collect all backtraces for apps using the USB handle. --HPS
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?ebe61b8f-4818-1ae1-fb37-500ccc82c7bf>