[Pcsclite-muscle] pcscd jams when using '--auto-exit'
Andre Florath
andre
Sat Apr 23 11:59:14 PDT 2016
Hello!
> Can you test with the proposed version available at http://ludovic.rousseau.free.fr/softwares/pcsc-lite/pcsc-lite-1.8.16.tar.bz2
>
> It should work but since I was not able to reproduce the problem myself I would like you to confirm the problem is fixed in this version before I commit the modification.
>
Yes - tested it with --debug enabled. Works fine for me -
tested it a couple of times (about 10);
With and without shutdown of pcscd. Also tested
using suspending my computer.
Attached you can find the logs of a shutdown.
Maybe one hint: now that you have more than one thread,
(in principle) it is forbidden to use non-thread-safe functions
like strerror. In mostly all cases this will work, but
in some (rare) cases you get undefined behavior.
Thank you very much!
Kind regards
Andre
Apr 23 20:22:24 thynias pcscd[17015]: 59434984 pcscdaemon.c:185:signal_thread() Received signal: 14
Apr 23 20:22:24 thynias pcscd[17015]: 00000016 pcscdaemon.c:216:signal_thread() Preparing for suicide
Apr 23 20:22:24 thynias pcscd[17015]: 00001223 hotplug_libudev.c:710:HPStopHotPluggables() Hotplug stopped
Apr 23 20:22:25 thynias pcscd[17015]: 01000087 readerfactory.c:1350:RFCleanupReaders() entering cleaning function
Apr 23 20:22:25 thynias pcscd[17015]: 00000018 readerfactory.c:1359:RFCleanupReaders() Stopping reader: REINER SCT cyberJack pp_a2 (3176975693) 00 00
Apr 23 20:22:25 thynias pcscd[17015]: 00000013 readerfactory.c:605:RFRemoveReader() UnrefReader() count was: 1
Apr 23 20:22:25 thynias pcscd[17015]: 00000005 eventhandler.c:176:EHDestroyEventHandler() Stomping thread.
Apr 23 20:22:25 thynias pcscd[17015]: 00000009 eventhandler.c:205:EHDestroyEventHandler() Waiting polling thread
Apr 23 20:22:25 thynias pcscd[17015]: 00152808 eventhandler.c:502:EHStatusHandlerThread() Die
Apr 23 20:22:25 thynias pcscd[17015]: 00000085 eventhandler.c:216:EHDestroyEventHandler() Thread stomped.
Apr 23 20:22:25 thynias pcscd[17015]: 00000012 readerfactory.c:1117:RFUnInitializeReader() Attempting shutdown of REINER SCT cyberJack pp_a2 (3176975693) 00 00.
Apr 23 20:22:25 thynias pcscd[17015]: 00001383 readerfactory.c:988:RFUnloadReader() Unloading reader driver.
Apr 23 20:22:25 thynias pcscd[17015]: 00000070 winscard_svc.c:152:ContextsDeinitialize() remaining threads: 0
Apr 23 20:22:25 thynias pcscd[17015]: 00000006 pcscdaemon.c:789:at_exit() cleaning /var/run/pcscd
More information about the pcsclite-muscle
mailing list