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

Re: slapd crashes updating contextCSN (ITS#2692)



With the latest CVS, I get (again using back-hdb) on modify:

oc_check_allowed type "modifiersName"
oc_check_allowed type "modifyTimestamp"
=> entry_encode(0x00000113): 
bdb_dn2entry("cn=ldapsync,dc=off,dc=padl,dc=com")
=> bdb_dn2id( "dc=off,dc=padl,dc=com" )
<= bdb_dn2id: get failed: DB_NOTFOUND: No matching key/data pair found (-30991)

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 4101 (LWP 13401)]
0x0806f9ee in be_issuffix (be=0x826af88, bvsuffix=0x1c) at backend.c:652
652             for ( i = 0; be->be_nsuffix != NULL && be->be_nsuffix[i].bv_val != NULL; i++ ) {
(gdb) p be->be_nsuffix[i]
$9 = {bv_len = 136735304, bv_val = 0x6 <Address 0x6 out of bounds>}
(gdb) bt
#0  0x0806f9ee in be_issuffix (be=0x826af88, bvsuffix=0x1c) at backend.c:652
#1  0x080b444a in bdb_csn_commit (op=0x82b2940, rs=0xbf1ff8e4, tid=0x82b5d80, ei=0x82b60b8, suffix_ei=0xbf1fe5b0, 
    ctxcsn_e=0xbf1fe5b4, ctxcsn_added=0xbf1fe5b8, locker=2147483654) at ctxcsn.c:119
#2  0x080a62e4 in hdb_modify (op=0x82b2940, rs=0xbf1ff8e4) at modify.c:583
#3  0x080761b6 in do_modify (op=0x82b2940, rs=0xbf1ff8e4) at modify.c:486
#4  0x080669d2 in connection_operation (ctx=0xbf1ff964, arg_v=0x82b2940) at connection.c:984
#5  0x080de380 in ldap_int_thread_pool_wrapper (xpool=0x8167300) at tpool.c:463
#6  0x402470ba in pthread_start_thread () from /lib/libpthread.so.0
#7  0x40247101 in pthread_start_thread_event () from /lib/libpthread.so.0
(gdb) p ctxcsn_e
$10 = (Entry **) 0xbf1fe5b4
(gdb) p ctxcsn_e[0]
$11 = (Entry *) 0xbf1fe5e4
(gdb) p ctxcsn_e[0][0]
$12 = {e_id = 47, e_name = {bv_len = 137057176, bv_val = 0x82b8f68 "_\026\b\200\217+\b\217+\ba\217+\b"}, e_nname = {
    bv_len = 64, bv_val = 0x61e <Address 0x61e out of bounds>}, e_attrs = 0x82b4798, e_ocflags = 137060536, e_bv = {
    bv_len = 136753032, bv_val = 0x82b5d80 "TH\210(\b"}, e_private = 0x80787d5}

Unfortunately this crashes valgrind, so I can't send you any output from
valgrind.

-- Luke