As mentioned in the subject, OpenLDAP incorrectly handles OpenSSL in its destructor. Сomprehensive information can be found here (along with a possible solution): https://github.com/openssl/openssl/issues/25294 Additionally, there's an OpenLDAP bug opened - https://bugs.openldap.org/show_bug.cgi?id=9952 Reproducible: Always