[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
slapd segfaults with mdb
- To: openldap-technical@openldap.org
- Subject: slapd segfaults with mdb
- From: Meike Stone <meike.stone@googlemail.com>
- Date: Mon, 21 Jan 2013 19:01:42 +0100
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:date:message-id:subject:from:to :content-type; bh=vMik9a3hAlI1BDIak9ENJLaWt213w8KDhy8PvaTUiz4=; b=VCTjyDjbLNFBZVlHSX9VLMPR5GLmStCmMeHSpUTOhHdT1HFsV8JPdDOjNDZu0FINfv MupO/nljLeke2JYrv7pX68KQmz1r+Mq5kjkp+Xma339dL6KIpr7S0wOKQvSVWH3u5VWl V5qzEpJ0JN1wEHibsVtT5Nb5Thy64nrTuCe9Sx5k8PNnenExHE0s1miP7sduRyJqH16Z NVk+KRAbBCatycNPEUgTdNZWe5lcuN3TNxCX4vxnaretg4728o9i7mx9qQjZ8X2hr6CG V/1SFk8fha0zKxY7BvehzuvzsEAsiS2XMm70xSHBJmbgt6N2lGxB0g5dYof3y6psKY12 gWFw==
Hello,
I play a little with the mdb on a test machine, and imported our db
from production system.
(about 1,500,000 entires, 2,5GByte ldif from slapcat)
I took the slapd source from git today, and because of segmentation
fault, I compiled slapd with debugging symbols.
My configuration is simple:
--------------------------------------------
include /etc/openldap/schema/core.schema
include /etc/openldap/schema/cosine.schema
include /etc/openldap/schema/inetorgperson.schema
include /etc/openldap/schema/yast.schema
include /etc/openldap/schema/rfc2307bis.schema
include /etc/openldap/schema/my_ldap_attributes.schema
include /etc/openldap/schema/my_ldap_ObjectClasses.schema
pidfile /var/run/slapd/slapd.pid
argsfile /var/run/slapd/slapd.args
sizelimit -1
timelimit 300
disallow bind_anon
require authc
gentlehup on
tool-threads 4
serverID 001
############################
# mdb database definitions
############################
database mdb
suffix "ou=root"
rootdn "cn=admin,ou=root"
rootpw password
directory /var/lib/ldap/ldap.mdb
loglevel 256
maxsize 10737418240
envflags writemap,nometasync
index objectClass,entryUUID,entryCSN eq
index cn eq,sub
.
.
. some other own indexes here
--------------------------------------------
I started my search via:
/tmp/ol/usr/local/bin/ldapsearch -x -h localhost -w password -D
cn=admin,ou=root -b'ou=root' '(objectClass=*)' >/dev/null
and got in the syslog folloing meassge:
Jan 21 17:50:31 debld02 kernel: [348860.053152] slapd[19394]: segfault
at 7f760f974ce8 ip 000000000053bea1 sp 00007f738b10a650 error 4 in
slapd
[400000+227000]
Because of this, I configured the kernel to core dump:
sysctl -w kernel.core_pattern=/tmp/core
sysctl -w kernel.core_uses_pid=1
sysctl -w kernel.suid_dumpable=2
ulimit -c unlimited
ulimit -v unlimited
and got the result via:
~# gdb /tmp/ol/usr/local/libexec/slapd /tmp/core.19386
Core was generated by
`/tmp/buildforopenldaptechnical/usr/local/libexec/slapd -h ldap:///
-f /etc/op'.
Program terminated with signal 11, Segmentation fault.
#0 0x000000000053bea1 in mdb_entry_decode (op=0xc3a020,
data=0x7f738b10a770, e=0x7f738b11a828) at id2entry.c:666
666 a->a_desc = mdb->mi_ads[*lp++];
(gdb)
How can I solve this?
Btw.: This error is repeatable and I saw the same error with the
release OL2.4.33.
Thanks Meike