From owner-freebsd-current@freebsd.org Mon Nov 6 08:27:21 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 B0C5EE56C04 for ; Mon, 6 Nov 2017 08:27:21 +0000 (UTC) (envelope-from r.fernandez-cueto@bally-wulff.de) Received: from mail.bally-wulff.de (mail.bally-wulff.de [212.144.118.8]) by mx1.freebsd.org (Postfix) with ESMTP id 6ECB1654F0 for ; Mon, 6 Nov 2017 08:27:18 +0000 (UTC) (envelope-from r.fernandez-cueto@bally-wulff.de) Received: from bw-ex-cashub.bally-wulff.de (bw-ex-cashub.bally-wulff.de [192.168.204.230]) by mail.bally-wulff.de (Postfix) with ESMTPS id 1584CE5; Mon, 6 Nov 2017 09:27:10 +0100 (CET) Received: from BWEPCFERNANDEZ (192.168.205.134) by BW-EX-CASHUB.bally-wulff.de (192.168.204.230) with Microsoft SMTP Server (TLS) id 14.3.361.1; Mon, 6 Nov 2017 09:27:09 +0100 Date: Mon, 6 Nov 2017 09:27:07 +0100 From: Roberto Fernandez Cueto To: Ludovic Rousseau CC: , Subject: Re: pcsc-lite hangs up after unplugging an USB card reader Message-ID: <20171106082707.GA927@BWEPCFERNANDEZ> References: <9b50e911-4a19-8f2c-75e9-17fa1b455edd@selasky.org> <27dc1898-074f-4e4b-849b-4985138eec1b@BW-EX-CASHUB.bally-wulff.de> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.8.3 (2017-05-23) X-OLX-Disclaimer: BW-EX-CASHUB.BALLY-WULFF.DE Content-Transfer-Encoding: quoted-printable X-PureMessage: [Scanned] X-Mailman-Approved-At: Mon, 06 Nov 2017 11:52:10 +0000 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, 06 Nov 2017 08:27:21 -0000 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. On Fri, Nov 03, 2017 at 08:38:09PM +0100, Ludovic Rousseau wrote: > Hello, >=20 > Le 01/11/2017 ?? 12:05, Jairo Montes Gonz??lez a ??crit??: > > Jairo Montes schrieb am 01.11.2017 11:04 > > _____________________________________________________________________ > >=20 > > The output from "procstat -ak" is attached to this email. > >=20 > >=20 > > As you might see, I'm trying to debug it, but this is my first time usi= ng > >=20 > > the GDB debugger, so I'm a bit lost with it's usage and I believe I'm n= ot > >=20 > > doing a good job with it. All I've found so far is that it keeps loopin= g > >=20 > > in somewhere and does not return correctly. > >=20 > >=20 > > I forgot to mention in my first email that I added the lines to > >=20 > > /etc/devd.conf that the pcsc-lite installation tells you to add for USB > >=20 > > cardreaders. I also added /usr/local/etc/devd/pcscd.conf, attached here > >=20 > > too, just in case it produces any kind of conflict. >=20 > pcsc-lite has its own polling method. > You should not need to use the /etc/devd.conf file >=20 It doesn't matter, the problem occurs whether we put the following lines in devd.conf(5) or not. The configuration has been stripped to the important lines. notify xxx { ... action "/usr/local/sbin/pcscd -H"; } > I must add that I do not remember when I tested pcsc-lite with FreeBSD. >=20 > Bye, >=20 > --=20 > Dr. Ludovic Rousseau So far, the main problem has been occurring with some card readers and more often when several USB card readers are attached to the machine. We have realized that pcscd(8) tries to end the threads created for the card reader and, ofter with two card readers, it does not get out of the critical section. It seems like a deadlock to us, but we cannot confirm it because we do not understand completely pcscs-lite. We ask for some place to start looking at, because we have been dealing with the problem blindly until now. Thank you in advance, -- Roberto Fernandez Cueto System developer Bally Wulff Games & Entertainment GmbH BALLY WULFF Games & Entertainment GmbH, Maybachufer 48-51, 12045 Berlin, Po= stanschrift: Postfach 44 01 57, 12001 Berlin Tel.: 030-620 02-0 FAX: 030-62= 0 02-200, Geschaeftsfuehrer: Thomas Niehenke, Lars Rogge, Wolfram Seiffert,= Thomas Wendt, Amtsgericht Berlin-Charlottenburg HRB 139020 B, UST-IdNr. DE= 815328376 _____________________________________________________________________ Dieses E-Mail ist nur fuer den Empfaenger bestimmt, an den es gerichtet ist und kann vertrauliches bzw. unter das Berufsgeheimnis fallendes Material enthalten. Jegliche darin enthaltene Ansicht oder Meinungs- aeusserung ist die des Autors und stellt nicht notwendigerweise die Ansicht oder Meinung von Bally Wulff Games & Entertainment GmbH dar. Sind Sie nicht der Empfaenger, so haben Sie diese E-Mail irrtuemlich erhalten und jegliche Verwendung, Veroeffentlichung, Weiterleitung, Abschrift oder jeglicher Druck dieser E-Mail ist strengstens untersagt. Weder Bally Wulff Games & Entertainment GmbH noch der Absender uebernehmen die Haftung fuer Viren. Es obliegt Ihrer Verantwortung, die E-Mail und deren Anhaenge auf Viren zu pruefen. Anhaenge: _____________________________________________________________________ Versand am 06.11.2017 09:27 von Fernandez-Cueto Roberto