Issue 9258 - Segmentation fault with -u option
Summary: Segmentation fault with -u option
Status: VERIFIED DUPLICATE of issue 6937
Alias: None
Product: OpenLDAP
Classification: Unclassified
Component: slapd (show other issues)
Version: 2.5.4
Hardware: x86_64 Linux
: --- normal
Target Milestone: ---
Assignee: OpenLDAP project
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-05-10 13:06 UTC by nick
Modified: 2020-05-11 15:02 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description nick 2020-05-10 13:06:33 UTC
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.
Comment 2 Quanah Gibson-Mount 2020-05-11 15:02:35 UTC

*** This issue has been marked as a duplicate of issue 6937 ***