Hi,
I tried to use SCard4Wine with SafeSign just like the user in the other ticket, but I think the page fault is not related with the security module from "Banco do Brasil".
When I run tokenadmin with WINEDEBUG=+relay - eventually redirecting stderr to anything than /dev/null -, the program behaves properly. Any other execution ends with page fault. Since +relay is very verbose, it seems there is some racing condition, although I could not find it.
Thank you for posting all the logs files.
From what I see, there is nothing that indicates that the crash is caused by SCard4Wine. Like the previous ticket, the backtrace shows that the crash happens inside aetpkss1.dll which is calling a NULL pointer.
I studied winedebug traces and it shows that the SCardListReaders is returning the error 0x8010002E (SCARD_E_NO_READERS_AVAILABLE). Do you a reader installer on your system? Is is well configured with pcsclite?
From I see, SCard4Wine is doing its job properly but the dll aetpkss1.dll seems to crash because of of some bad pointer handling. Also, the traces shows that aetpkss1.dll is using many threads so maybe there is a racing condition between them caused by the behavior of some other system function under Wine.
Can you try running tokenadmin with a reader and a card and see if you also have the crash? Be sure that the reader is recognized under pcsclite before doing the test (you can run for example pcsc_scan).
Yes, I think I installed the card reader on Linux properly. The pcsc_scan returns the same card reader as dmesg stated, also, tokenadmin works as expected.
Maybe is something related to Windows threading versus Linux threading or, as you said, some behavior of Wine.
Thank you very much!