Full_Name: Hallvard Breien Furuseth Version: RE24 de23e57b13fa25ffc9b9c204fd22a50dbde6c0b2 OS: Linux: Fedora 28 URL: ftp://ftp.openldap.org/incoming/ Submission from: (NULL) (193.90.49.117)
ch_malloc(0) asserts when completely deleting olcDbIndex from an MDB database.
$ mkdir db.foo $ servers/slapd/slapd -h ldapi://ldapi/ -f slapd.conf -d0 & $ ldapmodify -H ldapi://ldapi/ -QYEXTERNAL <<EOF
dn: olcDatabase={1}mdb,cn=config changetype: modify delete: olcDbIndex - EOF
modifying entry "olcDatabase={1}mdb,cn=config" slapd: ch_malloc.c:107: ch_calloc: Assertion `0' failed. ldap_result: Can't contact LDAP server (-1)
$ cat slapd.conf
include schema/core.schema authz-regexp ,cn=peercred,cn=external,cn=auth cn=admin
database config rootdn cn=admin
database mdb suffix o=foo directory db.foo index cn eq