Apply this patch and let me know if things improve... http://www.openldap.org/devel/cvsweb.cgi/libraries/libldbm/ldbm.c.diff?r1=1.3.2.3.2.8&r2=1.3.2.3.2.9