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

back-hdb deadlock (ITS#2597)



Full_Name: Hallvard B Furuseth
Version: HEAD
OS: Solaris
URL: 
Submission from: (NULL) (129.240.186.42)
Submitted by: hallvard


I got another deadlock.  Two threads are sleeping in select(),
the rest of slapd is deadlocked.  GDB backtrace and test008 output
follows.  I am keeping the slapd process for the time being, so
I can debug furhter on request.

bash$ gdb ../servers/slapd/slapd 10168
Attaching to program `/usit/bombur/tmp/ldap/cvs-ldap/servers/slapd/slapd',
process 10168
sol-thread active.
Retry #1:
Retry #2:
Retry #3:
Retry #4:
[New LWP    1        ]
[New Thread 15        ]
[Switching to Thread 15        ]
0xfef9f160 in _lwp_sema_wait () from /usr/lib/libc.so.1
(gdb) thread apply all bt

Thread 27 (Thread 14 (LWP 6)):
#0  0xfef9f114 in ___lwp_cond_wait () from /usr/lib/libc.so.1
#1  0xfef96660 in _lwp_cond_wait () from /usr/lib/libc.so.1
#2  0x00114d30 in __db_pthread_mutex_lock ()
#3  0x000f2b14 in __lock_get_internal ()
#4  0x000f2060 in __lock_get ()
#5  0x00139b14 in __db_lget ()
#6  0x00119878 in __bam_search ()
#7  0x0015b4b0 in __bam_c_search ()
#8  0x00157f8c in __bam_c_get ()
#9  0x00131894 in __db_c_get ()
#10 0x000946d0 in hdb_dn2id (op=0x4f5e08, txn=0x0, in=0xf90016f4, 
    ei=0xf90016e8) at dn2id.c:747
#11 0x000915c4 in hdb_cache_find_ndn (op=0x4f5e08, txn=0x0, ndn=0x4f5e30, 
    res=0xf90017ac, locker=35) at cache.c:362
#12 0x00093f78 in hdb_dn2entry (op=0x4f5e08, tid=0x0, dn=0x4f5e30, 
    e=0xf9001828, matched=1, locker=35, lock=0xf9001830) at dn2entry.c:44
#13 0x0007b5f8 in hdb_referrals (op=0x4f5e08, rs=0xf9001ad8) at referral.c:46
#14 0x0003f3c8 in backend_check_referrals (op=0x4f5e08, rs=0xf9001ad8)
    at backend.c:1111
#15 0x0003a888 in do_add (op=0x4f5e08, rs=0xf9001ad8) at add.c:229
#16 0x00035258 in connection_operation (ctx=0xf9001b80, arg_v=0x4f5e08)
    at connection.c:953
#17 0x000a8748 in ldap_int_thread_pool_wrapper (xpool=0x225a88) at tpool.c:463

Thread 26 (Thread 13        ):
#0  0xfef9f160 in _lwp_sema_wait () from /usr/lib/libc.so.1
#1  0xfeec9acc in _park () from /usr/lib/libthread.so.1
#2  0xfeec9794 in _swtch () from /usr/lib/libthread.so.1
#3  0xfeec8274 in cond_wait () from /usr/lib/libthread.so.1
#4  0xfeec8118 in pthread_cond_wait () from /usr/lib/libthread.so.1
#5  0x000a9010 in ldap_pvt_thread_cond_wait (cond=0x2a14b0, mutex=0x2a1488)
    at thr_posix.c:254
#6  0x000a7bfc in ldap_pvt_thread_rdwr_wlock (rwlock=0x2a1488) at rdwr.c:245
#7  0x000911c8 in bdb_entryinfo_add_internal (bdb=0x22fc08, ei=0xf9801618, 
    res=0xf980160c, locker=2147483682) at cache.c:210
#8  0x00091d58 in hdb_cache_add (bdb=0x22fc08, eip=0x2a0308, e=0x160a408, 
    nrdn=0xf98016e8, locker=2147483682) at cache.c:675
#9  0x000901f0 in hdb_add (op=0x4f4608, rs=0xf9801ad8) at add.c:491
#10 0x0003aa14 in do_add (op=0x4f4608, rs=0xf9801ad8) at add.c:303
#11 0x00035258 in connection_operation (ctx=0xf9801b80, arg_v=0x4f4608)
    at connection.c:953
#12 0x000a8748 in ldap_int_thread_pool_wrapper (xpool=0x225a88) at tpool.c:463

Thread 25 (Thread 12 (LWP 3)):
#0  0xfef9f114 in ___lwp_cond_wait () from /usr/lib/libc.so.1
#1  0xfef96660 in _lwp_cond_wait () from /usr/lib/libc.so.1
#2  0x00114d30 in __db_pthread_mutex_lock ()
#3  0x000f2b14 in __lock_get_internal ()
#4  0x000f2060 in __lock_get ()
#5  0x00139b14 in __db_lget ()
#6  0x00119878 in __bam_search ()
#7  0x0015b4b0 in __bam_c_search ()
#8  0x00157f8c in __bam_c_get ()
#9  0x00131894 in __db_c_get ()
#10 0x000946d0 in hdb_dn2id (op=0x222d708, txn=0x2d47c88, in=0xfa0015a4, 
    ei=0xfa001598) at dn2id.c:747
#11 0x000915c4 in hdb_cache_find_ndn (op=0x222d708, txn=0x2d47c88, 
    ndn=0x160bd14, res=0xfa00165c, locker=2147483685) at cache.c:362
#12 0x00093f78 in hdb_dn2entry (op=0x222d708, tid=0x2d47c88, dn=0x160bd14, 
    e=0xfa0016e0, matched=1, locker=2147483685, lock=0xfa001770)
    at dn2entry.c:44
#13 0x0008f6fc in hdb_add (op=0x222d708, rs=0xfa001ad8) at add.c:141
#14 0x0003aa14 in do_add (op=0x222d708, rs=0xfa001ad8) at add.c:303
#15 0x00035258 in connection_operation (ctx=0xfa001b80, arg_v=0x222d708)
    at connection.c:953
#16 0x000a8748 in ldap_int_thread_pool_wrapper (xpool=0x225a88) at tpool.c:463

Thread 24 (Thread 11 (LWP 7)):
#0  0xfef9f114 in ___lwp_cond_wait () from /usr/lib/libc.so.1
#1  0xfef96660 in _lwp_cond_wait () from /usr/lib/libc.so.1
#2  0x00114d30 in __db_pthread_mutex_lock ()
#3  0x000f2b14 in __lock_get_internal ()
#4  0x000f2060 in __lock_get ()
#5  0x00139b14 in __db_lget ()
#6  0x00119878 in __bam_search ()
#7  0x0015b4b0 in __bam_c_search ()
#8  0x00157f8c in __bam_c_get ()
#9  0x00131894 in __db_c_get ()
#10 0x000946d0 in hdb_dn2id (op=0x222db08, txn=0x2d47c08, in=0xfa8016b4, 
    ei=0xfa8016a8) at dn2id.c:747
#11 0x000915c4 in hdb_cache_find_ndn (op=0x222db08, txn=0x2d47c08, 
    ndn=0xfa801998, res=0xfa80177c, locker=2147483686) at cache.c:362
#12 0x0007a628 in hdb_modrdn (op=0x222db08, rs=0xfa801ad8) at modrdn.c:678
#13 0x00046f3c in do_modrdn (op=0x222db08, rs=0xfa801ad8) at modrdn.c:366
#14 0x000352d0 in connection_operation (ctx=0xfa801b80, arg_v=0x222db08)
    at connection.c:963
#15 0x000a8748 in ldap_int_thread_pool_wrapper (xpool=0x225a88) at tpool.c:463

Thread 23 (Thread 10        ):
#0  0xfeec826c in cond_wait () from /usr/lib/libthread.so.1
#1  0xfeec8118 in pthread_cond_wait () from /usr/lib/libthread.so.1
#2  0x000a9010 in ldap_pvt_thread_cond_wait (cond=0x2a14b0, mutex=0x2a1488)
    at thr_posix.c:254
#3  0x000a7bfc in ldap_pvt_thread_rdwr_wlock (rwlock=0x2a1488) at rdwr.c:245
#4  0x000917a8 in hdb_cache_find_parent (op=0x4f4008, txn=0x0, id=0, 
    res=0xfaf41638) at cache.c:449
#5  0x000919ec in hdb_cache_find_id (op=0x4f4008, tid=0x0, id=15, 
    eip=0xfaf41638, islocked=0, locker=20, lock=0xfaf41650) at cache.c:564
#6  0x0007d130 in hdb_do_search (op=0x4f4008, rs=0xfb001ad8, sop=0x4f4008, 
    ps_e=0x0, ps_type=0) at search.c:912
#7  0x0007c128 in hdb_search (op=0x4f4008, rs=0xfb001ad8) at search.c:357
#8  0x0003737c in do_search (op=0x4f4008, rs=0xfb001ad8) at search.c:395
#9  0x00035384 in connection_operation (ctx=0xfb001b80, arg_v=0x4f4008)
    at connection.c:978
#10 0x000a8748 in ldap_int_thread_pool_wrapper (xpool=0x225a88) at tpool.c:463

Thread 22 (Thread 9 (LWP 4)):
#0  0xfef9f114 in ___lwp_cond_wait () from /usr/lib/libc.so.1
#1  0xfef96660 in _lwp_cond_wait () from /usr/lib/libc.so.1
#2  0x00114d30 in __db_pthread_mutex_lock ()
#3  0x000f2b14 in __lock_get_internal ()
#4  0x000f2060 in __lock_get ()
#5  0x00139b14 in __db_lget ()
#6  0x00119878 in __bam_search ()
#7  0x0015b4b0 in __bam_c_search ()
#8  0x00157f8c in __bam_c_get ()
#9  0x00131894 in __db_c_get ()
#10 0x000946d0 in hdb_dn2id (op=0x4f5008, txn=0x2d47d08, in=0xfb8016b4, 
    ei=0xfb8016a8) at dn2id.c:747
#11 0x000915c4 in hdb_cache_find_ndn (op=0x4f5008, txn=0x2d47d08, 
    ndn=0xfb801998, res=0xfb80177c, locker=2147483684) at cache.c:362
#12 0x0007a628 in hdb_modrdn (op=0x4f5008, rs=0xfb801ad8) at modrdn.c:678
#13 0x00046f3c in do_modrdn (op=0x4f5008, rs=0xfb801ad8) at modrdn.c:366
#14 0x000352d0 in connection_operation (ctx=0xfb801b80, arg_v=0x4f5008)
    at connection.c:963
#15 0x000a8748 in ldap_int_thread_pool_wrapper (xpool=0x225a88) at tpool.c:463

Thread 21 (Thread 8        ):
#0  0xfeec826c in cond_wait () from /usr/lib/libthread.so.1
#1  0xfeec8118 in pthread_cond_wait () from /usr/lib/libthread.so.1
#2  0x000a9010 in ldap_pvt_thread_cond_wait (cond=0x2a14b0, mutex=0x2a1488)
    at thr_posix.c:254
#3  0x000a7bfc in ldap_pvt_thread_rdwr_wlock (rwlock=0x2a1488) at rdwr.c:245
#4  0x000917a8 in hdb_cache_find_parent (op=0x4f5c08, txn=0x0, id=0, 
    res=0xfbf41638) at cache.c:449
#5  0x000919ec in hdb_cache_find_id (op=0x4f5c08, tid=0x0, id=15, 
    eip=0xfbf41638, islocked=0, locker=18, lock=0xfbf41650) at cache.c:564
#6  0x0007d130 in hdb_do_search (op=0x4f5c08, rs=0xfc001ad8, sop=0x4f5c08, 
    ps_e=0x0, ps_type=0) at search.c:912
#7  0x0007c128 in hdb_search (op=0x4f5c08, rs=0xfc001ad8) at search.c:357
#8  0x0003737c in do_search (op=0x4f5c08, rs=0xfc001ad8) at search.c:395
#9  0x00035384 in connection_operation (ctx=0xfc001b80, arg_v=0x4f5c08)
    at connection.c:978
#10 0x000a8748 in ldap_int_thread_pool_wrapper (xpool=0x225a88) at tpool.c:463

Thread 20 (Thread 7 (LWP 5)):
#0  0xfef9f114 in ___lwp_cond_wait () from /usr/lib/libc.so.1
#1  0xfef96660 in _lwp_cond_wait () from /usr/lib/libc.so.1
#2  0x00114d30 in __db_pthread_mutex_lock ()
#3  0x000f2b14 in __lock_get_internal ()
#4  0x000f2060 in __lock_get ()
#5  0x00139b14 in __db_lget ()
#6  0x00119878 in __bam_search ()
#7  0x0015b4b0 in __bam_c_search ()
#8  0x00157f8c in __bam_c_get ()
#9  0x00131894 in __db_c_get ()
#10 0x000946d0 in hdb_dn2id (op=0x222d108, txn=0x2d47888, in=0xfc8015a4, 
    ei=0xfc801598) at dn2id.c:747
#11 0x000915c4 in hdb_cache_find_ndn (op=0x222d108, txn=0x2d47888, 
    ndn=0x160b0d4, res=0xfc80165c, locker=2147483687) at cache.c:362
#12 0x00093f78 in hdb_dn2entry (op=0x222d108, tid=0x2d47888, dn=0x160b0d4, 
    e=0xfc8016e0, matched=1, locker=2147483687, lock=0xfc801770)
    at dn2entry.c:44
#13 0x0008f6fc in hdb_add (op=0x222d108, rs=0xfc801ad8) at add.c:141
#14 0x0003aa14 in do_add (op=0x222d108, rs=0xfc801ad8) at add.c:303
#15 0x00035258 in connection_operation (ctx=0xfc801b80, arg_v=0x222d108)
    at connection.c:953
#16 0x000a8748 in ldap_int_thread_pool_wrapper (xpool=0x225a88) at tpool.c:463

Thread 19 (Thread 6 (LWP 10)):
#0  0xfef9f114 in ___lwp_cond_wait () from /usr/lib/libc.so.1
#1  0xfef96660 in _lwp_cond_wait () from /usr/lib/libc.so.1
#2  0x00114d30 in __db_pthread_mutex_lock ()
#3  0x000f2b14 in __lock_get_internal ()
#4  0x000f173c in __lock_vec ()
#5  0x00139a80 in __db_lget ()
#6  0x0011a02c in __bam_search ()
#7  0x0015b4b0 in __bam_c_search ()
#8  0x00158300 in __bam_c_get ()
#9  0x00131894 in __db_c_get ()
#10 0x00129ad0 in __db_get ()
#11 0x00096f34 in hdb_id2entry (be=0x296008, tid=0x0, id=15, e=0xfcf4154c)
    at id2entry.c:102
#12 0x00091a90 in hdb_cache_find_id (op=0x4f5d08, tid=0x0, id=15, 
    eip=0xfcf41638, islocked=1, locker=12, lock=0xfcf41650) at cache.c:579
#13 0x0007d130 in hdb_do_search (op=0x4f5d08, rs=0xfd001ad8, sop=0x4f5d08, 
    ps_e=0x0, ps_type=0) at search.c:912
#14 0x0007c128 in hdb_search (op=0x4f5d08, rs=0xfd001ad8) at search.c:357
#15 0x0003737c in do_search (op=0x4f5d08, rs=0xfd001ad8) at search.c:395
#16 0x00035384 in connection_operation (ctx=0xfd001b80, arg_v=0x4f5d08)
    at connection.c:978
#17 0x000a8748 in ldap_int_thread_pool_wrapper (xpool=0x225a88) at tpool.c:463

Thread 18 (Thread 5        ):
#0  0xfeecb148 in _mutex_adaptive_lock () from /usr/lib/libthread.so.1
#1  0xfeecbc00 in pthread_mutex_lock () from /usr/lib/libthread.so.1
#2  0x000a9050 in ldap_pvt_thread_mutex_lock (mutex=0x0) at thr_posix.c:288
#3  0x000918ac in hdb_cache_find_parent (op=0x2a5008, txn=0x0, id=2753032, 
    res=0xfd741638) at cache.c:487
#4  0x000919ec in hdb_cache_find_id (op=0x2a5008, tid=0x0, id=15, 
    eip=0xfd741638, islocked=0, locker=13, lock=0xfd741650) at cache.c:564
#5  0x0007d130 in hdb_do_search (op=0x2a5008, rs=0xfd801ad8, sop=0x2a5008, 
    ps_e=0x0, ps_type=0) at search.c:912
#6  0x0007c128 in hdb_search (op=0x2a5008, rs=0xfd801ad8) at search.c:357
#7  0x0003737c in do_search (op=0x2a5008, rs=0xfd801ad8) at search.c:395
#8  0x00035384 in connection_operation (ctx=0xfd801b80, arg_v=0x2a5008)
    at connection.c:978
#9  0x000a8748 in ldap_int_thread_pool_wrapper (xpool=0x225a88) at tpool.c:463

Thread 17 (Thread 4 (LWP 8)):
#0  0xfef9d2ec in _poll () from /usr/lib/libc.so.1
#1  0xfef4d278 in select () from /usr/lib/libc.so.1
#2  0xfeedb13c in select () from /usr/lib/libthread.so.1

Thread 16 (Thread 3        ):
#0  0xfeecddbc in _reap_wait () from /usr/lib/libthread.so.1
#1  0xfeecdb1c in _reaper () from /usr/lib/libthread.so.1

Thread 15 (Thread 2 (LWP 2)):
#0  0xfef9eab0 in _signotifywait () from /usr/lib/libc.so.1
#1  0xfeeced5c in _dynamiclwps () from /usr/lib/libthread.so.1

Thread 14 (Thread 1        ):
#0  0xfeecde14 in _reap_wait_cancel () from /usr/lib/libthread.so.1
#1  0xfeed00a8 in _thrp_join () from /usr/lib/libthread.so.1
#2  0x000a8f78 in ldap_pvt_thread_join (thread=4277071376, thread_return=0x4)
    at thr_posix.c:158
#3  0x00033580 in slapd_daemon () at daemon.c:2000
#4  0x00029668 in main (argc=8, argv=0xffbef544) at main.c:579

Thread 13 (LWP    2        ):
#0  0xfef9eab0 in _signotifywait () from /usr/lib/libc.so.1
#1  0xfeeced5c in _dynamiclwps () from /usr/lib/libthread.so.1

Thread 12 (LWP    3        ):
#0  0xfef9f114 in ___lwp_cond_wait () from /usr/lib/libc.so.1
#1  0xfef96660 in _lwp_cond_wait () from /usr/lib/libc.so.1
#2  0x00114d30 in __db_pthread_mutex_lock ()
#3  0x000f2b14 in __lock_get_internal ()
#4  0x000f2060 in __lock_get ()
#5  0x00139b14 in __db_lget ()
#6  0x00119878 in __bam_search ()
#7  0x0015b4b0 in __bam_c_search ()
#8  0x00157f8c in __bam_c_get ()
#9  0x00131894 in __db_c_get ()
#10 0x000946d0 in hdb_dn2id (op=0x222d708, txn=0x2d47c88, in=0xfa0015a4, 
    ei=0xfa001598) at dn2id.c:747
#11 0x000915c4 in hdb_cache_find_ndn (op=0x222d708, txn=0x2d47c88, 
    ndn=0x160bd14, res=0xfa00165c, locker=2147483685) at cache.c:362
#12 0x00093f78 in hdb_dn2entry (op=0x222d708, tid=0x2d47c88, dn=0x160bd14, 
    e=0xfa0016e0, matched=1, locker=2147483685, lock=0xfa001770)
    at dn2entry.c:44
#13 0x0008f6fc in hdb_add (op=0x222d708, rs=0xfa001ad8) at add.c:141
#14 0x0003aa14 in do_add (op=0x222d708, rs=0xfa001ad8) at add.c:303
#15 0x00035258 in connection_operation (ctx=0xfa001b80, arg_v=0x222d708)
    at connection.c:953
#16 0x000a8748 in ldap_int_thread_pool_wrapper (xpool=0x225a88) at tpool.c:463

Thread 11 (LWP    4        ):
#0  0xfef9f114 in ___lwp_cond_wait () from /usr/lib/libc.so.1
#1  0xfef96660 in _lwp_cond_wait () from /usr/lib/libc.so.1
#2  0x00114d30 in __db_pthread_mutex_lock ()
#3  0x000f2b14 in __lock_get_internal ()
#4  0x000f2060 in __lock_get ()
#5  0x00139b14 in __db_lget ()
#6  0x00119878 in __bam_search ()
#7  0x0015b4b0 in __bam_c_search ()
#8  0x00157f8c in __bam_c_get ()
#9  0x00131894 in __db_c_get ()
#10 0x000946d0 in hdb_dn2id (op=0x4f5008, txn=0x2d47d08, in=0xfb8016b4, 
    ei=0xfb8016a8) at dn2id.c:747
#11 0x000915c4 in hdb_cache_find_ndn (op=0x4f5008, txn=0x2d47d08, 
    ndn=0xfb801998, res=0xfb80177c, locker=2147483684) at cache.c:362
#12 0x0007a628 in hdb_modrdn (op=0x4f5008, rs=0xfb801ad8) at modrdn.c:678
#13 0x00046f3c in do_modrdn (op=0x4f5008, rs=0xfb801ad8) at modrdn.c:366
#14 0x000352d0 in connection_operation (ctx=0xfb801b80, arg_v=0x4f5008)
    at connection.c:963
#15 0x000a8748 in ldap_int_thread_pool_wrapper (xpool=0x225a88) at tpool.c:463

Thread 10 (LWP    5        ):
#0  0xfef9f114 in ___lwp_cond_wait () from /usr/lib/libc.so.1
#1  0xfef96660 in _lwp_cond_wait () from /usr/lib/libc.so.1
#2  0x00114d30 in __db_pthread_mutex_lock ()
#3  0x000f2b14 in __lock_get_internal ()
#4  0x000f2060 in __lock_get ()
#5  0x00139b14 in __db_lget ()
#6  0x00119878 in __bam_search ()
#7  0x0015b4b0 in __bam_c_search ()
#8  0x00157f8c in __bam_c_get ()
#9  0x00131894 in __db_c_get ()
#10 0x000946d0 in hdb_dn2id (op=0x222d108, txn=0x2d47888, in=0xfc8015a4, 
    ei=0xfc801598) at dn2id.c:747
#11 0x000915c4 in hdb_cache_find_ndn (op=0x222d108, txn=0x2d47888, 
    ndn=0x160b0d4, res=0xfc80165c, locker=2147483687) at cache.c:362
#12 0x00093f78 in hdb_dn2entry (op=0x222d108, tid=0x2d47888, dn=0x160b0d4, 
    e=0xfc8016e0, matched=1, locker=2147483687, lock=0xfc801770)
    at dn2entry.c:44
#13 0x0008f6fc in hdb_add (op=0x222d108, rs=0xfc801ad8) at add.c:141
#14 0x0003aa14 in do_add (op=0x222d108, rs=0xfc801ad8) at add.c:303
#15 0x00035258 in connection_operation (ctx=0xfc801b80, arg_v=0x222d108)
    at connection.c:953
#16 0x000a8748 in ldap_int_thread_pool_wrapper (xpool=0x225a88) at tpool.c:463

Thread 9 (LWP    6        ):
#0  0xfef9f114 in ___lwp_cond_wait () from /usr/lib/libc.so.1
#1  0xfef96660 in _lwp_cond_wait () from /usr/lib/libc.so.1
#2  0x00114d30 in __db_pthread_mutex_lock ()
#3  0x000f2b14 in __lock_get_internal ()
#4  0x000f2060 in __lock_get ()
#5  0x00139b14 in __db_lget ()
#6  0x00119878 in __bam_search ()
#7  0x0015b4b0 in __bam_c_search ()
#8  0x00157f8c in __bam_c_get ()
#9  0x00131894 in __db_c_get ()
#10 0x000946d0 in hdb_dn2id (op=0x4f5e08, txn=0x0, in=0xf90016f4, 
    ei=0xf90016e8) at dn2id.c:747
#11 0x000915c4 in hdb_cache_find_ndn (op=0x4f5e08, txn=0x0, ndn=0x4f5e30, 
    res=0xf90017ac, locker=35) at cache.c:362
#12 0x00093f78 in hdb_dn2entry (op=0x4f5e08, tid=0x0, dn=0x4f5e30, 
    e=0xf9001828, matched=1, locker=35, lock=0xf9001830) at dn2entry.c:44
#13 0x0007b5f8 in hdb_referrals (op=0x4f5e08, rs=0xf9001ad8) at referral.c:46
#14 0x0003f3c8 in backend_check_referrals (op=0x4f5e08, rs=0xf9001ad8)
    at backend.c:1111
#15 0x0003a888 in do_add (op=0x4f5e08, rs=0xf9001ad8) at add.c:229
#16 0x00035258 in connection_operation (ctx=0xf9001b80, arg_v=0x4f5e08)
    at connection.c:953
#17 0x000a8748 in ldap_int_thread_pool_wrapper (xpool=0x225a88) at tpool.c:463

Thread 8 (LWP    7        ):
#0  0xfef9f114 in ___lwp_cond_wait () from /usr/lib/libc.so.1
#1  0xfef96660 in _lwp_cond_wait () from /usr/lib/libc.so.1
#2  0x00114d30 in __db_pthread_mutex_lock ()
#3  0x000f2b14 in __lock_get_internal ()
#4  0x000f2060 in __lock_get ()
#5  0x00139b14 in __db_lget ()
#6  0x00119878 in __bam_search ()
#7  0x0015b4b0 in __bam_c_search ()
#8  0x00157f8c in __bam_c_get ()
#9  0x00131894 in __db_c_get ()
#10 0x000946d0 in hdb_dn2id (op=0x222db08, txn=0x2d47c08, in=0xfa8016b4, 
    ei=0xfa8016a8) at dn2id.c:747
#11 0x000915c4 in hdb_cache_find_ndn (op=0x222db08, txn=0x2d47c08, 
    ndn=0xfa801998, res=0xfa80177c, locker=2147483686) at cache.c:362
#12 0x0007a628 in hdb_modrdn (op=0x222db08, rs=0xfa801ad8) at modrdn.c:678
#13 0x00046f3c in do_modrdn (op=0x222db08, rs=0xfa801ad8) at modrdn.c:366
#14 0x000352d0 in connection_operation (ctx=0xfa801b80, arg_v=0x222db08)
    at connection.c:963
#15 0x000a8748 in ldap_int_thread_pool_wrapper (xpool=0x225a88) at tpool.c:463

Thread 7 (LWP    8        ):
#0  0xfef9d2ec in _poll () from /usr/lib/libc.so.1
#1  0xfef4d278 in select () from /usr/lib/libc.so.1
#2  0xfeedb13c in select () from /usr/lib/libthread.so.1

Thread 6 (LWP    9        ):
#0  0xfef9f160 in _lwp_sema_wait () from /usr/lib/libc.so.1
#1  0xfeec9acc in _park () from /usr/lib/libthread.so.1
#2  0xfeec9794 in _swtch () from /usr/lib/libthread.so.1
#3  0xfeec8274 in cond_wait () from /usr/lib/libthread.so.1
#4  0xfeec8118 in pthread_cond_wait () from /usr/lib/libthread.so.1
#5  0x000a9010 in ldap_pvt_thread_cond_wait (cond=0x2a14b0, mutex=0x2a1488)
    at thr_posix.c:254
#6  0x000a7bfc in ldap_pvt_thread_rdwr_wlock (rwlock=0x2a1488) at rdwr.c:245
#7  0x000911c8 in bdb_entryinfo_add_internal (bdb=0x22fc08, ei=0xf9801618, 
    res=0xf980160c, locker=2147483682) at cache.c:210
#8  0x00091d58 in hdb_cache_add (bdb=0x22fc08, eip=0x2a0308, e=0x160a408, 
    nrdn=0xf98016e8, locker=2147483682) at cache.c:675
#9  0x000901f0 in hdb_add (op=0x4f4608, rs=0xf9801ad8) at add.c:491
#10 0x0003aa14 in do_add (op=0x4f4608, rs=0xf9801ad8) at add.c:303
#11 0x00035258 in connection_operation (ctx=0xf9801b80, arg_v=0x4f4608)
    at connection.c:953
#12 0x000a8748 in ldap_int_thread_pool_wrapper (xpool=0x225a88) at tpool.c:463

Thread 5 (LWP    10        ):
#0  0xfef9f114 in ___lwp_cond_wait () from /usr/lib/libc.so.1
#1  0xfef96660 in _lwp_cond_wait () from /usr/lib/libc.so.1
#2  0x00114d30 in __db_pthread_mutex_lock ()
#3  0x000f2b14 in __lock_get_internal ()
#4  0x000f173c in __lock_vec ()
#5  0x00139a80 in __db_lget ()
#6  0x0011a02c in __bam_search ()
#7  0x0015b4b0 in __bam_c_search ()
#8  0x00158300 in __bam_c_get ()
#9  0x00131894 in __db_c_get ()
#10 0x00129ad0 in __db_get ()
#11 0x00096f34 in hdb_id2entry (be=0x296008, tid=0x0, id=15, e=0xfcf4154c)
    at id2entry.c:102
#12 0x00091a90 in hdb_cache_find_id (op=0x4f5d08, tid=0x0, id=15, 
    eip=0xfcf41638, islocked=1, locker=12, lock=0xfcf41650) at cache.c:579
#13 0x0007d130 in hdb_do_search (op=0x4f5d08, rs=0xfd001ad8, sop=0x4f5d08, 
    ps_e=0x0, ps_type=0) at search.c:912
#14 0x0007c128 in hdb_search (op=0x4f5d08, rs=0xfd001ad8) at search.c:357
#15 0x0003737c in do_search (op=0x4f5d08, rs=0xfd001ad8) at search.c:395
#16 0x00035384 in connection_operation (ctx=0xfd001b80, arg_v=0x4f5d08)
    at connection.c:978
#17 0x000a8748 in ldap_int_thread_pool_wrapper (xpool=0x225a88) at tpool.c:463

Thread 4 (LWP    11        ):
#0  0xfeed9770 in private___lwp_cond_wait () from /usr/lib/libthread.so.1
#1  0xfeec90b4 in _age () from /usr/lib/libthread.so.1

Thread 3 (LWP    12        ):
#0  0xfef9c654 in door_restart () from /usr/lib/libc.so.1

Thread 2 (Thread 15        ):
#0  0xfef9f160 in _lwp_sema_wait () from /usr/lib/libc.so.1
#1  0xfeec9acc in _park () from /usr/lib/libthread.so.1
#2  0xfeec9794 in _swtch () from /usr/lib/libthread.so.1
#3  0xfeec8274 in cond_wait () from /usr/lib/libthread.so.1
#4  0xfeec8118 in pthread_cond_wait () from /usr/lib/libthread.so.1
#5  0x000a9010 in ldap_pvt_thread_cond_wait (cond=0x2a14a0, mutex=0x2a1488)
    at thr_posix.c:254
#6  0x000a7760 in ldap_pvt_thread_rdwr_rlock (rwlock=0x2a1488) at rdwr.c:143
#7  0x00091960 in hdb_cache_find_id (op=0x222d608, tid=0x0, id=1, 
    eip=0xf8741638, islocked=0, locker=36, lock=0xf8741650) at cache.c:531
#8  0x0007d130 in hdb_do_search (op=0x222d608, rs=0xf8801ad8, sop=0x222d608, 
    ps_e=0x0, ps_type=0) at search.c:912
#9  0x0007c128 in hdb_search (op=0x222d608, rs=0xf8801ad8) at search.c:357
#10 0x0003737c in do_search (op=0x222d608, rs=0xf8801ad8) at search.c:395
#11 0x00035384 in connection_operation (ctx=0xf8801b80, arg_v=0x222d608)
    at connection.c:978
#12 0x000a8748 in ldap_int_thread_pool_wrapper (xpool=0x225a88) at tpool.c:463

Thread 1 (LWP    1        ):
#0  0xfef9f160 in _lwp_sema_wait () from /usr/lib/libc.so.1
#1  0xfeec9acc in _park () from /usr/lib/libthread.so.1
#2  0xfeec9794 in _swtch () from /usr/lib/libthread.so.1
#3  0xfeec8274 in cond_wait () from /usr/lib/libthread.so.1
#4  0xfeec8118 in pthread_cond_wait () from /usr/lib/libthread.so.1
#5  0x000a9010 in ldap_pvt_thread_cond_wait (cond=0x2a14a0, mutex=0x2a1488)
    at thr_posix.c:254
#6  0x000a7760 in ldap_pvt_thread_rdwr_rlock (rwlock=0x2a1488) at rdwr.c:143
#7  0x00091960 in hdb_cache_find_id (op=0x222d608, tid=0x0, id=1, 
    eip=0xf8741638, islocked=0, locker=36, lock=0xf8741650) at cache.c:531
#8  0x0007d130 in hdb_do_search (op=0x222d608, rs=0xf8801ad8, sop=0x222d608, 
    ps_e=0x0, ps_type=0) at search.c:912
#9  0x0007c128 in hdb_search (op=0x222d608, rs=0xf8801ad8) at search.c:357
#10 0x0003737c in do_search (op=0x222d608, rs=0xf8801ad8) at search.c:395
#11 0x00035384 in connection_operation (ctx=0xf8801b80, arg_v=0x222d608)
    at connection.c:978
#12 0x000a8748 in ldap_int_thread_pool_wrapper (xpool=0x225a88) at tpool.c:463
#0  0xfef9f160 in _lwp_sema_wait () from /usr/lib/libc.so.1

test008 output:

./scripts/test008-concurrency . hdb yes yes
running defines.sh
Datadir is ./data
Cleaning up in ./test-db...
Running slapadd to build slapd database...
Waiting 5 seconds for slapadd to build slapd database...
Starting slapd on TCP/IP port 9009...
Using ldapsearch to check that slapd is running...
Waiting 5 seconds for slapd to start...
Using tester for concurrent server access...
PID=10203 - Search(500): base="o=University of Michigan,c=US", filter="cn=Alumni
Assoc Staff".
PID=10187 - Search(500): base="o=University of Michigan,c=US",
filter="cn=Barbara Jensen".
PID=10201 - Modrdn(50): entry="cn=James A Jones 2,ou=Information Technology
Division,ou=People,o=University of Michigan,c=US".
PID=10189 - Modrdn(50): entry="cn=Dorothy Stevens,ou=Alumni
Association,ou=People,o=University of Michigan,c=US".
PID=10199 - Search(500): base="o=University of Michigan,c=US", filter="cn=Bjorn
Jensen".
PID=10196 - Read(1000): entry="ou=Groups, o=University of Michigan, c=US".
PID=10204 - Read(1000): entry="cn=James A Jones 1, ou=Alumni Association,
ou=People, o=University of Michigan, c=US".
PID=10188 - Read(1000): entry="cn=Barbara Jensen, ou=Information Technology
Division, ou=People, o=University of Michigan, c=US".
PID=10192 - Read(1000): entry="cn=ITD Staff,ou=Groups,o=University of
Michigan,c=US".
PID=10200 - Read(1000): entry="ou=Alumni Association, ou=People, o=University of
Michigan, c=US".
PID=10194 - Add/Delete(50): entry="cn=James A Jones 3,ou=Alumni
Association,ou=People,o=University of Michigan,c=US".
PID=10202 - Add/Delete(50): entry="cn=James A Jones 5,o=University of
Michigan,c=US".
PID=10191 - Search(500): base="o=University of Michigan,c=US", filter="cn=Bjorn
Jensen".
PID=10198 - Add/Delete(50): entry="cn=James A Jones 4,ou=People,o=University of
Michigan,c=US".
PID=10197 - Modrdn(50): entry="cn=Ursula Hampster,ou=Alumni
Association,ou=People,o=University of Michigan,c=US".
PID=10190 - Add/Delete(50): entry="cn=James A Jones 2,ou=Alumni
Association,ou=People,o=University of Michigan,c=US".
PID=10195 - Search(500): base="o=University of Michigan,c=US", filter="cn=James
A Jones 1".
PID=10193 - Modrdn(50): entry="cn=John Doe,ou=Information Technology
Division,ou=People,o=University of Michigan,c=US".