matklad / once_cell

Rust library for single assignment cells and lazy statics without macros

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Segmentation fault using Lazy static with Pkcs11

kristian1108 opened this issue · comments

Pkcs11 works perfectly fine when not used as a lazy static.

But when wrapped in a Lazy static, the program seg faults on exit.

Reproduction: https://github.com/kristian1108/boring-reproduce

Note this only appears to be an issue on OSX Sonoma

Pkcs11 works perfectly fine when not used as a lazy static.

But when wrapped in a Lazy static, the program seg faults on exit.

Reproduction: https://github.com/kristian1108/boring-reproduce

Note this only appears to be an issue on OSX Sonoma

Build the SoftHSM tools from source and that appears to have solved the issue. Instructions here: https://github.com/opendnssec/SoftHSMv2/tree/develop