2012/6/16 Aleksey Samsonov <[email protected]>:
> Hello,

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;

Interesting. Do you have a sample code to exhibit the bug? Either in C
or Python?

> Patch for PCSC-Lite-1.8.3 and current Subversion trunk attached.

Thanks. I will have a look.

Bye

-- 
 Dr. Ludovic Rousseau

_______________________________________________
Muscle mailing list
[email protected]
http://lists.drizzle.com/mailman/listinfo/muscle

Reply via email to