Doug Engert
Doug Engert
What pkcs11 module are you using?
> The seg fault always happens after (successful) calls of C_CloseAllSessions() and C_Finalize() I ask what is your PKCS11 module, because what does your C_Finalize do, does it use OpenSSL?...
With OpenSSL-3.5.4, libp11 and 0.4.13 and OpenSC (used for pkcs11 module and spy) These are from github of original source, not modified by debien or other distro. They were built...
@mtrojnar But libp11 does call `pkcs11_set_ex_data_rsa` which calls `RSA_set_ex_data` Note `RSA_set_ex_data` can uses the `OSL_LIB_CTX` pointed at by the RSA [gdb-RSA_set_data.txt](https://github.com/user-attachments/files/24035861/gdb-RSA_set_data.txt) And cleans up the pointer: [gdb-RSA_set_data-cleanup.txt](https://github.com/user-attachments/files/24035942/gdb-RSA_set_data-cleanup.txt) @drauch Is the...
I am really thinking that @drauch 's pkcs11 is not cleaning up correctly, which then cause the segfault later. The x509 SPKI is also the public key, and OpenSSL may...