Can't unlock multiple smartcards with 1.8.1 (bisected)
Hi, Since version 1.8.1, I'm not able to unlock multiple smartcards (yubikey) at the same time. I have one yubikey with SSH keys and one yubikey with OpenPGP key. If I unlock one of them, I cannot unlock the second one. It acts as if the second one isn't recognized / detected. Downgrading to 1.8.0 fixes it. I did a git bisect which pointed https://salsa.debian.org/rousseau/CCID/-/commit/a1ccc1245b23db9d27b45c06a388c044558cf9d7 as the faulty commit. Here are the full git bisect logs: ```text git bisect start # status: waiting for both good and bad commits # good: [fe62e0d437b39bccbd35b0d509fb5758746740e0] Release 1.8.0 git bisect good fe62e0d437b39bccbd35b0d509fb5758746740e0 # status: waiting for bad commit, 1 good commit known # bad: [01248eb121e4c3a188964cf8d0266529cc5fd3ee] Release 1.8.1 git bisect bad 01248eb121e4c3a188964cf8d0266529cc5fd3ee # bad: [285ebb20a018e5706771aa38f821eb014c51896b] Fix a non-existent issue reported by a tool git bisect bad 285ebb20a018e5706771aa38f821eb014c51896b # bad: [8d7e34c704a82f3c7c7ee02f8ba496fd2b2b0c33] fix(ccid_usb): correctly report IFD_NO_SUCH_DEVICE in InterruptRead git bisect bad 8d7e34c704a82f3c7c7ee02f8ba496fd2b2b0c33 # bad: [a1ccc1245b23db9d27b45c06a388c044558cf9d7] Correctly close the slots of a multi-slots reader git bisect bad a1ccc1245b23db9d27b45c06a388c044558cf9d7 # good: [de48554fdb87088dc4a9c5521b5544dc736622d9] Log Lun value in Hex instead of decimal git bisect good de48554fdb87088dc4a9c5521b5544dc736622d9 # first bad commit: [a1ccc1245b23db9d27b45c06a388c044558cf9d7] Correctly close the slots of a multi-slots reader a1ccc1245b23db9d27b45c06a388c044558cf9d7 is the first bad commit commit a1ccc1245b23db9d27b45c06a388c044558cf9d7 Author: Ludovic Rousseau <ludovic.rousseau@free.fr> Date: Wed Jun 3 16:46:00 2026 +0200 Correctly close the slots of a multi-slots reader We must clear the CcidSlots[] entries only when the last slot is closed because all the slots share the same polling data. Thanks to pekapl for the bug report "pcscd SIGABRT with ACS ACR1281U-C1 reader #260" Fixes: https://github.com/LudovicRousseau/PCSC/issues/260 src/ccid_usb.c | 13 +++++++++++++ src/defs.h | 1 + src/ifdhandler.c | 2 -- ``` Let me know if you need more info / tests, and thanks a lot for your work! :smile:
issue