Created attachment 453805 [details] Problem report by Eric Torgersen. Description of problem: By running simultaneous repeated searches, the server sometimes returns corrupted DNs.
Created attachment 453807 [details] test script to reproduce the problem How to run it. cp /path/to/search.sh . dbgen.pl -o example100k.ldif -n 100000 sh search.sh & sh search.sh & sh search.sh The script exits with this error: uid=SHosier11721,ou=Product Testing,dc=example,dc=com and do not match (N is 11728)
(In reply to comment #1) > Created attachment 453807 [details] > test script to reproduce the problem > > How to run it. Note: These variables in the script need to be modified to adjust to each server: MOZSEARCH=/usr/lib64/mozldap/ldapsearch PORT=10389 BINDDN="cn=directory manager" BINDPW="Secret123" SRCLDIF=/export/tests/brokenDN/example100k.ldif MAXCNT=100000 FAILED=/export/tests/brokenDN/failed
Created attachment 453814 [details] git patch file (master) Description: Some of the functions in ldbm_entryrdn.c uses static memory for reading data from the entryrdn index, where the static initializer should not have been used since the memory cannot be shared among threads. This patch fixes it. File: ldap/servers/slapd/back-ldbm/ldbm_entryrdn.c
Reviewed by Rich (Thank you!!!). Pushed to master. $ git merge 643532 Updating 0b7a846..f39aab7 Fast-forward ldap/servers/slapd/back-ldbm/ldbm_entryrdn.c | 14 ++++++-------- 1 files changed, 6 insertions(+), 8 deletions(-) $ git push Counting objects: 13, done. Delta compression using up to 4 threads. Compressing objects: 100% (7/7), done. Writing objects: 100% (7/7), 902 bytes, done. Total 7 (delta 5), reused 0 (delta 0) To ssh://git.fedorahosted.org/git/389/ds.git 0b7a846..f39aab7 master -> master
Tested with steps : cp /path/to/search.sh . dbgen.pl -o example100k.ldif -n 100000 sh search.sh & sh search.sh & sh search.sh Verified Successfully.