https://bugs.openldap.org/show_bug.cgi?id=9258
Bug ID: 9258 Summary: Segmentation fault with -u option Product: OpenLDAP Version: 2.5 Hardware: x86_64 OS: Linux Status: UNCONFIRMED Severity: normal Priority: --- Component: slapd Assignee: bugs@openldap.org Reporter: nick@folino.us Target Milestone: ---
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.