This is a known issue. That patch is now obsoleted by the code that has been committed to HEAD and ported to re24 for release. Please test re24 out of the CVS, or apply the corresponding modifications to slapd/syncrepl.c to 2.4.21, and test. Please note that test018 has been modified to reproduce and test the problem you highlighted. If you run the new test18 with 2.4.21 it should consistently fail, while it passes with the new code.
p.
Hello,
Le 17/04/2010 22:00, > masarati@aero.polimi.it (par Internet) a écrit :
A fix is in HEAD, please test
I have tried the compilaltion of the source 2.4.21 with your patch, "make test" failed on "test020-proxycache for bdb" with this error :
Starting test020-proxycache for bdb...
Starting master slapd on TCP/IP port 9011... Using ldapsearch to check that master slapd is running... Using ldapadd to populate the master directory... Starting proxy cache on TCP/IP port 9012... Using ldapsearch to check that proxy slapd is running... Making queries on the proxy cache... Query 1: filter:(sn=Jon) attrs:all (expect nothing) Query 2: filter:(|(cn=*Jon*)(sn=Jon*)) attrs:cn sn title uid Query 3: filter:(sn=Smith*) attrs:cn sn uid ./scripts/test020-proxycache: line 173: 16714 Erreur de segmentation $SLAPD -f $CONF2 -h $URI2 -d $LVL -d pcache > $LOG2 2>&1 ldapsearch failed (255)! ./scripts/test020-proxycache: line 177: kill: (16714) - Aucun processus de ce type
./scripts/test020-proxycache failed for bdb (exit 255)
make[2]: *** [bdb-mod] Erreur 255 make[2]: quittant le répertoire « /root/openldap/2.4.21-its6472/compil-upstream/openldap-2.4.21/tests » make[1]: *** [test] Erreur 2 make[1]: quittant le répertoire « /root/openldap/2.4.21-its6472/compil-upstream/openldap-2.4.21/tests » make: *** [test] Erreur 2
I have used this compilation steps : tar -zxvf openldap-2.4.21.tgz
cd openldap-2.4.21
patch -p0 < ../pierangelo-masarati-2010-04-17-sync-rename.1.patch patching file servers/slapd/syncrepl.c Hunk #2 succeeded at 2554 (offset -10 lines). Hunk #3 succeeded at 2891 (offset -10 lines). Hunk #4 succeeded at 3026 (offset -10 lines).
./configure --enable-debug --enable-dynamic --enable-syslog --enable-proctitle --enable-ipv6 --enable-local --enable-slapd --enable-aci --enable-cleartext --enable-crypt --disable-lmpasswd --enable-spasswd --enable-modules --enable-rewrite --enable-rlookups --enable-slapi --enable-slp --enable-wrappers --enable-backends=mod --enable-ldbm=no --disable-ndb --enable-overlays=mod --with-subdir=ldap --with-cyrus-sasl --with-threads --with-tls=openssl --with-odbc=unixodbc
make depend
make
make test
regards, Julien