-
Notifications
You must be signed in to change notification settings - Fork 194
Closed
Description
There is a crash when engine is used with softhsm2, specifically with EC key operation.
Fedora 28 Downstream: https://bugzilla.redhat.com/show_bug.cgi?id=1619184
SoftHSM2: softhsm/SoftHSMv2#413
- Crash happens only with EC keys
- Crash happens when another HSM does EC key operations but softhsm2 is loaded and configured. I have configured CloudHSM+SoftHSM2.
Distro suggests it is a conflict between engine's finish and softhsm2's atexit. Not sure who is a "fault" here but maintainers may be interested in taking a look. Downstream has two suggestions:
- Build softhsm2 with
-fno-use-cxa-atexit - Use LD_PRELOAD=/usr/local/lib/softhsm/libsofthsm2.so
I can confirm that both workarounds avoid the crash. Cross-posting the issue here looking for the best place to apply C++-fu.
Metadata
Metadata
Assignees
Labels
No labels