Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 6 Nov 2017 09:27:07 +0100
From:      Roberto Fernandez Cueto <r.fernandez-cueto@bally-wulff.de>
To:        Ludovic Rousseau <ludovic.rousseau@free.fr>
Cc:        <hps@FreeBSD.org>, <freebsd-current@FreeBSD.org>
Subject:   Re: pcsc-lite hangs up after unplugging an USB card reader
Message-ID:  <20171106082707.GA927@BWEPCFERNANDEZ>
In-Reply-To: <a655e9cc-2e1f-d1e7-467e-6940269e3c67@free.fr>
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>

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20171106082707.GA927>