[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: (ITS#7451) [PATCH] slapcat: fix segfault when unable to get database first entry

jvcelak@redhat.com wrote:
> Full_Name: Jan Vcelak
> Version: git master
> OS: Linux
> URL: ftp://ftp.openldap.org/incoming/jvcelak-121126-slapcat-fix-segfault-unable-to-get-db-first-entry.patch
> Submission from: (NULL) (
> Tool slapcat segfaults when there is an empty slapd.d config directory and
> 'slapcat -c -H ldap:///cn=config' is invoked.

Not happening here:

violino:~/OD/hobj/tests> ../servers/slapd/slapd -Tc -H ldap:///cn=config -d -1
50b538d7 slapcat init: initiated tool.
50b538d7 slap_sasl_init: initialized!
50b538d7 hdb_back_initialize: initialize HDB backend
50b538d7 hdb_back_initialize: Berkeley DB 5.3.21: (May 11, 2012)
50b538d7 mdb_back_initialize: initialize MDB backend
50b538d7 mdb_back_initialize: MDB 0.9.4: (September 14, 2012)
50b538d7 backend_startup_one: starting "cn=config"
50b538d7 ldif_read_file: no entry file 
50b538d7 send_ldap_result: conn=-1 op=0 p=0
50b538d7 send_ldap_result: err=32 matched="" text=""
50b538d7 could not stat config file "/usr/local/etc/openldap/slapd.conf": No 
such file or directory (2)
slapcat: bad configuration file!

   -- Howard Chu
   CTO, Symas Corp.           http://www.symas.com
   Director, Highland Sun     http://highlandsun.com/hyc/
   Chief Architect, OpenLDAP  http://www.openldap.org/project/