My last update was to 2.1.12-beta95 I've just encountered another error and will
update again to current master.
With GnuPG master I've seen some rare errors that it can't access my smartcard
anymore until I restart gpg-agent. I did not have such errors before the libusb
patch.
I'll use this issue to document the erorrs. Sometimes I did not have errors for
weeks. Yesterday I had an error and today again.
I'm using my smartcard for authentication and encryption / signing.
SPR 532 Reader with openpgp 2.1 smartcard.
Scdaemon log excerpt: (I've tried to sign something on 12:34 and this failed)
2016-04-05 11:54:37 scdaemon[3383] DBG: chan_5 -> OK
2016-04-05 12:05:37 scdaemon[3383] DBG: ccid-driver: usb_bulk_write error:
LIBUSB_ERROR_NO_DEVICE
2016-04-05 12:05:37 scdaemon[3383] updating reader 0 (-1) status: 0x0007->0x0000
(1->1)
2016-04-05 12:05:37 scdaemon[3383] sending signal 12 to client 3273
2016-04-05 12:34:18 scdaemon[3383] DBG: chan_5 <- SERIALNO
2016-04-05 12:34:18 scdaemon[3383] DBG: ccid-driver: using CCID reader 0
(ID=04E6:E003:21250809205470:0)
2016-04-05 12:34:18 scdaemon[3383] DBG: ccid-driver: idVendor: 04E6 idProduct:
E003 bcdDevice: 0510
2016-04-05 12:34:18 scdaemon[3383] DBG: ccid-driver: ChipCard Interface Descriptor:
2016-04-05 12:34:18 scdaemon[3383] DBG: ccid-driver: bLength 54
2016-04-05 12:34:18 scdaemon[3383] DBG: ccid-driver: bDescriptorType 33
2016-04-05 12:34:18 scdaemon[3383] DBG: ccid-driver: bcdCCID 1.00
2016-04-05 12:34:18 scdaemon[3383] DBG: ccid-driver: nMaxSlotIndex 0
2016-04-05 12:34:18 scdaemon[3383] DBG: ccid-driver: bVoltageSupport 1
5.0V
2016-04-05 12:34:18 scdaemon[3383] DBG: ccid-driver: dwProtocols 3
T=0 T=1
2016-04-05 12:34:18 scdaemon[3383] DBG: ccid-driver: dwDefaultClock 4000
2016-04-05 12:34:18 scdaemon[3383] DBG: ccid-driver: dwMaxiumumClock 8000
2016-04-05 12:34:18 scdaemon[3383] DBG: ccid-driver: bNumClockSupported 0
2016-04-05 12:34:18 scdaemon[3383] DBG: ccid-driver: dwDataRate 10753 bps
2016-04-05 12:34:18 scdaemon[3383] DBG: ccid-driver: dwMaxDataRate 344105 bps
2016-04-05 12:34:18 scdaemon[3383] DBG: ccid-driver: bNumDataRatesSupp. 0
2016-04-05 12:34:18 scdaemon[3383] DBG: ccid-driver: dwMaxIFSD 254
2016-04-05 12:34:18 scdaemon[3383] DBG: ccid-driver: dwSyncProtocols 00000000
2016-04-05 12:34:18 scdaemon[3383] DBG: ccid-driver: dwMechanical 00000000
2016-04-05 12:34:18 scdaemon[3383] DBG: ccid-driver: dwFeatures 000100BA
2016-04-05 12:34:18 scdaemon[3383] DBG: ccid-driver: Auto configuration
based on ATR (assumes auto voltage)
2016-04-05 12:34:18 scdaemon[3383] DBG: ccid-driver: Auto voltage selection
2016-04-05 12:34:18 scdaemon[3383] DBG: ccid-driver: Auto clock change
2016-04-05 12:34:18 scdaemon[3383] DBG: ccid-driver: Auto baud rate change
2016-04-05 12:34:18 scdaemon[3383] DBG: ccid-driver: Auto PPS made by CCID
2016-04-05 12:34:18 scdaemon[3383] DBG: ccid-driver: TPDU level exchange
2016-04-05 12:34:18 scdaemon[3383] DBG: ccid-driver: dwMaxCCIDMsgLen 270
2016-04-05 12:34:18 scdaemon[3383] DBG: ccid-driver: bClassGetResponse echo
2016-04-05 12:34:18 scdaemon[3383] DBG: ccid-driver: bClassEnvelope echo
2016-04-05 12:34:18 scdaemon[3383] DBG: ccid-driver: wlcdLayout none
2016-04-05 12:34:18 scdaemon[3383] DBG: ccid-driver: bPINSupport 3
verification modification
2016-04-05 12:34:18 scdaemon[3383] DBG: ccid-driver: bMaxCCIDBusySlots 1
2016-04-05 12:34:18 scdaemon[3383] DBG: ccid-driver: usb_claim_interface failed: -6
2016-04-05 12:34:18 scdaemon[3383] DBG: chan_5 -> ERR 100663404 Card error <SCD>
2016-04-05 12:34:18 scdaemon[3383] DBG: chan_5 <- RESTART
2016-04-05 12:34:18 scdaemon[3383] DBG: chan_5 -> OK
It kept failing with the same error afterwards. Killing gpg-agent fixed it.
In my syslog I see the following related messages:
Apr 5 12:05:36 esus kernel: [11052.036061] usb 4-1.2: USB disconnect, device
number 3
Apr 5 12:05:37 esus kernel: [11052.233066] usb 4-1.2: new full-speed USB device
number 4 using ehci-pci
Apr 5 12:05:37 esus kernel: [11052.335805] usb 4-1.2: New USB device found,
idVendor=04e6, idProduct=e003
Apr 5 12:05:37 esus kernel: [11052.335810] usb 4-1.2: New USB device strings:
Mfr=1, Product=2, SerialNumber=5
Apr 5 12:05:37 esus kernel: [11052.335813] usb 4-1.2: Product: SPRx32 USB Smart
Card Reader
Apr 5 12:05:37 esus kernel: [11052.335815] usb 4-1.2: Manufacturer: SCM
Microsystems Inc.
Apr 5 12:05:37 esus kernel: [11052.335817] usb 4-1.2: SerialNumber: 21250809205470
Apr 5 12:05:37 esus mtp-probe: checking bus 4, device 4:
"/sys/devices/pci0000:00/0000:00:1d.0/usb4/4-1/4-1.2"
Apr 5 12:05:37 esus mtp-probe: bus: 4, device: 4 was not an MTP device