2009/4/20 Marc Rios Valles <m...@c3po.es>: > Hi Ludovic, > > > On Viernes 17 Abril 2009 15:28:54 you wrote: >> 2009/4/17 Marc Rios Valles <m...@c3po.es>: >> > I have try it with versions 1.4.2. and 1.5.2, the two versions available >> > on the web of pcsc and it's the same behavior. I'm doing the tests with >> > GNU/Linux. >> > >> > Do you need more info? >> >> How can I reproduce your problem? >> The best you can do is provide a short C program exhibiting the >> problem. You can also provide a patch for OpenSC or a list of commands >> to run. >> > To reproduce it you need to execute two sc_reset() in one execution. For > example, make a sc_reset before the first select_file and another before > present the PIN. Or you can make two sc_resets in the same line, it doesn't > matter. Execute a command that execs this code, and re-execute it. The > second time, pcscd will say that is waiting for a release of lock. I have > been looking in the internal drivers but any of them uses sc_reset. My code > is under NDA so I cannot send it. > > PCSCD shows this info: > > 00262755 winscard.c:906:SCardDisconnect() Reset complete. > 00033456 winscard_msg_srv.c:287:SHMProcessEventsContext() correctly > processed client: 19 > 00000011 winscard.c:250:SCardReleaseContext() Releasing Context: 16988951 > 00000321 winscard_msg_srv.c:276:SHMProcessEventsContext() Client has > disappeared: 19 > 00000014 winscard_svc.c:145:ContextThread() Client die: 19 > 01801887 winscard_msg_srv.c:217:SHMProcessEventsServer() Common channel > packet arrival > 00000018 winscard_msg_srv.c:226:SHMProcessEventsServer() > SHMProcessCommonChannelRequest detects: 19 > 00000007 pcscdaemon.c:160:SVCServiceRunLoop() A new context thread creation > is requested: 19 > 00000031 winscard_svc.c:132:ContextThread() Thread is started: 19 > 00000031 winscard_msg_srv.c:287:SHMProcessEventsContext() correctly > processed client: 19 > 00000007 winscard_svc.c:188:ContextThread() Client is protocol version 3:0 > 00000336 winscard_msg_srv.c:287:SHMProcessEventsContext() correctly > processed client: 19 > 00000092 winscard.c:239:SCardEstablishContext() Establishing Context: > 17019035 > 00000938 winscard_msg_srv.c:287:SHMProcessEventsContext() correctly > processed client: 19 > 00000101 winscard.c:296:SCardConnect() Attempting Connect to C3PO LTC31 00 > 00 using protocol: 3 > 00000089 winscard.c:333:SCardConnect() Waiting for release of lock > >> It may be a bug in pcsc-lite but I need to reproduce it first. >> Your patch may solve the problem but it is not needed and will just >> hide the bug.
Bug reproduced on my side and corrected in revision 3467 [1]. I should release a new version of pcsc-lite soon. Bye [1] http://lists.alioth.debian.org/pipermail/pcsclite-cvs-commit/2009-April/003653.html -- Dr. Ludovic Rousseau _______________________________________________ opensc-devel mailing list opensc-devel@lists.opensc-project.org http://www.opensc-project.org/mailman/listinfo/opensc-devel