starting as root and using the -u option causes segfault: $ sudo /apps/openldap-devel/libexec/slapd -h "ldap://localhost" -f /apps/openldap-devel/etc/openldap/slapd.conf -u nick -d -1 ldap_url_parse_ext(ldap://localhost/) ldap_init: trying /apps/openldap-devel/etc/openldap/ldap.conf ldap_init: using /apps/openldap-devel/etc/openldap/ldap.conf ldap_init: HOME env is /root ldap_init: trying /root/ldaprc ldap_init: trying /root/.ldaprc ldap_init: trying ldaprc ldap_init: LDAPCONF env is NULL ldap_init: LDAPRC env is NULL 5eb7fbed @(#) $OpenLDAP: slapd 2.5.X (May 10 2020 08:03:33) $ nick@opti790:/home/nick/git/openldap/servers/slapd ldap_pvt_gethostbyname_a: host=opti790, r=0 5eb7fbed daemon_init: ldap://localhost 5eb7fbed daemon_init: listen on ldap://localhost 5eb7fbed daemon_init: 1 listeners to open... ldap_url_parse_ext(ldap://localhost) 5eb7fbed daemon: listener initialized ldap://localhost 5eb7fbed daemon_init: 1 listeners opened munmap_chunk(): invalid pointer Aborted Starting as the user without the -u option loads slapd without issue This also fails in the 2.X branch Works as intended in 2.4.50.
https://git.openldap.org/openldap/openldap/-/merge_requests/63
*** This issue has been marked as a duplicate of issue 6937 ***