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

Re: (ITS#4860) Sets' enhancement



This is a multi-part message in MIME format.
--------------050900090302030708020604
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit

Pierangelo Masarati a écrit :
> Should be fixed now in HEAD/re24/re23.  Please test.  p.

Hi,

I've been testing (at last, sorry for the delay), and I've come across
another memory problem. Backtrace is below, and valgrind output is attached.

Please shout if you need any more information.

Backtrace follows:
8<-------------------------------------------------------------------
conn=0 op=0 BIND dn="" method=128
conn=0 op=0 RESULT tag=97 err=0 text=
conn=0 op=1 SRCH base="ou=people,dc=linagora,dc=org" scope=2 deref=0
filter="(mail=li*)"
<= bdb_substring_candidates: (mail) not indexed
*** glibc detected *** double free or corruption (fasttop): 0x082e54c8 ***

Program received signal SIGABRT, Aborted.
[Switching to Thread 32771 (LWP 19881)]
0x40350b01 in kill () from /lib/libc.so.6
(gdb) bt
#0  0x40350b01 in kill () from /lib/libc.so.6
#1  0x402def65 in pthread_kill () from /lib/libpthread.so.0
#2  0x402defab in raise () from /lib/libpthread.so.0
#3  0x40350894 in raise () from /lib/libc.so.6
#4  0x40351ccc in abort () from /lib/libc.so.6
#5  0x40384b0f in __fsetlocking () from /lib/libc.so.6
#6  0x4038a080 in __libc_malloc_pthread_startup () from /lib/libc.so.6
#7  0x4038b628 in free () from /lib/libc.so.6
#8  0x0813f736 in ber_bvarray_free_x (a=0x82e5470, ctx=0x82882b8) at
memory.c:734
#9  0x080a15e3 in slap_set_dispose (cp=<value optimized out>,
set=0x82e5470, flags=6) at sets.c:64
#10 0x080a1655 in slap_set_join (cp=0x62f5ab90, lset=0x82e5470,
op_flags=16, rset=0x82e5470) at sets.c:335
#11 0x080a23f2 in slap_set_filter (gatherer=0x807f810 <acl_set_gather>,
cp=0x62f5ab90, fbv=0x62f5ab98, user=0x82876a0, target=0x82e004c,
results=0x0)
    at sets.c:445
#12 0x0807f5b9 in acl_match_set (subj=0x62f5b380, op=0x8287608,
e=0x82e0040, default_set_attribute=0x0) at acl.c:2722
#13 0x08081b58 in access_allowed_mask (op=0x8287608, e=0x82e0040,
desc=0x8217f00, val=0x82e40d8, access=ACL_READ, state=0x62f5b428,
maskp=0x0) at acl.c:1884
#14 0x0806fa8e in slap_send_search_entry (op=0x8287608, rs=0x6301cce4)
at result.c:894
#15 0x080c5eeb in bdb_search (op=0x8287608, rs=0x6301cce4) at search.c:879
#16 0x08062902 in fe_op_search (op=0x8287608, rs=0x6301cce4) at search.c:355
#17 0x080b6ff0 in overlay_op_walk (op=0x8287608, rs=0x6301cce4,
which=op_search, oi=0x822fb08, on=0x81eb7d8) at backover.c:650
#18 0x080b73ee in over_op_func (op=0x8287608, rs=0x6301cce4,
which=op_search) at backover.c:702
#19 0x0806320b in do_search (op=0x8287608, rs=0x6301cce4) at search.c:217
#20 0x080609db in connection_operation (ctx=0x6301cd58, arg_v=0x8287608)
at connection.c:1133
#21 0x0811b664 in ldap_int_thread_pool_wrapper (xpool=0x81d1048) at
tpool.c:478
#22 0x402dbc51 in pthread_start_thread () from /lib/libpthread.so.0
#23 0x402dbdb4 in pthread_start_thread_event () from /lib/libpthread.so.0
#24 0x403e238a in clone () from /lib/libc.so.6
8<-------------------------------------------------------------------

Jon
-- 
Jonathan Clarke

Cellule OSSA - Groupe LINAGORA
27 rue de Berri, 75008 Paris
Tél: 01 58 18 68 28, fax: 01 58 18 68 29
http://www.linagora.com - http://www.08000linux.com

