stunnel4 received signal SIGILL, Illegal instruction when using PKCS11 infrastructure
My ultimate goal is to connect stunnel to a PKCS11 HSM or SmartCard. Since the device is not available at the moment, I'm runnig tests with libsofthsm2 or opencryptoki as PKCS11 device.
I set up the software hsm by importing an existing key and certificate.
Next step is the configuration of stunnel, which looks the following way:
pid = /tmp/stunnel_
foreground = yes
debug = 7
output = /tmp/stunnel_
engine=dynamic
engineCtrl=
engineCtrl=
engineCtrl=
engineCtrl=LOAD
engineCtrl=
;engineCtrl=
engineCtrl=INIT
engineCtrl=
[server]
accept = 10407
exec = /home/theUser/
CAfile = /home/theUser/
verify = 0
engineNum=1
key=id_2
cert=id_3
If I run stunnel against this configuration, I get a SIGILL with the following backtrace (in any case using either libsofthsm2 or libopencryptoki):
#0 __GI___
#1 0x00007ffff778c4b3 in CRYPTO_lock () from /lib/x86_
#2 0x00007ffff4f59b16 in PKCS11_
#3 0x00007ffff51640a4 in ?? () from /usr/lib/
#4 0x00007ffff51655f4 in ?? () from /usr/lib/
#5 0x00007ffff78371ad in ENGINE_
#6 0x000055555556c0c8 in ?? ()
#7 0x000055555556c424 in ?? ()
#8 0x00005555555649c8 in ?? ()
#9 0x0000555555565c76 in ?? ()
#10 0x000055555556f739 in ?? ()
#11 0x000055555555c01c in ?? ()
#12 0x00007ffff6d57830 in __libc_start_main (main=0x5555555
rtld_
#13 0x000055555555c3c9 in ?? ()
Any further information I can provide to help debugging this?
How do I go about resolving this bug?
Question information
- Language:
- English Edit question
- Status:
- Expired
- For:
- Ubuntu stunnel4 Edit question
- Assignee:
- No assignee Edit question
- Last query:
- Last reply: