2010/10/14 Gerald Richter - ECOS <[email protected]>: > Hi, > > I have upgraded pcsc-lite to 1.6.4 and ccid to 1.4.0 (and therefore using now > libusb-1.0 instead of 0.1). > > Now the access to smartcards sometimes hangs and continues after a time out > (sometimes it works fine). pcscd -d -f shows the following output: > > 00023824 winscard_svc.c:640:ContextThread() TRANSMIT rv=0x0 for client 4 > 00000043 winscard_svc.c:309:ContextThread() Received command: TRANSMIT from > client 4 > 00000020 winscard.c:1648:SCardTransmit() Send Protocol: T=1 > 00000007 ifdhandler.c:1288:IFDHTransmitToICC() usb:0d46/3003:libusb-1.0:1:6 > (lun: 0) > 00023797 winscard_svc.c:640:ContextThread() TRANSMIT rv=0x0 for client 4 > 00000031 winscard_svc.c:309:ContextThread() Received command: TRANSMIT from > client 4 > 00000013 winscard.c:1648:SCardTransmit() Send Protocol: T=1 > 00000007 ifdhandler.c:1288:IFDHTransmitToICC() usb:0d46/3003:libusb-1.0:1:6 > (lun: 0) > 00023824 winscard_svc.c:640:ContextThread() TRANSMIT rv=0x0 for client 4 > 00000044 winscard_svc.c:309:ContextThread() Received command: TRANSMIT from > client 4 > 00000014 winscard.c:1648:SCardTransmit() Send Protocol: T=1 > 00000012 ifdhandler.c:1288:IFDHTransmitToICC() usb:0d46/3003:libusb-1.0:1:6 > (lun: 0) > > --> Here nothing happens for about one or two minutes > > 60081642 winscard_svc.c:640:ContextThread() TRANSMIT rv=0x0 for client 4 > 00000065 winscard_svc.c:309:ContextThread() Received command: TRANSMIT from > client 4 > 00000018 winscard.c:1648:SCardTransmit() Send Protocol: T=1 > 00000008 ifdhandler.c:1288:IFDHTransmitToICC() usb:0d46/3003:libusb-1.0:1:6 > (lun: 0) > 00010245 winscard_svc.c:640:ContextThread() TRANSMIT rv=0x0 for client 4 > 00000043 winscard_svc.c:309:ContextThread() Received command: TRANSMIT from > client 4 > 00000022 winscard.c:1648:SCardTransmit() Send Protocol: T=1 > 00000007 ifdhandler.c:1288:IFDHTransmitToICC() usb:0d46/3003:libusb-1.0:1:6 > (lun: 0) > > Any idea what's wrong or how to debug this?
It is a known bug in libusb. See [1]. The patch exists since April 2010 but is not yet included/applied in libusb :-( Switching to libusb-1.0 is not yet recommended for stable systems. Unless you want to maintain your own version of libusb with bug fixes. > In addition I have the same problem, which was reported one month ago, that > starting pcscd without -f causes it to fail, at least for some readers. Please do not mix two issues in the same mail. Bye [1] http://libusb.org/ticket/56 -- Dr. Ludovic Rousseau _______________________________________________ Muscle mailing list [email protected] http://lists.drizzle.com/mailman/listinfo/muscle
