When I try to remove certain entries from OpenLDAP, slapd crashes with a segmentation fault, when using the mdb backend. When I looked at the backtrace, it appeared to be this issue: http://www.openldap.org/its/index.cgi/Software%20Bugs?id=7174
which is fixed in later versions of Ubuntu (it was fixed in OpenLDAP 2.4.30), but not in precise.
When I try to remove certain entries from OpenLDAP, slapd crashes with a segmentation fault, when using the mdb backend. When I looked at the backtrace, it appeared to be this issue: www.openldap. org/its/ index.cgi/ Software% 20Bugs? id=7174
http://
which is fixed in later versions of Ubuntu (it was fixed in OpenLDAP 2.4.30), but not in precise.
It was fixed upstream in this commit: www.openldap. org/devel/ gitweb. cgi?p=openldap. git;a=commit; h=92ed65d298e47 822b9e3ed7d4f9d 8b938bf8b780
http://
The bug occurred on a production server (where the bug first occurred) and in a VM using a dump of that server's directory.
I've downloaded the source package, applied Ubuntu-specific patches and the above patch, and the bug does seem to be absent from the compiled result.
ProblemType: Crash ature: Ubuntu 3.5.0-23. 35~precise1- generic 3.5.7.2 str2bin+ 290>: movb $0x0,0x0(%rbp) 0x7f20871b5000 r--s /var/lib/ ldap/data. mdb ldap/data. mdb ./../libraries/ liblutil/ utils.c: 812 ./../servers/ slapd/schema_ init.c: 2545 0x7f0c70001bb8, keysp=0x7f0c76f fd570, ctx=0x7f0c70000ea0) at ../../. ./../servers/ slapd/schema_ init.c: 2634 0x7f208f9657b8, vals=0x7f0c7000 1bb8, id=4103, opid=2, mask=4, ad=<optimized out>) at ../../. ./../.. /servers/ slapd/back- mdb/index. c:211 5750, tags=0x7f208f96 5900, vals=0x7f0c7000 1bb8, id=4103, opid=2, ad=<optimized out>) at ../../. ./../.. /servers/ slapd/back- mdb/index. c:337
DistroRelease: Ubuntu 12.04
Package: slapd 2.4.28-1.1ubuntu4.3
ProcVersionSign
Uname: Linux 3.5.0-23-generic x86_64
ApportVersion: 2.0.1-0ubuntu17.4
Architecture: amd64
Date: Sun Aug 25 18:59:12 2013
ExecutablePath: /usr/sbin/slapd
InstallationMedia: Ubuntu-Server 12.04.2 LTS "Precise Pangolin" - Release amd64 (20130214)
MarkForUpload: True
ProcCmdline: /usr/sbin/slapd -h ldap:///\ ldapi:/// -g openldap -u openldap -F /etc/ldap/slapd.d
ProcEnviron:
TERM=xterm
PATH=(custom, no user)
LANG=en_US.utf8
SegvAnalysis:
Segfault happened at: 0x7f208d8ea3b2 <lutil_
PC (0x7f208d8ea3b2) ok
source "$0x0" ok
destination "0x0(%rbp)" (0x7f0c879633d3) in non-writable VMA region: 0x7f0c871b5000-
Stack memory exhausted (SP below stack segment)
SegvReason: writing VMA /var/lib/
Signal: 11
SourcePackage: openldap
StacktraceTop:
lutil_str2bin (in=<optimized out>, out=0x7f0c76ffd430, ctx=0x7f0c70000ea0) at ../../.
integerVal2Key (in=<optimized out>, tmp=<optimized out>, ctx=<optimized out>, key=<optimized out>) at ../../.
integerIndexer (use=<optimized out>, flags=<optimized out>, syntax=<optimized out>, mr=<optimized out>, prefix=<optimized out>, values=
indexer (op=0x7f0c70000900, txn=<optimized out>, ai=<optimized out>, atname=
index_at_values (op=0x7f0c70000900, txn=0x7f0c70100f80, type=0x7f208f96
Title: slapd crashed with SIGSEGV in lutil_str2bin()
UpgradeStatus: No upgrade log present (probably fresh install)
UserGroups: