[Pcsclite-muscle] Problem (sigsegv) on reconnect.

Ludovic Rousseau ludovic.rousseau at gmail.com
Tue Jun 23 11:28:38 UTC 2015


2015-06-19 11:57 GMT+02:00  <luc.mazardo at orange.com>:
> Hello,
>
> On 12/06/2015 16:33, Ludovic Rousseau wrote:
>
>> Are you using threads in your application?
> Yes
>
>> Does each thread use its own PC/SC context (SCardEstablishContext)?
> No, we use javax.smartcardio based on SCardEstablishContext called by
> PCSCTerminals.initContext().
> initContext() is called at the time the shared object (libpcsc.so*) is
> opened.
> The implementation of initContext() keeps the result in a singleton.
>
> <code from="openjdk-7-fcs-src-b147-27_jun_2011">
>     static synchronized void initContext() throws PCSCException {
>         if (contextId == 0) {
>             contextId = SCardEstablishContext(SCARD_SCOPE_USER);
>         }
>
> </code>

OK. I am working on the issue.

Locking and threading problems are not easy. I do not want to
introduce regressions.

>> Why do you use this configuration?
> (DAEMON_ARGS="--max-card-handle-per-reader 1")
> With the attached file PcscdTest.java, we have stressed the web
> application over ab (apache2-utils), and we
> have determined that this configuration

I guess you forgot the end of the sentence :-)

Bye

-- 
 Dr. Ludovic Rousseau



More information about the Pcsclite-muscle mailing list