Issue 5698 - slapd crashes after trying to add an invalid database entry
Summary: slapd crashes after trying to add an invalid database entry
Status: VERIFIED FIXED
Alias: None
Product: OpenLDAP
Classification: Unclassified
Component: slapd (show other issues)
Version: unspecified
Hardware: All All
: --- normal
Target Milestone: ---
Assignee: OpenLDAP project
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-09-12 07:46 UTC by Ralf
Modified: 2014-08-01 21:04 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 Ralf 2008-09-12 07:46:31 UTC
Full_Name: Ralf Haferkamp
Version: HEAD, RE24
OS: Linux
URL: ftp://ftp.openldap.org/incoming/
Submission from: (NULL) (89.166.152.188)


slapd segfaults after trying to add an invalid database entry to cn=config. E.g.
I used this one to reproduce the problem (substring index is not allowed for
objectclass):

dn: olcdatabase=hdb,cn=config
objectclass: olchdbconfig
olcdatabase: hdb
olcsuffix: cn=test
olcdbdirectory: /tmp
olcdbcheckpoint: 3 5
olcdbindex: objectclass sub

It crashes in the checkpoint runqueue task, which it seems has not be removed
after the failed ADD operation:

#0  0x000000000052303e in hdb_checkpoint (ctx=0x41f81dd0, arg=0xb1bfb0) at
config.c:181
#1  0x00007f3cbcdd502f in ldap_int_thread_pool_wrapper (xpool=0x8ec640) at
../../../libraries/libldap_r/tpool.c:663
#2  0x00007f3cb9d73040 in start_thread () from /lib64/libpthread.so.0
#3  0x00007f3cb9ae60cd in clone () from /lib64/libc.so.6

A fix is on the way to HEAD.


Comment 1 Ralf 2008-09-12 07:47:08 UTC
moved from Incoming to Software Bugs
Comment 2 Ralf 2008-09-12 07:54:39 UTC
changed notes
Comment 3 Howard Chu 2008-10-21 02:45:32 UTC
changed state Open to Test
Comment 4 Quanah Gibson-Mount 2008-10-31 22:54:34 UTC
changed notes
changed state Test to Release
Comment 5 Quanah Gibson-Mount 2008-11-24 17:05:25 UTC
changed notes
changed state Release to Closed
Comment 6 OpenLDAP project 2014-08-01 21:04:17 UTC
Fixed in HEAD
Fixed in RE24