Hi,

although being pretty new to smartcard businesses, I developed a small 
app, that reads EU driver cards contents, using:

Bus 001 Device 012: ID 046a:002d Cherry GmbH SmartTerminal XX44

through:

libpcsclite1-1.7.4-57.1
pcsc-ccid-1.4.4-22.7
pcsc-lite-1.7.4-57.1

that were publically built here:

https://build.opensuse.org/project/monitor?project=home%3Afrispete%3Achipcard

During that course, I've noticed, that even without any further actions 
besides starting pcscd with a connected card reader, the 3 pcscd threads 
eat my heap for breakfirst.

When started, it looks like this:

$ ps -FLC pcscd
UID        PID  PPID   LWP  C NLWP    SZ   RSS PSR STIME TTY          TIME CMD
root     30564     1 30564  0    3  4644   952   0 00:21 pts/24   00:00:00 
/usr/sbin/pcscd
root     30564     1 30565  0    3  4644   952   0 00:21 pts/24   00:00:00 
/usr/sbin/pcscd
root     30564     1 30568  0    3  4644   952   0 00:21 pts/24   00:00:00 
/usr/sbin/pcscd

About a minute later:

$ ps -FLC pcscd
UID        PID  PPID   LWP  C NLWP    SZ   RSS PSR STIME TTY          TIME CMD
root     30564     1 30564  0    3  4708  1204   0 00:21 pts/24   00:00:00 
/usr/sbin/pcscd
root     30564     1 30565  0    3  4708  1204   0 00:21 pts/24   00:00:00 
/usr/sbin/pcscd
root     30564     1 30568  0    3  4708  1204   0 00:21 pts/24   00:00:00 
/usr/sbin/pcscd

Ten minutes later:

$ ps -FLC pcscd
UID        PID  PPID   LWP  C NLWP    SZ   RSS PSR STIME TTY          TIME CMD
root     30564     1 30564  0    3  5124  2824   0 00:21 pts/24   00:00:00 
/usr/sbin/pcscd
root     30564     1 30565  0    3  5124  2824   0 00:21 pts/24   00:00:01 
/usr/sbin/pcscd
root     30564     1 30568  0    3  5124  2824   0 00:21 pts/24   00:00:00 
/usr/sbin/pcscd

Running for three days:

$ ps -FLC pcscd
UID        PID  PPID   LWP  C NLWP    SZ   RSS PSR STIME TTY          TIME CMD
root      4725     1  4725  0    3 209137 793480 0 Jul21 ?        00:00:00 
/usr/sbin/pcscd
root      4725     1  4867  0    3 209137 793480 1 Jul21 ?        00:11:03 
/usr/sbin/pcscd
root      4725     1 11062  0    3 209137 793480 1 Jul23 ?        00:00:01 
/usr/sbin/pcscd

Needless to say, that these 800 MiBs are badly missed for other purposes..
For the pathologic case, I may have read in those pesky driver smart cards 
for about 60 times and another 20 ATRs of other flavors..

My app is careful in freeing the observers at the end of the run, but the
leak happens even without any user intervention. 

I really hope, that this is not to be expected as a proper pcsc-lite 
operation in general.

Let me know, if I can provide additional information to resolve this issue.

Thanks in advance,
Pete
_______________________________________________
Muscle mailing list
[email protected]
http://lists.drizzle.com/mailman/listinfo/muscle

Reply via email to