--------------050900090302030708020604
Content-Type: text/plain;
 name="sets-bug-valgrind-output.txt"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
 filename="sets-bug-valgrind-output.txt"

conn=0 fd=12 ACCEPT from IP=127.0.0.1:33726 (IP=0.0.0.0:391)
conn=0 op=0 BIND dn="" method=128
conn=0 op=0 RESULT tag=97 err=0 text=
conn=0 op=1 SRCH base="ou=people,dc=upmc,dc=fr" scope=2 deref=0 filter="(mail=li*)"
<= bdb_substring_candidates: (mail) not indexed
==19986== 
==19986== Thread 4:
==19986== Invalid read of size 4
==19986==    at 0x80A1459: slap_set_size (sets.c:34)
==19986==    by 0x80A1671: slap_set_join (sets.c:249)
==19986==    by 0x80A23F1: slap_set_filter (sets.c:445)
==19986==    by 0x807F5B8: acl_match_set (acl.c:2722)
==19986==    by 0x8081B57: access_allowed_mask (acl.c:1884)
==19986==    by 0x806FA8D: slap_send_search_entry (result.c:894)
==19986==    by 0x80C5EEA: bdb_search (search.c:879)
==19986==    by 0x8062901: fe_op_search (search.c:355)
==19986==    by 0x80B6FEF: overlay_op_walk (backover.c:650)
==19986==    by 0x80B73ED: over_op_func (backover.c:702)
==19986==    by 0x806320A: do_search (search.c:217)
==19986==    by 0x80609DA: connection_operation (connection.c:1133)
==19986==  Address 0x6074F7C is 4 bytes inside a block of size 24 free'd
==19986==    at 0x401BFA5: free (vg_replace_malloc.c:233)
==19986==    by 0x80A15E2: slap_set_dispose (sets.c:64)
==19986==    by 0x80A1638: slap_set_join (sets.c:334)
==19986==    by 0x80A1F1F: slap_set_filter (sets.c:471)
==19986==    by 0x807F5B8: acl_match_set (acl.c:2722)
==19986==    by 0x8081B57: access_allowed_mask (acl.c:1884)
==19986==    by 0x806FA8D: slap_send_search_entry (result.c:894)
==19986==    by 0x80C5EEA: bdb_search (search.c:879)
==19986==    by 0x8062901: fe_op_search (search.c:355)
==19986==    by 0x80B6FEF: overlay_op_walk (backover.c:650)
==19986==    by 0x80B73ED: over_op_func (backover.c:702)
==19986==    by 0x806320A: do_search (search.c:217)
==19986== 
==19986== Invalid read of size 4
==19986==    at 0x80A1471: slap_set_size (sets.c:34)
==19986==    by 0x80A1671: slap_set_join (sets.c:249)
==19986==    by 0x80A23F1: slap_set_filter (sets.c:445)
==19986==    by 0x807F5B8: acl_match_set (acl.c:2722)
==19986==    by 0x8081B57: access_allowed_mask (acl.c:1884)
==19986==    by 0x806FA8D: slap_send_search_entry (result.c:894)
==19986==    by 0x80C5EEA: bdb_search (search.c:879)
==19986==    by 0x8062901: fe_op_search (search.c:355)
==19986==    by 0x80B6FEF: overlay_op_walk (backover.c:650)
==19986==    by 0x80B73ED: over_op_func (backover.c:702)
==19986==    by 0x806320A: do_search (search.c:217)
==19986==    by 0x80609DA: connection_operation (connection.c:1133)
==19986==  Address 0x6074F84 is 12 bytes inside a block of size 24 free'd
==19986==    at 0x401BFA5: free (vg_replace_malloc.c:233)
==19986==    by 0x80A15E2: slap_set_dispose (sets.c:64)
==19986==    by 0x80A1638: slap_set_join (sets.c:334)
==19986==    by 0x80A1F1F: slap_set_filter (sets.c:471)
==19986==    by 0x807F5B8: acl_match_set (acl.c:2722)
==19986==    by 0x8081B57: access_allowed_mask (acl.c:1884)
==19986==    by 0x806FA8D: slap_send_search_entry (result.c:894)
==19986==    by 0x80C5EEA: bdb_search (search.c:879)
==19986==    by 0x8062901: fe_op_search (search.c:355)
==19986==    by 0x80B6FEF: overlay_op_walk (backover.c:650)
==19986==    by 0x80B73ED: over_op_func (backover.c:702)
==19986==    by 0x806320A: do_search (search.c:217)
==19986== 
==19986== Invalid read of size 4
==19986==    at 0x80A19A3: slap_set_join (sets.c:278)
==19986==    by 0x80A23F1: slap_set_filter (sets.c:445)
==19986==    by 0x807F5B8: acl_match_set (acl.c:2722)
==19986==    by 0x8081B57: access_allowed_mask (acl.c:1884)
==19986==    by 0x806FA8D: slap_send_search_entry (result.c:894)
==19986==    by 0x80C5EEA: bdb_search (search.c:879)
==19986==    by 0x8062901: fe_op_search (search.c:355)
==19986==    by 0x80B6FEF: overlay_op_walk (backover.c:650)
==19986==    by 0x80B73ED: over_op_func (backover.c:702)
==19986==    by 0x806320A: do_search (search.c:217)
==19986==    by 0x80609DA: connection_operation (connection.c:1133)
==19986==    by 0x811B663: ldap_int_thread_pool_wrapper (tpool.c:478)
==19986==  Address 0x6074F7C is 4 bytes inside a block of size 24 free'd
==19986==    at 0x401BFA5: free (vg_replace_malloc.c:233)
==19986==    by 0x80A15E2: slap_set_dispose (sets.c:64)
==19986==    by 0x80A1638: slap_set_join (sets.c:334)
==19986==    by 0x80A1F1F: slap_set_filter (sets.c:471)
==19986==    by 0x807F5B8: acl_match_set (acl.c:2722)
==19986==    by 0x8081B57: access_allowed_mask (acl.c:1884)
==19986==    by 0x806FA8D: slap_send_search_entry (result.c:894)
==19986==    by 0x80C5EEA: bdb_search (search.c:879)
==19986==    by 0x8062901: fe_op_search (search.c:355)
==19986==    by 0x80B6FEF: overlay_op_walk (backover.c:650)
==19986==    by 0x80B73ED: over_op_func (backover.c:702)
==19986==    by 0x806320A: do_search (search.c:217)
==19986== 
==19986== Invalid read of size 4
==19986==    at 0x80A19DB: slap_set_join (sets.c:284)
==19986==    by 0x80A23F1: slap_set_filter (sets.c:445)
==19986==    by 0x807F5B8: acl_match_set (acl.c:2722)
==19986==    by 0x8081B57: access_allowed_mask (acl.c:1884)
==19986==    by 0x806FA8D: slap_send_search_entry (result.c:894)
==19986==    by 0x80C5EEA: bdb_search (search.c:879)
==19986==    by 0x8062901: fe_op_search (search.c:355)
==19986==    by 0x80B6FEF: overlay_op_walk (backover.c:650)
==19986==    by 0x80B73ED: over_op_func (backover.c:702)
==19986==    by 0x806320A: do_search (search.c:217)
==19986==    by 0x80609DA: connection_operation (connection.c:1133)
==19986==    by 0x811B663: ldap_int_thread_pool_wrapper (tpool.c:478)
==19986==  Address 0x6074F78 is 0 bytes inside a block of size 24 free'd
==19986==    at 0x401BFA5: free (vg_replace_malloc.c:233)
==19986==    by 0x80A15E2: slap_set_dispose (sets.c:64)
==19986==    by 0x80A1638: slap_set_join (sets.c:334)
==19986==    by 0x80A1F1F: slap_set_filter (sets.c:471)
==19986==    by 0x807F5B8: acl_match_set (acl.c:2722)
==19986==    by 0x8081B57: access_allowed_mask (acl.c:1884)
==19986==    by 0x806FA8D: slap_send_search_entry (result.c:894)
==19986==    by 0x80C5EEA: bdb_search (search.c:879)
==19986==    by 0x8062901: fe_op_search (search.c:355)
==19986==    by 0x80B6FEF: overlay_op_walk (backover.c:650)
==19986==    by 0x80B73ED: over_op_func (backover.c:702)
==19986==    by 0x806320A: do_search (search.c:217)
==19986== 
==19986== Invalid read of size 4
==19986==    at 0x80A1B02: slap_set_join (sets.c:309)
==19986==    by 0x80A23F1: slap_set_filter (sets.c:445)
==19986==    by 0x807F5B8: acl_match_set (acl.c:2722)
==19986==    by 0x8081B57: access_allowed_mask (acl.c:1884)
==19986==    by 0x806FA8D: slap_send_search_entry (result.c:894)
==19986==    by 0x80C5EEA: bdb_search (search.c:879)
==19986==    by 0x8062901: fe_op_search (search.c:355)
==19986==    by 0x80B6FEF: overlay_op_walk (backover.c:650)
==19986==    by 0x80B73ED: over_op_func (backover.c:702)
==19986==    by 0x806320A: do_search (search.c:217)
==19986==    by 0x80609DA: connection_operation (connection.c:1133)
==19986==    by 0x811B663: ldap_int_thread_pool_wrapper (tpool.c:478)
==19986==  Address 0x6074F78 is 0 bytes inside a block of size 24 free'd
==19986==    at 0x401BFA5: free (vg_replace_malloc.c:233)
==19986==    by 0x80A15E2: slap_set_dispose (sets.c:64)
==19986==    by 0x80A1638: slap_set_join (sets.c:334)
==19986==    by 0x80A1F1F: slap_set_filter (sets.c:471)
==19986==    by 0x807F5B8: acl_match_set (acl.c:2722)
==19986==    by 0x8081B57: access_allowed_mask (acl.c:1884)
==19986==    by 0x806FA8D: slap_send_search_entry (result.c:894)
==19986==    by 0x80C5EEA: bdb_search (search.c:879)
==19986==    by 0x8062901: fe_op_search (search.c:355)
==19986==    by 0x80B6FEF: overlay_op_walk (backover.c:650)
==19986==    by 0x80B73ED: over_op_func (backover.c:702)
==19986==    by 0x806320A: do_search (search.c:217)
==19986== 
==19986== Invalid read of size 4
==19986==    at 0x80A1B08: slap_set_join (sets.c:309)
==19986==    by 0x80A23F1: slap_set_filter (sets.c:445)
==19986==    by 0x807F5B8: acl_match_set (acl.c:2722)
==19986==    by 0x8081B57: access_allowed_mask (acl.c:1884)
==19986==    by 0x806FA8D: slap_send_search_entry (result.c:894)
==19986==    by 0x80C5EEA: bdb_search (search.c:879)
==19986==    by 0x8062901: fe_op_search (search.c:355)
==19986==    by 0x80B6FEF: overlay_op_walk (backover.c:650)
==19986==    by 0x80B73ED: over_op_func (backover.c:702)
==19986==    by 0x806320A: do_search (search.c:217)
==19986==    by 0x80609DA: connection_operation (connection.c:1133)
==19986==    by 0x811B663: ldap_int_thread_pool_wrapper (tpool.c:478)
==19986==  Address 0x6074F7C is 4 bytes inside a block of size 24 free'd
==19986==    at 0x401BFA5: free (vg_replace_malloc.c:233)
==19986==    by 0x80A15E2: slap_set_dispose (sets.c:64)
==19986==    by 0x80A1638: slap_set_join (sets.c:334)
==19986==    by 0x80A1F1F: slap_set_filter (sets.c:471)
==19986==    by 0x807F5B8: acl_match_set (acl.c:2722)
==19986==    by 0x8081B57: access_allowed_mask (acl.c:1884)
==19986==    by 0x806FA8D: slap_send_search_entry (result.c:894)
==19986==    by 0x80C5EEA: bdb_search (search.c:879)
==19986==    by 0x8062901: fe_op_search (search.c:355)
==19986==    by 0x80B6FEF: overlay_op_walk (backover.c:650)
==19986==    by 0x80B73ED: over_op_func (backover.c:702)
==19986==    by 0x806320A: do_search (search.c:217)
==19986== 
==19986== Invalid read of size 1
==19986==    at 0x401D570: memmove (mc_replace_strmem.c:503)
==19986==    by 0x80A1B16: slap_set_join (sets.c:309)
==19986==    by 0x80A23F1: slap_set_filter (sets.c:445)
==19986==    by 0x807F5B8: acl_match_set (acl.c:2722)
==19986==    by 0x8081B57: access_allowed_mask (acl.c:1884)
==19986==    by 0x806FA8D: slap_send_search_entry (result.c:894)
==19986==    by 0x80C5EEA: bdb_search (search.c:879)
==19986==    by 0x8062901: fe_op_search (search.c:355)
==19986==    by 0x80B6FEF: overlay_op_walk (backover.c:650)
==19986==    by 0x80B73ED: over_op_func (backover.c:702)
==19986==    by 0x806320A: do_search (search.c:217)
==19986==    by 0x80609DA: connection_operation (connection.c:1133)
==19986==  Address 0x6074FC7 is 7 bytes inside a block of size 16 free'd
==19986==    at 0x401BFA5: free (vg_replace_malloc.c:233)
==19986==    by 0x813F735: ber_bvarray_free_x (memory.c:734)
==19986==    by 0x80A15E2: slap_set_dispose (sets.c:64)
==19986==    by 0x80A1638: slap_set_join (sets.c:334)
==19986==    by 0x80A1F1F: slap_set_filter (sets.c:471)
==19986==    by 0x807F5B8: acl_match_set (acl.c:2722)
==19986==    by 0x8081B57: access_allowed_mask (acl.c:1884)
==19986==    by 0x806FA8D: slap_send_search_entry (result.c:894)
==19986==    by 0x80C5EEA: bdb_search (search.c:879)
==19986==    by 0x8062901: fe_op_search (search.c:355)
==19986==    by 0x80B6FEF: overlay_op_walk (backover.c:650)
==19986==    by 0x80B73ED: over_op_func (backover.c:702)
==19986== 
==19986== Invalid read of size 1
==19986==    at 0x401D579: memmove (mc_replace_strmem.c:503)
==19986==    by 0x80A1B16: slap_set_join (sets.c:309)
==19986==    by 0x80A23F1: slap_set_filter (sets.c:445)
==19986==    by 0x807F5B8: acl_match_set (acl.c:2722)
==19986==    by 0x8081B57: access_allowed_mask (acl.c:1884)
==19986==    by 0x806FA8D: slap_send_search_entry (result.c:894)
==19986==    by 0x80C5EEA: bdb_search (search.c:879)
==19986==    by 0x8062901: fe_op_search (search.c:355)
==19986==    by 0x80B6FEF: overlay_op_walk (backover.c:650)
==19986==    by 0x80B73ED: over_op_func (backover.c:702)
==19986==    by 0x806320A: do_search (search.c:217)
==19986==    by 0x80609DA: connection_operation (connection.c:1133)
==19986==  Address 0x6074FC5 is 5 bytes inside a block of size 16 free'd
==19986==    at 0x401BFA5: free (vg_replace_malloc.c:233)
==19986==    by 0x813F735: ber_bvarray_free_x (memory.c:734)
==19986==    by 0x80A15E2: slap_set_dispose (sets.c:64)
==19986==    by 0x80A1638: slap_set_join (sets.c:334)
==19986==    by 0x80A1F1F: slap_set_filter (sets.c:471)
==19986==    by 0x807F5B8: acl_match_set (acl.c:2722)
==19986==    by 0x8081B57: access_allowed_mask (acl.c:1884)
==19986==    by 0x806FA8D: slap_send_search_entry (result.c:894)
==19986==    by 0x80C5EEA: bdb_search (search.c:879)
==19986==    by 0x8062901: fe_op_search (search.c:355)
==19986==    by 0x80B6FEF: overlay_op_walk (backover.c:650)
==19986==    by 0x80B73ED: over_op_func (backover.c:702)
==19986== 
==19986== Invalid read of size 4
==19986==    at 0x80A1B27: slap_set_join (sets.c:310)
==19986==    by 0x80A23F1: slap_set_filter (sets.c:445)
==19986==    by 0x807F5B8: acl_match_set (acl.c:2722)
==19986==    by 0x8081B57: access_allowed_mask (acl.c:1884)
==19986==    by 0x806FA8D: slap_send_search_entry (result.c:894)
==19986==    by 0x80C5EEA: bdb_search (search.c:879)
==19986==    by 0x8062901: fe_op_search (search.c:355)
==19986==    by 0x80B6FEF: overlay_op_walk (backover.c:650)
==19986==    by 0x80B73ED: over_op_func (backover.c:702)
==19986==    by 0x806320A: do_search (search.c:217)
==19986==    by 0x80609DA: connection_operation (connection.c:1133)
==19986==    by 0x811B663: ldap_int_thread_pool_wrapper (tpool.c:478)
==19986==  Address 0x6074F78 is 0 bytes inside a block of size 24 free'd
==19986==    at 0x401BFA5: free (vg_replace_malloc.c:233)
==19986==    by 0x80A15E2: slap_set_dispose (sets.c:64)
==19986==    by 0x80A1638: slap_set_join (sets.c:334)
==19986==    by 0x80A1F1F: slap_set_filter (sets.c:471)
==19986==    by 0x807F5B8: acl_match_set (acl.c:2722)
==19986==    by 0x8081B57: access_allowed_mask (acl.c:1884)
==19986==    by 0x806FA8D: slap_send_search_entry (result.c:894)
==19986==    by 0x80C5EEA: bdb_search (search.c:879)
==19986==    by 0x8062901: fe_op_search (search.c:355)
==19986==    by 0x80B6FEF: overlay_op_walk (backover.c:650)
==19986==    by 0x80B73ED: over_op_func (backover.c:702)
==19986==    by 0x806320A: do_search (search.c:217)
==19986== 
==19986== Invalid read of size 4
==19986==    at 0x80A1A95: slap_set_join (sets.c:278)
==19986==    by 0x80A23F1: slap_set_filter (sets.c:445)
==19986==    by 0x807F5B8: acl_match_set (acl.c:2722)
==19986==    by 0x8081B57: access_allowed_mask (acl.c:1884)
==19986==    by 0x806FA8D: slap_send_search_entry (result.c:894)
==19986==    by 0x80C5EEA: bdb_search (search.c:879)
==19986==    by 0x8062901: fe_op_search (search.c:355)
==19986==    by 0x80B6FEF: overlay_op_walk (backover.c:650)
==19986==    by 0x80B73ED: over_op_func (backover.c:702)
==19986==    by 0x806320A: do_search (search.c:217)
==19986==    by 0x80609DA: connection_operation (connection.c:1133)
==19986==    by 0x811B663: ldap_int_thread_pool_wrapper (tpool.c:478)
==19986==  Address 0x6074F84 is 12 bytes inside a block of size 24 free'd
==19986==    at 0x401BFA5: free (vg_replace_malloc.c:233)
==19986==    by 0x80A15E2: slap_set_dispose (sets.c:64)
==19986==    by 0x80A1638: slap_set_join (sets.c:334)
==19986==    by 0x80A1F1F: slap_set_filter (sets.c:471)
==19986==    by 0x807F5B8: acl_match_set (acl.c:2722)
==19986==    by 0x8081B57: access_allowed_mask (acl.c:1884)
==19986==    by 0x806FA8D: slap_send_search_entry (result.c:894)
==19986==    by 0x80C5EEA: bdb_search (search.c:879)
==19986==    by 0x8062901: fe_op_search (search.c:355)
==19986==    by 0x80B6FEF: overlay_op_walk (backover.c:650)
==19986==    by 0x80B73ED: over_op_func (backover.c:702)
==19986==    by 0x806320A: do_search (search.c:217)
==19986== 
==19986== Invalid read of size 4
==19986==    at 0x813F6EF: ber_bvarray_free_x (memory.c:730)
==19986==    by 0x80A15E2: slap_set_dispose (sets.c:64)
==19986==    by 0x80A1638: slap_set_join (sets.c:334)
==19986==    by 0x80A23F1: slap_set_filter (sets.c:445)
==19986==    by 0x807F5B8: acl_match_set (acl.c:2722)
==19986==    by 0x8081B57: access_allowed_mask (acl.c:1884)
==19986==    by 0x806FA8D: slap_send_search_entry (result.c:894)
==19986==    by 0x80C5EEA: bdb_search (search.c:879)
==19986==    by 0x8062901: fe_op_search (search.c:355)
==19986==    by 0x80B6FEF: overlay_op_walk (backover.c:650)
==19986==    by 0x80B73ED: over_op_func (backover.c:702)
==19986==    by 0x806320A: do_search (search.c:217)
==19986==  Address 0x6074F7C is 4 bytes inside a block of size 24 free'd
==19986==    at 0x401BFA5: free (vg_replace_malloc.c:233)
==19986==    by 0x80A15E2: slap_set_dispose (sets.c:64)
==19986==    by 0x80A1638: slap_set_join (sets.c:334)
==19986==    by 0x80A1F1F: slap_set_filter (sets.c:471)
==19986==    by 0x807F5B8: acl_match_set (acl.c:2722)
==19986==    by 0x8081B57: access_allowed_mask (acl.c:1884)
==19986==    by 0x806FA8D: slap_send_search_entry (result.c:894)
==19986==    by 0x80C5EEA: bdb_search (search.c:879)
==19986==    by 0x8062901: fe_op_search (search.c:355)
==19986==    by 0x80B6FEF: overlay_op_walk (backover.c:650)
==19986==    by 0x80B73ED: over_op_func (backover.c:702)
==19986==    by 0x806320A: do_search (search.c:217)
==19986== 
==19986== Invalid read of size 4
==19986==    at 0x813F704: ber_bvarray_free_x (memory.c:730)
==19986==    by 0x80A15E2: slap_set_dispose (sets.c:64)
==19986==    by 0x80A1638: slap_set_join (sets.c:334)
==19986==    by 0x80A23F1: slap_set_filter (sets.c:445)
==19986==    by 0x807F5B8: acl_match_set (acl.c:2722)
==19986==    by 0x8081B57: access_allowed_mask (acl.c:1884)
==19986==    by 0x806FA8D: slap_send_search_entry (result.c:894)
==19986==    by 0x80C5EEA: bdb_search (search.c:879)
==19986==    by 0x8062901: fe_op_search (search.c:355)
==19986==    by 0x80B6FEF: overlay_op_walk (backover.c:650)
==19986==    by 0x80B73ED: over_op_func (backover.c:702)
==19986==    by 0x806320A: do_search (search.c:217)
==19986==  Address 0x6074F84 is 12 bytes inside a block of size 24 free'd
==19986==    at 0x401BFA5: free (vg_replace_malloc.c:233)
==19986==    by 0x80A15E2: slap_set_dispose (sets.c:64)
==19986==    by 0x80A1638: slap_set_join (sets.c:334)
==19986==    by 0x80A1F1F: slap_set_filter (sets.c:471)
==19986==    by 0x807F5B8: acl_match_set (acl.c:2722)
==19986==    by 0x8081B57: access_allowed_mask (acl.c:1884)
==19986==    by 0x806FA8D: slap_send_search_entry (result.c:894)
==19986==    by 0x80C5EEA: bdb_search (search.c:879)
==19986==    by 0x8062901: fe_op_search (search.c:355)
==19986==    by 0x80B6FEF: overlay_op_walk (backover.c:650)
==19986==    by 0x80B73ED: over_op_func (backover.c:702)
==19986==    by 0x806320A: do_search (search.c:217)
==19986== 
==19986== Invalid read of size 4
==19986==    at 0x813F728: ber_bvarray_free_x (memory.c:734)
==19986==    by 0x80A15E2: slap_set_dispose (sets.c:64)
==19986==    by 0x80A1638: slap_set_join (sets.c:334)
==19986==    by 0x80A23F1: slap_set_filter (sets.c:445)
==19986==    by 0x807F5B8: acl_match_set (acl.c:2722)
==19986==    by 0x8081B57: access_allowed_mask (acl.c:1884)
==19986==    by 0x806FA8D: slap_send_search_entry (result.c:894)
==19986==    by 0x80C5EEA: bdb_search (search.c:879)
==19986==    by 0x8062901: fe_op_search (search.c:355)
==19986==    by 0x80B6FEF: overlay_op_walk (backover.c:650)
==19986==    by 0x80B73ED: over_op_func (backover.c:702)
==19986==    by 0x806320A: do_search (search.c:217)
==19986==  Address 0x6074F7C is 4 bytes inside a block of size 24 free'd
==19986==    at 0x401BFA5: free (vg_replace_malloc.c:233)
==19986==    by 0x80A15E2: slap_set_dispose (sets.c:64)
==19986==    by 0x80A1638: slap_set_join (sets.c:334)
==19986==    by 0x80A1F1F: slap_set_filter (sets.c:471)
==19986==    by 0x807F5B8: acl_match_set (acl.c:2722)
==19986==    by 0x8081B57: access_allowed_mask (acl.c:1884)
==19986==    by 0x806FA8D: slap_send_search_entry (result.c:894)
==19986==    by 0x80C5EEA: bdb_search (search.c:879)
==19986==    by 0x8062901: fe_op_search (search.c:355)
==19986==    by 0x80B6FEF: overlay_op_walk (backover.c:650)
==19986==    by 0x80B73ED: over_op_func (backover.c:702)
==19986==    by 0x806320A: do_search (search.c:217)
==19986== 
==19986== Invalid free() / delete / delete[]
==19986==    at 0x401BFA5: free (vg_replace_malloc.c:233)
==19986==    by 0x813F735: ber_bvarray_free_x (memory.c:734)
==19986==    by 0x80A15E2: slap_set_dispose (sets.c:64)
==19986==    by 0x80A1638: slap_set_join (sets.c:334)
==19986==    by 0x80A23F1: slap_set_filter (sets.c:445)
==19986==    by 0x807F5B8: acl_match_set (acl.c:2722)
==19986==    by 0x8081B57: access_allowed_mask (acl.c:1884)
==19986==    by 0x806FA8D: slap_send_search_entry (result.c:894)
==19986==    by 0x80C5EEA: bdb_search (search.c:879)
==19986==    by 0x8062901: fe_op_search (search.c:355)
==19986==    by 0x80B6FEF: overlay_op_walk (backover.c:650)
==19986==    by 0x80B73ED: over_op_func (backover.c:702)
==19986==  Address 0x6074FC0 is 0 bytes inside a block of size 16 free'd
==19986==    at 0x401BFA5: free (vg_replace_malloc.c:233)
==19986==    by 0x813F735: ber_bvarray_free_x (memory.c:734)
==19986==    by 0x80A15E2: slap_set_dispose (sets.c:64)
==19986==    by 0x80A1638: slap_set_join (sets.c:334)
==19986==    by 0x80A1F1F: slap_set_filter (sets.c:471)
==19986==    by 0x807F5B8: acl_match_set (acl.c:2722)
==19986==    by 0x8081B57: access_allowed_mask (acl.c:1884)
==19986==    by 0x806FA8D: slap_send_search_entry (result.c:894)
==19986==    by 0x80C5EEA: bdb_search (search.c:879)
==19986==    by 0x8062901: fe_op_search (search.c:355)
==19986==    by 0x80B6FEF: overlay_op_walk (backover.c:650)
==19986==    by 0x80B73ED: over_op_func (backover.c:702)
==19986== 
==19986== Invalid free() / delete / delete[]
==19986==    at 0x401BFA5: free (vg_replace_malloc.c:233)
==19986==    by 0x80A15E2: slap_set_dispose (sets.c:64)
==19986==    by 0x80A1638: slap_set_join (sets.c:334)
==19986==    by 0x80A23F1: slap_set_filter (sets.c:445)
==19986==    by 0x807F5B8: acl_match_set (acl.c:2722)
==19986==    by 0x8081B57: access_allowed_mask (acl.c:1884)
==19986==    by 0x806FA8D: slap_send_search_entry (result.c:894)
==19986==    by 0x80C5EEA: bdb_search (search.c:879)
==19986==    by 0x8062901: fe_op_search (search.c:355)
==19986==    by 0x80B6FEF: overlay_op_walk (backover.c:650)
==19986==    by 0x80B73ED: over_op_func (backover.c:702)
==19986==    by 0x806320A: do_search (search.c:217)
==19986==  Address 0x6074F78 is 0 bytes inside a block of size 24 free'd
==19986==    at 0x401BFA5: free (vg_replace_malloc.c:233)
==19986==    by 0x80A15E2: slap_set_dispose (sets.c:64)
==19986==    by 0x80A1638: slap_set_join (sets.c:334)
==19986==    by 0x80A1F1F: slap_set_filter (sets.c:471)
==19986==    by 0x807F5B8: acl_match_set (acl.c:2722)
==19986==    by 0x8081B57: access_allowed_mask (acl.c:1884)
==19986==    by 0x806FA8D: slap_send_search_entry (result.c:894)
==19986==    by 0x80C5EEA: bdb_search (search.c:879)
==19986==    by 0x8062901: fe_op_search (search.c:355)
==19986==    by 0x80B6FEF: overlay_op_walk (backover.c:650)
==19986==    by 0x80B73ED: over_op_func (backover.c:702)
==19986==    by 0x806320A: do_search (search.c:217)


--------------050900090302030708020604--