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

Re: commit: ldap/servers/slapd/back-bdb back-bdb.h cache.c init.c (ITS#3201)



Looks like the patch interferes with database opening.
The following is a stack trace when test002 got stuck upon the first
ldapadd.
- Jong-Hyuk

==============================================================
Thread 2 (Thread 1086192944 (LWP 14771)):
#0  0xffffe002 in ?? ()
#1  0x40093932 in __lock_get_internal () from /usr/lib/libdb-4.2.so
#2  0x4009329e in __lock_get () from /usr/lib/libdb-4.2.so
#3  0x40090d8c in __fop_file_setup () from /usr/lib/libdb-4.2.so
#4  0x4007c9ba in __db_open () from /usr/lib/libdb-4.2.so
#5  0x40078453 in __db_open_pp () from /usr/lib/libdb-4.2.so
#6  0x080d04b2 in bdb_db_cache (be=0xfffffffc, name=0x817f2a8 "cn",
    dbout=0x40bdf0d0) at
../../../../ldap/servers/slapd/back-bdb/dbcache.c:129
#7  0x080b7e4e in indexer (op=0x81a4b38, txn=0x81a6078, ad=0x817f438,
    atname=0x817f35c, vals=0x81a6550, id=2, opid=1, mask=1814)
    at ../../../../ldap/servers/slapd/back-bdb/index.c:175
#8  0x080b81ee in index_at_values (op=0x81a4b38, txn=0x81a6078,
ad=0x817f438,
    type=0x817f320, tags=0x817f448, vals=0x81a6550, id=2, opid=1)
    at ../../../../ldap/servers/slapd/back-bdb/index.c:295
#9  0x080b8271 in bdb_index_values (op=0x81a4b38, txn=0x81a6078,
    desc=0xfffffffc, vals=0x81a6550, id=2, opid=1)
    at ../../../../ldap/servers/slapd/back-bdb/index.c:336
#10 0x080b830c in bdb_index_entry (op=0x81a4b38, txn=0x81a6078, opid=1,
    e=0x81a6698) at ../../../../ldap/servers/slapd/back-bdb/index.c:364
#11 0x080b156e in bdb_csn_commit (op=0x81a4b38, rs=0x40bdf718,
tid=0x81a6078,
    ei=0x8198630, suffix_ei=0x40bdf3b4, ctxcsn_e=0x40bdf3b8,
    ctxcsn_added=0x40bdf3bc, locker=2147483653)
    at ../../../../ldap/servers/slapd/back-bdb/ctxcsn.c:198
#12 0x080ae153 in bdb_add (op=0x81a4b38, rs=0x40bdf718)
    at ../../../../ldap/servers/slapd/back-bdb/add.c:441
#13 0x0805c979 in do_add (op=0x81a4b38, rs=0x40bdf718)
    at ../../../ldap/servers/slapd/add.c:318
#14 0x08057e30 in connection_operation (ctx=0x40bdf798, arg_v=0x81a4b38)
    at ../../../ldap/servers/slapd/connection.c:1048
#15 0x080dce6b in ldap_int_thread_pool_wrapper (xpool=0x8180778)
    at ../../../ldap/libraries/libldap_r/tpool.c:467
#16 0x4021f332 in start_thread () from /lib/tls/libpthread.so.0