Hello, I observe deadlock at wait of non SCARD_E_SHARING_VIOLATION with lock of ContextMap (PCSC-Lite-1.8.3 and more early). Problem in SCardBeginTransaction, SCardTransmit(block mode), SCardStatus (block mode), SCardReconnect (block mode).
Deadlock case: Thread 1: call SCardBeginTransaction -> SCARD_S_SUCCESS Thread 2: call SCardBeginTransaction (or other from list above) -> lock 'currentContextMap->mMutex' and wait until receive non SCARD_E_SHARING_VIOLATION (until Thread 1 call SCardEndTransaction and return success) Thread 1: call SCardEndTransaction (or other)-> 'wait currentContextMap->mMutex; Patch for PCSC-Lite-1.8.3 and current Subversion trunk attached. Thanks.
pcsc-lite-1.8.3_fix_deadlock.diff
Description: Binary data
_______________________________________________ Muscle mailing list [email protected] http://lists.drizzle.com/mailman/listinfo/muscle
