https://bugs.openldap.org/show_bug.cgi?id=10126
--- Comment #1 from bogdan.siara@gmail.com --- I'm running slapd from build tree under gdb and get more info:
ldap@ec1-tools-openldap-1:~/openldap-2.5.16$ gdb -q /opt/ldap/openldap-2.5.16/servers/slapd/.libs/slapd Reading symbols from /opt/ldap/openldap-2.5.16/servers/slapd/.libs/slapd... (gdb) run -d 0 -h 'ldap://0.0.0.0:10389 ldaps://0.0.0.0:10536 ldapi://%2Fopt%2Fldap%2Fldapi' -F /opt/ldap//openldap/etc/openldap/slapd.d Starting program: /opt/ldap/openldap-2.5.16/servers/slapd/.libs/slapd -d 0 -h 'ldap://0.0.0.0:10389 ldaps://0.0.0.0:10536 ldapi://%2Fopt%2Fldap%2Fldapi' -F /opt/ldap//openldap/etc/openldap/slapd.d [Thread debugging using libthread_db enabled] Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
Program received signal SIGSEGV, Segmentation fault. 0x00007ffff79bfc12 in EVP_PKEY_free () from /lib/x86_64-linux-gnu/libcrypto.so.3 (gdb) bt full #0 0x00007ffff79bfc12 in EVP_PKEY_free () from /lib/x86_64-linux-gnu/libcrypto.so.3 No symbol table info available. #1 0x00007ffff79fa393 in ?? () from /lib/x86_64-linux-gnu/libcrypto.so.3 No symbol table info available. #2 0x00007ffff79fa8cd in PEM_read_bio_Parameters_ex () from /lib/x86_64-linux-gnu/libcrypto.so.3 No symbol table info available. #3 0x00007ffff7fa1b38 in tlso_ctx_init (lo=0x5555556fd550, lt=0x7fffffffe200, is_server=1) at tls_o.c:546 dh = 0x7ffff7c6372f <SSL_CTX_new_ex+815> bio = 0x5555558afd10 ctx = 0x55555586b9c0 i = <optimized out> #4 0x00007ffff7f9de08 in ldap_int_tls_init_ctx (lo=0x5555556fd550, is_server=1) at tls2.c:264 rc = 0 ti = <optimized out> lts = {lt_certfile = 0x5555557735a0 "/opt/ldap/openldap/etc/openldap/certs/ldap.crt", lt_keyfile = 0x5555557735e0 "/opt/ldap/openldap/etc/openldap/certs/ldap.key", lt_dhfile = 0x5555557736c0 "/opt/ldap/openldap/etc/openldap/certs/dhparam", lt_cacertfile = 0x555555773560 "/opt/ldap/openldap/etc/openldap/certs/ca.crt", lt_cacertdir = 0x0, lt_ciphersuite = 0x555555773620 "TLS13-CHACHA20-POLY1305-SHA256:TLS13-AES-256-GCM-SHA384:TLS13-AES-128-GCM-SHA256:EECDH+CHACHA20:EECDH+AESGCM:EDH+AESGCM", lt_crlfile = 0x0, lt_randfile = 0x0, lt_ecname = 0x0, lt_protocol_min = 771, lt_protocol_max = 0, lt_cacert = {bv_len = 0, bv_val = 0x0}, lt_cert = {bv_len = 0, bv_val = 0x0}, lt_key = { bv_len = 0, bv_val = 0x0}} #5 0x00007ffff7f9edef in ldap_pvt_tls_set_option (ld=<optimized out>, option=option@entry=24591, arg=arg@entry=0x7fffffffe310) at tls2.c:983 lo = <optimized out> __PRETTY_FUNCTION__ = "ldap_pvt_tls_set_option" #6 0x00005555555759e7 in main (argc=7, argv=0x7fffffffe4d8) at main.c:924 opt = 1 i = <optimized out> no_detach = 1 rc = 0 urls = <optimized out> username = 0x0 groupname = 0x0 sandbox = 0x0 syslogUser = 160 pid = <optimized out> waitfds = {6, -2147483648} g_argc = 7 g_argv = 0x7fffffffe4d8 configfile = 0x0 configdir = 0x7fffffffe77b "/opt/ldap//openldap/etc/openldap/slapd.d" serverName = 0x7fffffffe721 "slapd" serverMode = 1 scp = <optimized out> scp_entry = <optimized out> serverNamePrefix = <synthetic pointer> l = <optimized out> slapd_pid_file_unlink = 0 slapd_args_file_unlink = 0 firstopt = <optimized out> __PRETTY_FUNCTION__ = "main" (gdb) thread apply all bt
Thread 1 (Thread 0x7ffff75ce7c0 (LWP 66) "slapd"): #0 0x00007ffff79bfc12 in EVP_PKEY_free () from /lib/x86_64-linux-gnu/libcrypto.so.3 #1 0x00007ffff79fa393 in ?? () from /lib/x86_64-linux-gnu/libcrypto.so.3 #2 0x00007ffff79fa8cd in PEM_read_bio_Parameters_ex () from /lib/x86_64-linux-gnu/libcrypto.so.3 #3 0x00007ffff7fa1b38 in tlso_ctx_init (lo=0x5555556fd550, lt=0x7fffffffe200, is_server=1) at tls_o.c:546 #4 0x00007ffff7f9de08 in ldap_int_tls_init_ctx (lo=0x5555556fd550, is_server=1) at tls2.c:264 #5 0x00007ffff7f9edef in ldap_pvt_tls_set_option (ld=<optimized out>, option=option@entry=24591, arg=arg@entry=0x7fffffffe310) at tls2.c:983 #6 0x00005555555759e7 in main (argc=7, argv=0x7fffffffe4d8) at main.c:924