Hello,
to reproduce this issue, build a rsyslog configuration with both plugins imrelp and omrelp, and compile librelp with openssl.
kill rsyslogd : stuck on omrelp (or imrelp) module unloading.
Upon exit, relpEngineDestruct will be called twice, once for each plugin. When libssl is used instead of gnutls, this cause SSL_CTX_free to be called twice, resulting in a hang.
Hello, to reproduce this issue, build a rsyslog configuration with both plugins imrelp and omrelp, and compile librelp with openssl. kill rsyslogd : stuck on omrelp (or imrelp) module unloading. Upon exit, relpEngineDestruct will be called twice, once for each plugin. When libssl is used instead of gnutls, this cause SSL_CTX_free to be called twice, resulting in a hang.
Fixed by attached patch :
Regards.