Yubico / ykneo-openpgp

OpenPGP applet for the YubiKey NEO
https://developers.yubico.com/ykneo-openpgp/
GNU General Public License v2.0
215 stars 67 forks source link

Yubico Neo: InterruptRead hangs #52

Open frankmorgner opened 6 years ago

frankmorgner commented 6 years ago

I was debugging an OpenSC feature to cope with multiple applets on a single token. Unfortunately the card (i.e. token) hangs while pcscd is expecting a response from InterruptRead during a communication to the PIV applet (pcscd-log.txt, lsusb.txt). I'm using Debian's PCSC-Lite 1.8.20-1 and libccid 1.4.26-1.

I can reproduce the behavior reliably, which persists since I've stopped a gdb session that locked a token with SCardBeginTransaction without calling SCardEndTransaction (though I'm not sure whether locking is the root cause of the problem).

frankmorgner commented 6 years ago

I forgot to mention that unplugging the token or restart pcscd makes the token available again. However, executing the same commands causes the problem, again.