[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: make test crashes in test020-proxycache



Harry Rüter schrieb:
Hi list !

First, my environment :

Suse LINUX 7.1 Vanilla-Kernel 2.2.24

openldap 2.2.4
openssl-0.9.6l
db-4.2.52 (patched: mp/mp_fput.c mp/mp_fget.c)
heimdal 0.6
cyrus-sasl 2.1.17

Configure, compile and install
worked well with the following setup :

---snipp---
#!/bin/sh

CPPFLAGS="-I/usr/local/bdb-4-2/include -I/usr/local/heimdal/include \ -I/usr/local/sasl2/include -I/usr/local/ssl/include"


LDFLAGS="-L/usr/local/bdb-4-2/lib -L/usr/local/heimdal/lib \ -L/usr/local/sasl2/lib/sasl2 -L/usr/local/sasl2/lib \
-L/usr/local/ssl/lib -lpthread"



export CPPFLAGS LDFLAGS

export LD_LIBRARY_PATH=/usr/local/bdb-4-2/lib:$LD_LIBRARY_PATH


make clean rm config.cache

./configure \
--prefix=/usr/local/ldap-2-2-4 \
--mandir=/usr/local/ldap-2-2-4/man \
--enable-dynamic \
--enable-proctitle \
--enable-ipv6 \
--enable-local \
--with-cyrus-sasl \
--with-threads \
--with-tls \
--with-yielding-select \
--enable-slapd  \
--enable-aci \
--enable-cleartext \
--enable-crypt  \
--enable-lmpasswd \
--enable-spasswd \
--enable-modules \
--enable-rewrite \
--enable-rlookups \
--enable-slapi \
--enable-wrappers \
--enable-bdb  \
--with-bdb-module=static \
--enable-dnssrv  \
--with-dnssrv-module=static \
--enable-hdb \

---snipp---

So, make test fails as you can see here :

---snipp---
...
>>>>> Starting test020-proxycache ...
Starting master slapd on TCP/IP port 9011...
Using ldapsearch to check that master slapd is running...
Waiting 5 seconds for slapd to start...
Using ldapadd to populate the master directory...
Starting proxy cache on TCP/IP port 9012...
Using ldapsearch to check that proxy slapd is running...
Waiting 5 seconds for slapd to start...
Making queries on the proxy cache...
Query 1: filter:(sn=Jon) attrs: all
Query 2: filter:(|(cn=*Jon*)(sn=Jon*)) attrs:cn sn title uid
Query 3: filter:(sn=Smith*) attrs:cn sn title uid
Query 4: filter:(sn=Doe*) attrs:cn sn title uid
Query 5: filter:(uid=bjorn) attrs:mail postaladdress telephonenumber cn uid
Query 6: filter:(mail=*@example.com) cn sn title uid
Query 7: filter:(mail=*) cn sn title uid
Query 1 not cacheable
Query 2 cacheable
Query 3 cacheable
Query 4 cacheable
Query 5 cacheable
Query 6 cacheable
Query 7 not cacheable
Successfully verified cacheability
Query 8: filter:(|(cn=*Jones)(sn=Jones)) attrs:cn sn title uid
./scripts/test020-proxycache: line 193: 2838 Segmentation fault $SLAPD -f $CONF2 -h $URI2 -d $LVL >$LOG2 2>&1
ldapsearch failed (255)!
./scripts/test020-proxycache: kill: (2838) - No such pid
>>>>> ./scripts/test020-proxycache failed (exit 255)
make[2]: *** [bdb-yes] Error 255
make[2]: Leaving directory `/work/make/openldap-2.2.4/tests'
make[1]: *** [test] Error 2
make[1]: Leaving directory `/work/make/openldap-2.2.4/tests'
make: *** [test] Error 2
[PTS0] root@486dx66:/work/make/openldap-2.2.4 #
---snipp---


Are this problems known to someone in the list ?
Is there a possibility to start only this test ?
What debuglevel shall i use to get more informations
about the cause for the crash ?

Hi,
have you upgraded the glibc? SUSE 7.1 is rather old and uses a very early version of glibc 2.2 that has problems with the pthread implementation. OpenLDAPs configure script used to have a test that checked for this problem (and didn't run at all). A RedHat Linux Version from this time (7.x) was using the same glibc and had the same problem, that's why they compiled it without thread support...


The problem may lead to thread leakage, so I have no clue how that interacts with the bdb-backend.

Yours
Stephan Siano


-- ---------------------------------------------------------------------- Dr. Stephan Siano, Consultant SUSE LINUX AG, Mergenthalerallee 45-47, D-65760 Eschborn T: +49 (0) 6196 5095131 F: +49 (0) 6196 409607 - stephan.siano@suse.com ----------------------------------------------------------------------