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.
https://bugs.openldap.org/show_bug.cgi?id=9258
Ryan Tandy ryan@openldap.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Ever confirmed|0 |1 Status|UNCONFIRMED |IN_PROGRESS
--- Comment #1 from Ryan Tandy ryan@openldap.org --- https://git.openldap.org/openldap/openldap/-/merge_requests/63
https://bugs.openldap.org/show_bug.cgi?id=9258
Quanah Gibson-Mount quanah@openldap.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |DUPLICATE Status|IN_PROGRESS |RESOLVED
--- Comment #2 from Quanah Gibson-Mount quanah@openldap.org ---
*** This bug has been marked as a duplicate of bug 6937 ***
https://bugs.openldap.org/show_bug.cgi?id=9258
Quanah Gibson-Mount quanah@openldap.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |VERIFIED