[Pkg-openldap-devel] Bug#618904: openldap 2.4.23 slapd server process frequently hangs during everyday use

Mark Cave-Ayland mark.cave-ayland at siriusit.co.uk
Sun Apr 10 19:48:25 UTC 2011


Okay - I now have a reproducible test case on a test data set rather 
than using confidential internal data. These instructions assume that 
openldap 2.4.23 was built from source obtained from www.openldap.org 
using ./configure --prefix=/home/build/rel-openldap. I can confirm this 
causes the crash on my laptop which is Debian Squeeze AMD64.

Note that the admin DN is cn=Manager,dc=my-domain,dc=com with password 
"secret".

build at zeno:~$ cd /home/build/rel-openldap/
build at zeno:~/rel-openldap$ tar zxf openldap-2.4.23-crash.tar.gz
build at zeno:~/rel-openldap$ rm -rf var/openldap-data/*
build at zeno:~/rel-openldap$ ./sbin/slapadd < etc/openldap/test-data.slapcat
bdb_monitor_db_open: monitoring disabled; configure monitor database to 
enable
_#################### 100.00% eta   none elapsed            none fast! 

Closing DB...
build at zeno:~/rel-openldap$ ./libexec/slapd -h ldap://localhost:10389
build at zeno:~/rel-openldap$ ./bin/ldapmodify -a -f 
etc/openldap/crash.ldif -H ldap://localhost:10389 -D 
'cn=Manager,dc=my-domain,dc=com' -xW
Enter LDAP Password:
adding new entry "cn=user2,ou=groups,dc=my-domain,dc=com"
ldap_result: Can't contact LDAP server (-1)

This is the point at which the slapd process hangs. A quick LDAP search 
in a separate terminal (similar to below) shows that the entire server 
has locked up.

./bin/ldapsearch -b 'dc=my-domain,dc=com' -D 
'cn=Manager,dc=my-domain,dc=com' -H ldap://localhost:10389 -xW

Once here, the only solution appears to be a "kill -9 `pidof slapd`" to 
kill the slapd process and then restart slapd as normal.


ATB,

Mark.

-- 
Mark Cave-Ayland - Senior Technical Architect
PostgreSQL - PostGIS
Sirius Corporation plc - control through freedom
http://www.siriusit.co.uk
t: +44 870 608 0063

Sirius Labs: http://www.siriusit.co.uk/labs
-------------- next part --------------
A non-text attachment was scrubbed...
Name: openldap-2.4.23-crash.tar.gz
Type: application/gzip
Size: 55681 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-openldap-devel/attachments/20110410/aa58cbf6/attachment-0001.bin>


More information about the Pkg-openldap-devel mailing list