On Sat, Jul 05, 2008 at 09:31:28PM +0000, hyc@symas.com wrote:
Thanks for the report. Seems the search routine wasn't copied correctly from back-bdb/idl.c. Fixed now in HEAD.
Not quite I'm afraid. It now crashes if a value is added that sorts to the head of the list.
I applied this LDIF to the original test case data:
dn: cn=tenK,ou=groups,o=test,dc=example,dc=org changetype: modify add: member member: uniqueIdentifier=a_0,dc=example,dc=org
Running the server with '-d 65535' the trace ends thus:
<= entry_decode(cn=tenK,ou=groups,o=test,dc=example,dc=org) bdb_modify: cn=tenK,ou=groups,o=test,dc=example,dc=org slap_queue_csn: queing 0xa74b3c42 20080814122245.470522Z#000000#000#000000 bdb_dn2entry("cn=tenk,ou=groups,o=test,dc=example,dc=org") bdb_modify_internal: 0x00000004: cn=tenK,ou=groups,o=test,dc=example,dc=org <= acl_access_allowed: granted to database root bdb_modify_internal: add member dnMatch 5 "uniqueIdentifier=a_004997,dc=example,dc=org" "uniqueIdentifier=a_0,dc=example,dc=org" dnMatch 5 "uniqueIdentifier=a_004995,dc=example,dc=org" "uniqueIdentifier=a_0,dc=example,dc=org" dnMatch 5 "uniqueIdentifier=a_000001,dc=example,dc=org" "uniqueIdentifier=a_0,dc=example,dc=org" dnMatch 5 "uniqueIdentifier=a_000000,dc=example,dc=org" "uniqueIdentifier=a_0,dc=example,dc=org" dnMatch 5 "uniqueIdentifier=a_004997,dc=example,dc=org" "uniqueIdentifier=a_0,dc=example,dc=org" dnMatch 5 "uniqueIdentifier=a_004995,dc=example,dc=org" "uniqueIdentifier=a_0,dc=example,dc=org" dnMatch 5 "uniqueIdentifier=a_000001,dc=example,dc=org" "uniqueIdentifier=a_0,dc=example,dc=org" dnMatch 5 "uniqueIdentifier=a_000000,dc=example,dc=org" "uniqueIdentifier=a_0,dc=example,dc=org"
Program received signal SIGSEGV, Segmentation fault.
Andrew