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

(ITS#3682) syncprov calls access_allowed() with NULL entry, causing assertion to fail

Full_Name: Pierangelo Masarati
Version: HEAD
OS: Linux (whitebox)
URL: ftp://ftp.openldap.org/incoming/
Submission from: (NULL) (
Submitted by: ando

test019 fails because at some point syncprov calls test_filter(), which on turn
calls access_allowed(), with a NULL Entry arg.  This is caused by
syncprov_sendresp().  A backtrace follows.


(gdb) bt
#0  0x00516cef in raise () from /lib/tls/libc.so.6
#1  0x005184f5 in abort () from /lib/tls/libc.so.6
#2  0x00510619 in __assert_fail () from /lib/tls/libc.so.6
#3  0x080a3482 in access_allowed_mask (op=0x9ac9570, e=0x0, desc=0x9a2b8d8, 
    val=0x0, access=ACL_SEARCH, state=0x0, maskp=0x0) at acl.c:378
#4  0x080a154c in test_presence_filter (op=0x9ac9570, e=0x0, desc=0x9a2b8d8)
    at filterentry.c:770
#5  0x0809fe40 in test_filter (op=0x9ac9570, e=0x0, f=0x9ac7db8)
    at filterentry.c:102
#6  0x081abd20 in syncprov_matchops (op=0x9ac9570, opc=0xb689035c, saveit=0)
    at syncprov.c:1035
#7  0x081acd66 in syncprov_op_response (op=0x9ac9570, rs=0xb6d91870)
    at syncprov.c:1400
#8  0x0808ca44 in send_ldap_response (op=0x9ac9570, rs=0xb6d91870)
    at result.c:339
#9  0x0808d9b0 in slap_send_ldap_result (op=0x9ac9570, rs=0xb6d91870)
    at result.c:634
#10 0x080efca9 in bdb_modify (op=0x9ac9570, rs=0xb6d91870) at modify.c:570
#11 0x080e2cf2 in over_op_func (op=0x9ac9570, rs=0xb6d91870, which=op_modify)
    at backover.c:364
#12 0x080e2f3d in over_op_modify (op=0x9ac9570, rs=0xb6d91870)
    at backover.c:416
#13 0x08097502 in fe_op_modify (op=0x9ac9570, rs=0xb6d91870) at modify.c:473
#14 0x0809650a in do_modify (op=0x9ac9570, rs=0xb6d91870) at modify.c:202
#15 0x0807a66b in connection_operation (ctx=0xb6d91900, arg_v=0x9ac9570)
    at connection.c:1044
#16 0x081c7eb3 in ldap_int_thread_pool_wrapper (xpool=0x9a32d80) at tpool.c:479
#17 0x00cecdec in start_thread () from /lib/tls/libpthread.so.0
#18 0x005cba2a in clone () from /lib/tls/libc.so.6