[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
(ITS#4797) back-bdb crashes during test34-translucent
Full_Name: Pierangelo Masarati
Version: HEAD
OS: Linux SuSE 10
URL: ftp://ftp.openldap.org/incoming/
Submission from: (NULL) (131.175.154.35)
Submitted by: ando
Apparently, the cache lru is not initialized. Backtrace:
masarati@xxx:~/yyy/ldap-devel/tests> gdb ../servers/slapd/slapd core.1900
GNU gdb 6.3
<snip>
#0 0x00000000004f9e13 in bdb_cache_delete_internal (cache=0x817b50,
e=0x8efbc0, decr=1) at cache.c:1240
1240 LRU_DEL( cache, e );
(gdb) bt
#0 0x00000000004f9e13 in bdb_cache_delete_internal (cache=0x817b50,
e=0x8efbc0, decr=1) at cache.c:1240
#1 0x00000000004f9bdf in bdb_cache_delete (bdb=0x817af0, e=0x8c5bf8,
locker=2147483683, lock=0x41801820) at cache.c:1155
#2 0x00000000004fde8f in bdb_delete (op=0x8d94e0, rs=0x41801d50)
at delete.c:520
#3 0x00000000004b0011 in overlay_op_walk (op=0x8d94e0, rs=0x41801d50,
which=op_delete, oi=0x819310, on=0x0) at backover.c:507
#4 0x00000000004b0215 in over_op_func (op=0x8d94e0, rs=0x41801d50,
which=op_delete) at backover.c:559
#5 0x00000000004b035f in over_op_delete (op=0x8d94e0, rs=0x41801d50)
at backover.c:611
#6 0x00000000004580ca in fe_op_delete (op=0x8d94e0, rs=0x41801d50)
at delete.c:180
#7 0x0000000000457cbc in do_delete (op=0x8d94e0, rs=0x41801d50) at delete.c:91
#8 0x0000000000438689 in connection_operation (ctx=0x41801e90, arg_v=0x8d94e0)
at connection.c:1128
#9 0x0000000000438b6c in connection_read_thread (ctx=0x41801e90, argv=0xd)
at connection.c:1256
#10 0x0000000000592587 in ldap_int_thread_pool_wrapper (xpool=0x7d99a0)
at tpool.c:704
#11 0x00002aaaab0befa5 in start_thread () from /lib64/tls/libpthread.so.0
#12 0x00002aaaab28acb2 in clone () from /lib64/tls/libc.so.6
#13 0x0000000000000000 in ?? ()
<snip>
(gdb) p cache[0]
$1 = {c_eifree = 0x0, c_idtree = 0x8ebaa0, c_lruhead = 0x0, c_lrutail = 0x0,
c_dntree = {bei_parent = 0x0, bei_id = 0, bei_lockpad = 0 '\0',
bei_state = 128, bei_finders = 0, bei_nrdn = {bv_len = 0, bv_val = 0x0},
bei_e = 0x0, bei_kids = 0x8ec040, bei_kids_mutex = {__m_reserved = 0,
__m_count = 0, __m_owner = 0x0, __m_kind = 0, __m_lock = {__status = 0,
__spinlock = 0}}, bei_lrunext = 0x0, bei_lruprev = 0x0},
c_maxsize = 1000, c_cursize = 4, c_minfree = 1, c_eiused = 3, c_leaves = 1,
c_purging = 0, c_locker = 6, c_rwlock = 0x817db0, c_lru_mutex = {
__m_reserved = 1, __m_count = 0, __m_owner = 0x100000771, __m_kind = 0,
__m_lock = {__status = 0, __spinlock = 0}}, c_count_mutex = {
__m_reserved = 0, __m_count = 0, __m_owner = 0x0, __m_kind = 0,
__m_lock = {__status = 0, __spinlock = 0}}, c_eifree_mutex = {
__m_reserved = 0, __m_count = 0, __m_owner = 0x0, __m_kind = 0,
__m_lock = {__status = 0, __spinlock = 0}}}
(gdb) p e[0]
$2 = {bei_parent = 0x8e2cc0, bei_id = 7, bei_lockpad = 0 '\0',
bei_state = 139, bei_finders = 0, bei_nrdn = {bv_len = 11,
bv_val = 0x8e26f0 "uid=someguy"}, bei_e = 0x8c5bf8, bei_kids = 0x0,
bei_kids_mutex = {__m_reserved = 1, __m_count = 0, __m_owner = 0x100000771,
__m_kind = 0, __m_lock = {__status = 0, __spinlock = 0}},
bei_lrunext = 0x0, bei_lruprev = 0x0}