I upgraded one of our consumers to 2.4.15 recently, from RE24 as of 20090113. Its configuration stayed the same, save for bumping the BDB cache size from 256MB to 2GB.
After a few hours of uptime, slapd suddenly begins consuming enormous amounts of CPU (a three- to four-fold increase over less than a few minutes, and is sustained until slapd is restarted).
A backtrace (below) shows many threads waiting on a mutex in bdb_cache_*().
This is with BDB 4.7 (with all patches applied) on Debian lenny. 'db_stat -c' output is below (and looks sane), in case that's useful. Thinking thread contention, I bumped the worker thread count (slapd.conf threads directive) down from 32 to 8, which has made no difference.
john
DB_CONFIG: set_lg_max 10485760 set_lg_bsize 2097152 set_cachesize 2 0 0
290 Last allocated locker ID 0x7fffffff Current maximum unused locker ID 9 Number of lock modes 1000 Maximum number of locks possible 1000 Maximum number of lockers possible 1000 Maximum number of lock objects possible 20 Number of lock object partitions 39 Number of current locks 574 Maximum number of locks at any one time 16 Maximum number of locks in any one bucket 0 Maximum number of locks stolen by for an empty partition 0 Maximum number of locks stolen for any one partition 275 Number of current lockers 277 Maximum number of lockers at any one time 39 Number of current lock objects 321 Maximum number of lock objects at any one time 5 Maximum number of lock objects in any one bucket 0 Maximum number of objects stolen by for an empty partition 0 Maximum number of objects stolen for any one partition 3854M Total number of locks requested (3854398087) 3854M Total number of locks released (3854395960) 0 Total number of locks upgraded 29 Total number of locks downgraded 11921 Lock requests not available due to conflicts, for which we waited 2088 Lock requests not available due to conflicts, for which we did not wait 0 Number of deadlocks 0 Lock timeout value 0 Number of locks that have timed out 0 Transaction timeout value 0 Number of transactions that have timed out 736KB The size of the lock region 827752 The number of partition locks that required waiting (0%) 117449 The maximum number of times any partition lock was waited for (0%) 0 The number of object queue operations that required waiting (0%) 535994 The number of locker allocations that required waiting (0%) 268 The number of region locks that required waiting (0%) 5 Maximum hash bucket length
[Switching to Thread 0x7f1ac33876e0 (LWP 2258)] 0x00007f1ac14d0715 in pthread_join () from /lib/libpthread.so.0
Thread 14 (Thread 0x46e2c950 (LWP 2483)): #0 0x00007f1ac14d3d29 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0 No symbol table info available. #1 0x00007f1ac2f4019d in ldap_int_thread_pool_wrapper (xpool=<value optimized out>) at /tmp/buildd/openldap-2.4.15/libraries/libldap_r/tpool.c:654 pool = (struct ldap_int_thread_pool_s *) 0x16a1810 task = (ldap_int_thread_task_t *) 0x0 work_list = (ldap_int_tpool_plist_t *) 0x1382501 ctx = {ltu_id = 1189267792, ltu_key = {{ltk_key = 0x431480, ltk_data = 0x22e9bf0, ltk_free = 0x431550 <conn_counter_destroy>}, {ltk_key = 0x485650, ltk_data = 0x22e9d00, ltk_free = 0x485150 <slap_sl_mem_destroy>}, {ltk_key = 0x17b05b0, ltk_data = 0x23e9d50, ltk_free = 0x7f1abe04f900 <bdb_reader_free>}, {ltk_key = 0x445410, ltk_data = 0x7f19f010d170, ltk_free = 0x4451e0 <slap_op_q_destroy>}, {ltk_key = 0x7f1abe0425a0, ltk_data = 0x7f1a0fffc010, ltk_free = 0x7f1abe042660 <search_stack_free>}, {ltk_key = 0x17acca0, ltk_data = 0x7f1a14549930, ltk_free = 0x7f1abe04f900 <bdb_reader_free>}, {ltk_key = 0x0, ltk_data = 0x7f19d16b7a40, ltk_free = 0}, {ltk_key = 0x0, ltk_data = 0x0, ltk_free = 0} <repeats 25 times>}} kctx = <value optimized out> keyslot = 641 hash = <value optimized out> __PRETTY_FUNCTION__ = "ldap_int_thread_pool_wrapper" #2 0x00007f1ac14cffc7 in start_thread () from /lib/libpthread.so.0 No symbol table info available. #3 0x00007f1ac12455ad in clone () from /lib/libc.so.6 No symbol table info available. #4 0x0000000000000000 in ?? () No symbol table info available.
Thread 13 (Thread 0x40ae5950 (LWP 2482)): #0 0x00007f1ac14d6384 in __lll_lock_wait () from /lib/libpthread.so.0 No symbol table info available. #1 0x00007f1ac14d1bf0 in _L_lock_102 () from /lib/libpthread.so.0 No symbol table info available. #2 0x00007f1ac14d14fe in pthread_mutex_lock () from /lib/libpthread.so.0 No symbol table info available. #3 0x00007f1abe04fe47 in bdb_cache_lru_link (bdb=0x1734cc0, ei=0x80) at /tmp/buildd/openldap-2.4.15/servers/slapd/back-bdb/cache.c:127 No locals. #4 0x00007f1abe051472 in bdb_cache_find_id (op=0x7f1a14e4b6f0, tid=0x7f1a14000c40, id=78904, eip=0x40ae3b78, flag=0, lock=0x40ae3b00) at /tmp/buildd/openldap-2.4.15/servers/slapd/back-bdb/cache.c:935 bdb = (struct bdb_info *) 0x1734cc0 ep = (Entry *) 0x0 rc = 0 load = 1 ei = {bei_parent = 0x0, bei_id = 78904, bei_lockpad = 0, bei_state = 0, bei_finders = 0, bei_nrdn = {bv_len = 0, bv_val = 0x0}, bei_e = 0x0, bei_kids = 0x0, bei_kids_mutex = {__data = {__lock = 0, __count = 0, __owner = 0, __nusers = 0, __kind = 0, __spins = 0, __list = {__prev = 0x0, __next = 0x0}}, __size = '\0' <repeats 39 times>, __align = 0}, bei_lrunext = 0x0, bei_lruprev = 0x0} #5 0x00007f1abe04454c in bdb_search (op=0x7f1a14e4b6f0, rs=0x40ae4ca0) at /tmp/buildd/openldap-2.4.15/servers/slapd/back-bdb/search.c:705 scopeok = 0 bdb = (struct bdb_info *) 0x1734cc0 id = 78904 cursor = 1 lastid = 18446744073709551615 candidates = {1, 78904, 1044229, 91866, 93845, 108173, 162675, 167727, 172863, 209800, 229753, 246181, 263946, 271195, 271196, 320541, 328227, 343990, 352163, 444334, 444843, 446225, 473893, 489325, 495368, 502330, 510414, 521254, 521513, 521520, 522264, 523770, 558754, 571398, 622382, 724280, 729217, 757913, 837196, 841698, 847960, 903620, 915112, 978491, 366754, 374029, 382659, 438739, 443564, 444334, 444474, 444540, 444843, 445908, 446225, 446226, 446227, 461100, 465386, 470392, 470542, 473893, 473895, 473906, 473910, 473929, 473930, 473931, 473932, 473933, 473934, 473935, 473936, 480973, 480974, 489325, 492139, 492190, 495368, 495374, 502330, 502515, 505997, 510414, 510656, 514769, 515999, 516075, 516122, 516134, 516135, 518932, 518933, 518934, 518935, 518936, 518937, 518938, 518939, 518940, 518941, 518942, 518943, 518944, 518945, 518946, 518947, 518948, 518949, 518950, 518951, 518952, 518953, 518954, 518955, 518956, 518957, 518958, 518959, 518960, 519961, 521254, 521285, 521297, 521298, 521299, 521513, 521520, 521740, 522264, 523770, 523781, 523794, 524910, 525962, 529220, 536966, 549332, 549333, 556773, 557516, 558754, 571398, 575227, 575352, 575415, 580304, 581325, 590884, 590885, 590886, 590887, 590888, 590889, 590890, 591106, 591295, 591736, 591737, 591739, 591747, 594317, 595470, 595637, 595638, 595639, 598848, 600376, 601947, 602070, 606294, 606306, 606737, 608281, 609374, 616992, 618028, 619025, 621070, 622382, 628336, 636086, 636373, 640327, 640328, 640329, 640330, 640331, 640332, 640333, 640334, 640335, 640430, 640461, 640679, 641273, 708820, 711967, 717099, 724275...} scopes = {0 <repeats 64759 times>, 139752885891591, 139749645877248, 144, 0, 139749242529248, 139749645877696, 139752885906679, 0, 208, 160, 4095, 0, 0, 139750135356864, 47244640256, 0, 160, 139749981421600, 160, 1085154048, 10, 2258, 139752885901944, 1085153664, 1085158416, 160, 139752886392815, 141828410064896, 18374686479671623680, 3760356350, 1085153712, 0, 0, 141828410064896, 18374686479671623680, 324407806, 1085153760, 0, 0, 141828410064896, 18374686479671623680, 814298110, 1085153808, 0, 139752886265001, 32768, 0, 16777216, 1085153856, 0, 139752886392545, 6912, 18446462598732840960, 616006978, 1085153904, 0, 0, 6912, 18446462598732840960, 615941442, 1085153952, 0, 0, 6144, 18446462598732840960, 1359286444, 1085154000, 0, 139752886265001, 2048, 18446462598732840960, 16777343, 0, 12, 139752886392545, 562962838323220, 9699272344856, 4294967296, 65556, 0, 1688935776387072, 18446744073709551615, 18558553690337, 563035852767296, 9699272344856, 12842975242, 141828410114068, 18374686479671623680, 1688936573907966, 18446744073709551615, 18558553690337, 563035852767296, 9699272344856, 17137942538, 141828410114068, 18374686479671623680, 1688936084017662, 18446744073709551615, 18558553690337, 563035852767296, 9699272344856, 21432909834, 141828410114068, 18374686479671623680, 1688939519966206, 18446744073709551615, 18558553690337, 0 <repeats 31 times>, 4541024, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1125281431552, 0, 23710144, 0, 0, 23710256, 0, 0, 0, 0, 5119, 0 <repeats 115 times>, 139752493888592, 139752911957127, 0, 2097152, 1085156256, 1085156016, 139752493887800, 0, 24826688, 24828224, 1085156176, 139752911957899, 1085156256, 244, 18954605505282048, 18954605505282126, 0, 0, 0, 139752912047088, 3324304687104, 139752823546552, 139752823546640, 12, 9948396515380690944, 139752493887800, 24826688, 1085156016, 1085156416, 1, 139752493887800, 139752911965882, 0, 0, 139752493894574, 139752911957127, 1085156256, 2097152, 1085156528, 1085156288, 139752493887800...} e = (Entry *) 0x187f4a8 base = {e_id = 1, e_name = {bv_len = 1, bv_val = 0x7f19d430a870 "\002"}, e_nname = {bv_len = 10, bv_val = 0x7f19d864c4c0 "o=example"}, e_attrs = 0x7f1ac2d265cc, e_ocflags = 1085159872, e_bv = {bv_len = 139748910868592, bv_val = 0x4 <Address 0x4 out of bounds>}, e_private = 0x1d57050} e_root = (Entry *) 0x187f3b8 matched = (Entry *) 0x0 ei = (EntryInfo *) 0x7f19c85a3510 realbase = {bv_len = 10, bv_val = 0x7f19d864c4c0 "o=example"} mask = <value optimized out> manageDSAit = 0 tentries = 1 nentries = 1 idflag = 0 lock = {off = 136248, ndx = 603, gen = 19531981, mode = DB_LOCK_WRITE} opinfo = (struct bdb_op_info *) 0x0 ltid = (DB_TXN *) 0x7f1a14000c40 oex = <value optimized out> #6 0x0000000000434521 in fe_op_search (op=0x7f1a14e4b6f0, rs=0x40ae4ca0) at /tmp/buildd/openldap-2.4.15/servers/slapd/search.c:366 bd = (BackendDB *) 0x72f7a0 #7 0x0000000000434d1c in do_search (op=0x7f1a14e4b6f0, rs=0x40ae4ca0) at /tmp/buildd/openldap-2.4.15/servers/slapd/search.c:217 base = {bv_len = 10, bv_val = 0x7f19c87cd058 "o=example"} siz = 2 i = 1085165056 #8 0x0000000000432376 in connection_operation (ctx=0x40ae4e00, arg_v=<value optimized out>) at /tmp/buildd/openldap-2.4.15/servers/slapd/connection.c:1097 rc = <value optimized out> op = (Operation *) 0x7f1a14e4b6f0 rs = {sr_type = REP_RESULT, sr_tag = 0, sr_msgid = 0, sr_err = 0, sr_matched = 0x0, sr_text = 0x0, sr_ref = 0x0, sr_ctrls = 0x0, sr_un = {sru_sasl = {r_sasldata = 0x0}, sru_extended = {r_rspoid = 0x0, r_rspdata = 0x0}, sru_search = {r_entry = 0x0, r_attr_flags = 0, r_operational_attrs = 0x0, r_attrs = 0x0, r_nentries = 0, r_v2ref = 0x0}}, sr_flags = 0} tag = 99 opidx = SLAP_OP_SEARCH conn = (Connection *) 0x7f1abd815f90 memctx = (void *) 0x7f1a1c0508e0 memctx_null = (void *) 0x0 __PRETTY_FUNCTION__ = "connection_operation" #9 0x0000000000432e6d in connection_read_thread (ctx=0x40ae4e00, argv=<value optimized out>) at /tmp/buildd/openldap-2.4.15/servers/slapd/connection.c:1223 s = 2170 #10 0x00007f1ac2f4014a in ldap_int_thread_pool_wrapper (xpool=<value optimized out>) at /tmp/buildd/openldap-2.4.15/libraries/libldap_r/tpool.c:663 pool = (struct ldap_int_thread_pool_s *) 0x16a1810 task = (ldap_int_thread_task_t *) 0x7f19ffeb9c30 work_list = <value optimized out> ctx = {ltu_id = 1085167952, ltu_key = {{ltk_key = 0x431480, ltk_data = 0x7f1a1c04fa40, ltk_free = 0x431550 <conn_counter_destroy>}, {ltk_key = 0x485650, ltk_data = 0x7f1a1c0508e0, ltk_free = 0x485150 <slap_sl_mem_destroy>}, {ltk_key = 0x17b05b0, ltk_data = 0x7f1a14000c40, ltk_free = 0x7f1abe04f900 <bdb_reader_free>}, {ltk_key = 0x7f1abe0425a0, ltk_data = 0x7f1a12fff010, ltk_free = 0x7f1abe042660 <search_stack_free>}, {ltk_key = 0x445410, ltk_data = 0x7f19f17fb500, ltk_free = 0x4451e0 <slap_op_q_destroy>}, {ltk_key = 0x17acca0, ltk_data = 0x7f1a1c944590, ltk_free = 0x7f1abe04f900 <bdb_reader_free>}, {ltk_key = 0x0, ltk_data = 0x7f19d49ff2a0, ltk_free = 0}, {ltk_key = 0x0, ltk_data = 0x0, ltk_free = 0} <repeats 25 times>}} kctx = <value optimized out> keyslot = 599 hash = <value optimized out> __PRETTY_FUNCTION__ = "ldap_int_thread_pool_wrapper" #11 0x00007f1ac14cffc7 in start_thread () from /lib/libpthread.so.0 No symbol table info available. #12 0x00007f1ac12455ad in clone () from /lib/libc.so.6 No symbol table info available. #13 0x0000000000000000 in ?? () No symbol table info available.
Thread 12 (Thread 0x4662b950 (LWP 2481)): #0 0x00007f1ac14d3d29 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0 No symbol table info available. #1 0x00007f1ac2f4019d in ldap_int_thread_pool_wrapper (xpool=<value optimized out>) at /tmp/buildd/openldap-2.4.15/libraries/libldap_r/tpool.c:654 pool = (struct ldap_int_thread_pool_s *) 0x16a1810 task = (ldap_int_thread_task_t *) 0x0 work_list = (ldap_int_tpool_plist_t *) 0x13824ff ctx = {ltu_id = 1180875088, ltu_key = {{ltk_key = 0x431480, ltk_data = 0x20dc640, ltk_free = 0x431550 <conn_counter_destroy>}, {ltk_key = 0x485650, ltk_data = 0x20dc750, ltk_free = 0x485150 <slap_sl_mem_destroy>}, {ltk_key = 0x17b05b0, ltk_data = 0x21dc7a0, ltk_free = 0x7f1abe04f900 <bdb_reader_free>}, {ltk_key = 0x445410, ltk_data = 0x7f19f4704ee0, ltk_free = 0x4451e0 <slap_op_q_destroy>}, {ltk_key = 0x7f1abe0425a0, ltk_data = 0x7f1a11ffe010, ltk_free = 0x7f1abe042660 <search_stack_free>}, {ltk_key = 0x17acca0, ltk_data = 0x7f1a144ca3d0, ltk_free = 0x7f1abe04f900 <bdb_reader_free>}, {ltk_key = 0x0, ltk_data = 0xd0c4c00, ltk_free = 0}, {ltk_key = 0x0, ltk_data = 0x0, ltk_free = 0} <repeats 21 times>, {ltk_key = 0x0, ltk_data = 0x0, ltk_free = 0x2}, {ltk_key = 0x0, ltk_data = 0x7f1ac14d054f, ltk_free = 0}, {ltk_key = 0x0, ltk_data = 0x0, ltk_free = 0}, {ltk_key = 0x0, ltk_data = 0x0, ltk_free = 0}}} kctx = <value optimized out> keyslot = 497 hash = <value optimized out> __PRETTY_FUNCTION__ = "ldap_int_thread_pool_wrapper" #2 0x00007f1ac14cffc7 in start_thread () from /lib/libpthread.so.0 No symbol table info available. #3 0x00007f1ac12455ad in clone () from /lib/libc.so.6 No symbol table info available. #4 0x0000000000000000 in ?? () No symbol table info available.
Thread 11 (Thread 0x45e2a950 (LWP 2480)): #0 0x00007f1ac14d6384 in __lll_lock_wait () from /lib/libpthread.so.0 No symbol table info available. #1 0x00007f1ac14d1bf0 in _L_lock_102 () from /lib/libpthread.so.0 No symbol table info available. #2 0x00007f1ac14d14fe in pthread_mutex_lock () from /lib/libpthread.so.0 No symbol table info available. #3 0x00007f1abe04fe47 in bdb_cache_lru_link (bdb=0x1734cc0, ei=0x80) at /tmp/buildd/openldap-2.4.15/servers/slapd/back-bdb/cache.c:127 No locals. #4 0x00007f1abe051472 in bdb_cache_find_id (op=0x7f19f773ace0, tid=0x22e4760, id=740324, eip=0x45e28b78, flag=0, lock=0x45e28b00) at /tmp/buildd/openldap-2.4.15/servers/slapd/back-bdb/cache.c:935 bdb = (struct bdb_info *) 0x1734cc0 ep = (Entry *) 0x0 rc = 0 load = 1 ei = {bei_parent = 0x0, bei_id = 740324, bei_lockpad = 0, bei_state = 0, bei_finders = 0, bei_nrdn = {bv_len = 0, bv_val = 0x0}, bei_e = 0x0, bei_kids = 0x0, bei_kids_mutex = {__data = {__lock = 0, __count = 0, __owner = 0, __nusers = 0, __kind = 0, __spins = 0, __list = {__prev = 0x0, __next = 0x0}}, __size = '\0' <repeats 39 times>, __align = 0}, bei_lrunext = 0x0, bei_lruprev = 0x0} #5 0x00007f1abe04454c in bdb_search (op=0x7f19f773ace0, rs=0x45e29ca0) at /tmp/buildd/openldap-2.4.15/servers/slapd/back-bdb/search.c:705 scopeok = 0 bdb = (struct bdb_info *) 0x1734cc0 id = 740324 cursor = 1 lastid = 18446744073709551615 candidates = {1, 740324, 1044229, 530861, 530874, 530876, 531193, 531307, 531425, 531438, 531447, 531573, 531582, 531586, 531587, 531588, 531589, 531590, 531592, 531593, 531594, 531595, 531596, 531597, 531598, 531599, 531600, 531601, 531602, 531603, 531604, 531605, 531606, 531607, 531608, 531609, 531610, 531611, 531612, 531613, 531614, 531615, 531616, 531617, 531618, 531619, 531620, 531621, 531622, 531623, 531624, 531625, 531626, 531627, 531628, 531629, 531630, 531631, 531632, 531633, 531634, 531635, 531636, 531637, 531638, 531639, 531640, 531641, 531642, 531643, 531644, 531645, 531646, 531647, 531648, 531649, 531650, 531651, 531652, 531653, 531654, 531655, 531656, 531657, 531658, 531659, 531660, 531661, 531662, 531663, 531664, 531665, 531666, 531667, 531668, 531669, 531670, 531671, 531672, 531673, 531674, 531675, 531676, 531677, 531678, 531679, 531680, 531681, 531682, 531683, 531684, 531685, 531686, 531687, 531688, 531689, 531690, 531691, 531692, 531693, 531694, 531695, 531696, 531697, 531698, 531699, 531700, 531701, 531702, 531703, 531704, 531705, 531706, 531707, 531708, 531709, 531710, 531711, 531712, 531713, 531714, 531715, 531716, 531717, 531718, 531719, 531720, 531721, 531722, 531723, 531724, 531725, 531726, 531727, 531728, 531729, 531730, 531731, 531732, 531733, 531734, 531735, 531736, 531737, 531738, 531739, 531740, 531741, 531742, 531743, 531744, 531745, 531746, 531747, 531748, 531749, 531750, 531751, 531752, 531753, 531754, 531755, 531756, 531757, 531758, 531759, 531760, 531761, 531762, 531763, 531764, 531765, 531766, 531767, 531768, 531769, 531770, 531771, 531772, 531773...} scopes = {0 <repeats 64757 times>, 139752886231620, 0, 139752885891591, 139750115639296, 128, 0, 32768, 176, 139752885906679, 0, 208, 160, 4095, 0, 0, 139749665044112, 47244640256, 18446744073709547520, 160, 139752888879584, 160, 1172468480, 10, 2258, 139752885901944, 1172468096, 1172472848, 160, 139752886392815, 141828410064896, 18374686479671623680, 3760356350, 1172468144, 0, 0, 141828410064896, 18374686479671623680, 324407806, 1172468192, 0, 0, 141828410064896, 18374686479671623680, 814298110, 1172468240, 0, 139752886265001, 32768, 0, 16777216, 1172468288, 0, 139752886392545, 6912, 18446462598732840960, 616006978, 1172468336, 0, 0, 6912, 18446462598732840960, 615941442, 1172468384, 0, 0, 6144, 18446462598732840960, 1359286444, 1172468432, 0, 139752886265001, 2048, 18446462598732840960, 16777343, 0, 12, 139752886392545, 562962838323220, 9699272344856, 4294967296, 65556, 0, 1688935776387072, 18446744073709551615, 18558553690337, 563035852767296, 9699272344856, 12842975242, 141828410114068, 18374686479671623680, 1688936573907966, 18446744073709551615, 18558553690337, 563035852767296, 9699272344856, 17137942538, 141828410114068, 18374686479671623680, 1688936084017662, 18446744073709551615, 18558553690337, 563035852767296, 9699272344856, 21432909834, 141828410114068, 18374686479671623680, 1688939519966206, 18446744073709551615, 18558553690337, 0 <repeats 31 times>, 4541024, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1125281431552, 0, 23710144, 0, 0, 23710256, 0, 0, 0, 0, 5119, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 4541024, 0, 0, 0, 0, 0, 0, 0, 4541024, 0, 1172474496, 21474836480, 24623552, 23825888, 4541024, 0, 23834736, 0, 0, 17179869184, 4541024, 5119, 0, 0, 23680992, 17179869184, 35539064, 23556144, 0, 5119, 0, 17179869184, 35539064, 23556144, 0, 5119, 23680992, 17179869184, 35539064...} e = (Entry *) 0x18830f8 base = {e_id = 2, e_name = {bv_len = 1172474192, bv_val = 0x21e4a48 "(accountStatus=active))"}, e_nname = {bv_len = 22, bv_val = 0x29f2850 "ou=services,o=example"}, e_attrs = 0x45e289d8, e_ocflags = 5037883, e_bv = {bv_len = 139752914445772, bv_val = 0x45e289d8 ""}, e_private = 0x1e61ca0} e_root = (Entry *) 0x187f3b8 matched = (Entry *) 0x0 ei = (EntryInfo *) 0x7f1a1448ef20 realbase = {bv_len = 22, bv_val = 0x29f2850 "ou=services,o=example"} mask = <value optimized out> manageDSAit = 1172474272 tentries = 1 nentries = 1 idflag = 0 lock = {off = 285144, ndx = 513, gen = 581880, mode = DB_LOCK_WRITE} opinfo = (struct bdb_op_info *) 0x0 ltid = (DB_TXN *) 0x22e4760 oex = <value optimized out> #6 0x0000000000434521 in fe_op_search (op=0x7f19f773ace0, rs=0x45e29ca0) at /tmp/buildd/openldap-2.4.15/servers/slapd/search.c:366 bd = (BackendDB *) 0x72f7a0 #7 0x0000000000434d1c in do_search (op=0x7f19f773ace0, rs=0x45e29ca0) at /tmp/buildd/openldap-2.4.15/servers/slapd/search.c:217 base = {bv_len = 22, bv_val = 0x3f08ce8 "ou=services,o=example"} siz = 0 i = 1172479488 #8 0x0000000000432376 in connection_operation (ctx=0x45e29e00, arg_v=<value optimized out>) at /tmp/buildd/openldap-2.4.15/servers/slapd/connection.c:1097 rc = <value optimized out> op = (Operation *) 0x7f19f773ace0 rs = {sr_type = REP_RESULT, sr_tag = 0, sr_msgid = 0, sr_err = 0, sr_matched = 0x0, sr_text = 0x0, sr_ref = 0x0, sr_ctrls = 0x0, sr_un = {sru_sasl = {r_sasldata = 0x0}, sru_extended = {r_rspoid = 0x0, r_rspdata = 0x0}, sru_search = {r_entry = 0x0, r_attr_flags = 0, r_operational_attrs = 0x0, r_attrs = 0x0, r_nentries = 0, r_v2ref = 0x0}}, sr_flags = 0} tag = 99 opidx = SLAP_OP_SEARCH conn = (Connection *) 0x7f1abd7fe990 memctx = (void *) 0x21e3230 memctx_null = (void *) 0x0 __PRETTY_FUNCTION__ = "connection_operation" #9 0x0000000000432e6d in connection_read_thread (ctx=0x45e29e00, argv=<value optimized out>) at /tmp/buildd/openldap-2.4.15/servers/slapd/connection.c:1223 s = 2034 #10 0x00007f1ac2f4014a in ldap_int_thread_pool_wrapper (xpool=<value optimized out>) at /tmp/buildd/openldap-2.4.15/libraries/libldap_r/tpool.c:663 pool = (struct ldap_int_thread_pool_s *) 0x16a1810 task = (ldap_int_thread_task_t *) 0x7f19ffeb9b70 work_list = <value optimized out> ctx = {ltu_id = 1172482384, ltu_key = {{ltk_key = 0x431480, ltk_data = 0x21e4640, ltk_free = 0x431550 <conn_counter_destroy>}, {ltk_key = 0x485650, ltk_data = 0x21e3230, ltk_free = 0x485150 <slap_sl_mem_destroy>}, {ltk_key = 0x17b05b0, ltk_data = 0x22e4760, ltk_free = 0x7f1abe04f900 <bdb_reader_free>}, {ltk_key = 0x445410, ltk_data = 0x7f19f2251ea0, ltk_free = 0x4451e0 <slap_op_q_destroy>}, {ltk_key = 0x7f1abe0425a0, ltk_data = 0x7f1a10ffd010, ltk_free = 0x7f1abe042660 <search_stack_free>}, {ltk_key = 0x17acca0, ltk_data = 0x26c8d70, ltk_free = 0x7f1abe04f900 <bdb_reader_free>}, {ltk_key = 0x0, ltk_data = 0x7f19d47c3ba0, ltk_free = 0}, {ltk_key = 0x0, ltk_data = 0x0, ltk_free = 0} <repeats 21 times>, {ltk_key = 0x0, ltk_data = 0x0, ltk_free = 0x2}, {ltk_key = 0x0, ltk_data = 0x7f1ac14d054f, ltk_free = 0}, {ltk_key = 0x0, ltk_data = 0x0, ltk_free = 0}, {ltk_key = 0x0, ltk_data = 0x0, ltk_free = 0}}} kctx = <value optimized out> keyslot = 480 hash = <value optimized out> __PRETTY_FUNCTION__ = "ldap_int_thread_pool_wrapper" #11 0x00007f1ac14cffc7 in start_thread () from /lib/libpthread.so.0 No symbol table info available. #12 0x00007f1ac12455ad in clone () from /lib/libc.so.6 No symbol table info available. #13 0x0000000000000000 in ?? () No symbol table info available.
Thread 10 (Thread 0x45629950 (LWP 2479)): #0 0x00007f1ac14d64c5 in __lll_unlock_wake () from /lib/libpthread.so.0 No symbol table info available. #1 0x00007f1ac14d2ff9 in _L_unlock_56 () from /lib/libpthread.so.0 No symbol table info available. #2 0x00007f1ac14d2c56 in __pthread_mutex_unlock_usercnt () from /lib/libpthread.so.0 No symbol table info available. #3 0x00007f1ac29d82c5 in __db_pthread_mutex_unlock () from /usr/lib/libdb-4.7.so No symbol table info available. #4 0x00007f1ac29d7f7d in __db_tas_mutex_unlock () from /usr/lib/libdb-4.7.so No symbol table info available. #5 0x00007f1ac2a587dd in ?? () from /usr/lib/libdb-4.7.so No symbol table info available. #6 0x00007f1ac2a5884f in __lock_put () from /usr/lib/libdb-4.7.so No symbol table info available. #7 0x00007f1ac2a589d3 in __lock_put_pp () from /usr/lib/libdb-4.7.so No symbol table info available. #8 0x00007f1abe05096e in bdb_cache_lru_purge (bdb=0x1734cc0) at /tmp/buildd/openldap-2.4.15/servers/slapd/back-bdb/cache.c:735 lock = {off = 91976, ndx = 380, gen = 22814260, mode = DB_LOCK_WRITE} lockp = (DB_LOCK *) 0x454a7660 elru = (EntryInfo *) 0xbc1af80 elnext = (EntryInfo *) 0xb602990 count = 1 eimax = 20000 #9 0x00007f1abe051322 in bdb_cache_find_id (op=0x7f1a1c508560, tid=0x7f1a1c178640, id=402078, eip=0x45627b78, flag=0, lock=0x45627b00) at /tmp/buildd/openldap-2.4.15/servers/slapd/back-bdb/cache.c:1016 bdb = (struct bdb_info *) 0x1734cc0 ep = (Entry *) 0x0 rc = 0 load = <value optimized out> ei = {bei_parent = 0x0, bei_id = 402078, bei_lockpad = 0, bei_state = 0, bei_finders = 0, bei_nrdn = {bv_len = 0, bv_val = 0x0}, bei_e = 0x0, bei_kids = 0x0, bei_kids_mutex = {__data = {__lock = 0, __count = 0, __owner = 0, __nusers = 0, __kind = 0, __spins = 0, __list = {__prev = 0x0, __next = 0x0}}, __size = '\0' <repeats 39 times>, __align = 0}, bei_lrunext = 0x0, bei_lruprev = 0x0} #10 0x00007f1abe04454c in bdb_search (op=0x7f1a1c508560, rs=0x45628ca0) at /tmp/buildd/openldap-2.4.15/servers/slapd/back-bdb/search.c:705 scopeok = 0 bdb = (struct bdb_info *) 0x1734cc0 id = 402078 cursor = 1 lastid = 18446744073709551615 candidates = {1, 402078, 1044229, 1044229, 27325, 40388, 54053, 73505, 89530, 91866, 93845, 96457, 98785, 101465, 103230, 108173, 134794, 162675, 167727, 172863, 209800, 209801, 209802, 210110, 218264, 229752, 229753, 246180, 246181, 263946, 267147, 271195, 271196, 279140, 301556, 301557, 320541, 327746, 328227, 343989, 343990, 351605, 352163, 352164, 366754, 374029, 382659, 438739, 443564, 444334, 444474, 444540, 444843, 445908, 446225, 446226, 446227, 461100, 465386, 470392, 470542, 473893, 473895, 473906, 473910, 473929, 473930, 473931, 473932, 473933, 473934, 473935, 473936, 480973, 480974, 489325, 492139, 492190, 495368, 495374, 502330, 502515, 505997, 510414, 510656, 514769, 515999, 516075, 516122, 516134, 516135, 518932, 518933, 518934, 518935, 518936, 518937, 518938, 518939, 518940, 518941, 518942, 518943, 518944, 518945, 518946, 518947, 518948, 518949, 518950, 518951, 518952, 518953, 518954, 518955, 518956, 518957, 518958, 518959, 518960, 519961, 521254, 521285, 521297, 521298, 521299, 521513, 521520, 521740, 522264, 523770, 523781, 523794, 524910, 525962, 529220, 536966, 549332, 549333, 556773, 557516, 558754, 571398, 575227, 575352, 575415, 580304, 581325, 590884, 590885, 590886, 590887, 590888, 590889, 590890, 591106, 591295, 591736, 591737, 591739, 591747, 594317, 595470, 595637, 595638, 595639, 598848, 600376, 601947, 602070, 606294, 606306, 606737, 608281, 609374, 616992, 618028, 619025, 621070, 622382, 628336, 636086, 636373, 640327, 640328, 640329, 640330, 640331, 640332, 640333, 640334, 640335, 640430, 640461, 640679, 641273, 708820, 711967, 717099, 724275...} scopes = {0 <repeats 64759 times>, 139752885891591, 139749645877248, 128, 0, 139749780095280, 139749780095280, 139752885906679, 0, 208, 160, 4095, 0, 0, 139749809187888, 47244640256, 0, 160, 139752888879584, 160, 1164075776, 10, 2258, 139752885901944, 1164075392, 1164080144, 160, 139752886392815, 141828410064896, 18374686479671623680, 3760356350, 1164075440, 0, 0, 141828410064896, 18374686479671623680, 324407806, 1164075488, 0, 0, 141828410064896, 18374686479671623680, 814298110, 1164075536, 0, 139752886265001, 32768, 0, 16777216, 1164075584, 0, 139752886392545, 6912, 18446462598732840960, 616006978, 1164075632, 0, 0, 6912, 18446462598732840960, 615941442, 1164075680, 0, 0, 6144, 18446462598732840960, 1359286444, 1164075728, 0, 139752886265001, 2048, 18446462598732840960, 16777343, 0, 12, 139752886392545, 562962838323220, 9699272344856, 4294967296, 65556, 0, 1688935776387072, 18446744073709551615, 18558553690337, 563035852767296, 9699272344856, 12842975242, 141828410114068, 18374686479671623680, 1688936573907966, 18446744073709551615, 18558553690337, 563035852767296, 9699272344856, 17137942538, 141828410114068, 18374686479671623680, 1688936084017662, 18446744073709551615, 18558553690337, 563035852767296, 9699272344856, 21432909834, 141828410114068, 18374686479671623680, 1688939519966206, 18446744073709551615, 18558553690337, 0 <repeats 31 times>, 4541024, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1125281431552, 0, 23710144, 0, 0, 23710256, 0, 0, 0, 0, 5119, 0 <repeats 115 times>, 139752493888592, 139752911957127, 0, 2097152, 1164077984, 1164077744, 139752493887800, 0, 24826688, 24828224, 1164077904, 139752911957899, 1164077984, 244, 15729652001669120, 15729652001669198, 0, 0, 0, 139752912047088, 3324304687104, 139752823546552, 139752823546640, 12, 8987108849429250048, 139752493887800, 24826688, 1164077744, 1164078144, 1, 139752493887800, 139752911965882, 0, 0, 139752493894681, 139752911957127, 1164077984, 34361835520, 139752507321928, 139752493887800, 0...} e = (Entry *) 0x187f4a8 base = {e_id = 1, e_name = {bv_len = 1, bv_val = 0x7f1a01a85fb0 "\002"}, e_nname = {bv_len = 10, bv_val = 0x3a4fa50 "o=example"}, e_attrs = 0x7f1ac2d265cc, e_ocflags = 1164081600, e_bv = {bv_len = 139749673689008, bv_val = 0x4 <Address 0x4 out of bounds>}, e_private = 0x1d57050} e_root = (Entry *) 0x187f3b8 matched = (Entry *) 0x0 ei = (EntryInfo *) 0x7f1a1d1005c0 realbase = {bv_len = 10, bv_val = 0x3a4fa50 "o=example"} mask = <value optimized out> manageDSAit = 0 tentries = 1 nentries = 1 idflag = 0 lock = {off = 241512, ndx = 710, gen = 3492703, mode = DB_LOCK_READ} opinfo = (struct bdb_op_info *) 0x0 ltid = (DB_TXN *) 0x7f1a1c178640 oex = <value optimized out> #11 0x0000000000434521 in fe_op_search (op=0x7f1a1c508560, rs=0x45628ca0) at /tmp/buildd/openldap-2.4.15/servers/slapd/search.c:366 bd = (BackendDB *) 0x72f7a0 #12 0x0000000000434d1c in do_search (op=0x7f1a1c508560, rs=0x45628ca0) at /tmp/buildd/openldap-2.4.15/servers/slapd/search.c:217 base = {bv_len = 10, bv_val = 0x4013d18 "o=example"} siz = 1 i = 1164086784 #13 0x0000000000432376 in connection_operation (ctx=0x45628e00, arg_v=<value optimized out>) at /tmp/buildd/openldap-2.4.15/servers/slapd/connection.c:1097 rc = <value optimized out> op = (Operation *) 0x7f1a1c508560 rs = {sr_type = REP_RESULT, sr_tag = 0, sr_msgid = 0, sr_err = 0, sr_matched = 0x0, sr_text = 0x0, sr_ref = 0x0, sr_ctrls = 0x0, sr_un = {sru_sasl = {r_sasldata = 0x0}, sru_extended = {r_rspoid = 0x0, r_rspdata = 0x0}, sru_search = {r_entry = 0x0, r_attr_flags = 0, r_operational_attrs = 0x0, r_attrs = 0x0, r_nentries = 0, r_v2ref = 0x0}}, sr_flags = 0} tag = 99 opidx = SLAP_OP_SEARCH conn = (Connection *) 0x7f1abd8e8b10 memctx = (void *) 0x7f1a1c0785f0 memctx_null = (void *) 0x0 __PRETTY_FUNCTION__ = "connection_operation" #14 0x0000000000432e6d in connection_read_thread (ctx=0x45628e00, argv=<value optimized out>) at /tmp/buildd/openldap-2.4.15/servers/slapd/connection.c:1223 s = 3396 #15 0x00007f1ac2f4014a in ldap_int_thread_pool_wrapper (xpool=<value optimized out>) at /tmp/buildd/openldap-2.4.15/libraries/libldap_r/tpool.c:663 pool = (struct ldap_int_thread_pool_s *) 0x16a1810 task = (ldap_int_thread_task_t *) 0x7f1a14f84ba0 work_list = <value optimized out> ctx = {ltu_id = 1164089680, ltu_key = {{ltk_key = 0x431480, ltk_data = 0x7f1a1c0784e0, ltk_free = 0x431550 <conn_counter_destroy>}, {ltk_key = 0x485650, ltk_data = 0x7f1a1c0785f0, ltk_free = 0x485150 <slap_sl_mem_destroy>}, {ltk_key = 0x17b05b0, ltk_data = 0x7f1a1c178640, ltk_free = 0x7f1abe04f900 <bdb_reader_free>}, {ltk_key = 0x7f1abe0425a0, ltk_data = 0x7f1a18ffd010, ltk_free = 0x7f1abe042660 <search_stack_free>}, {ltk_key = 0x445410, ltk_data = 0x7f19f624f9c0, ltk_free = 0x4451e0 <slap_op_q_destroy>}, {ltk_key = 0x17acca0, ltk_data = 0x7f1a143f2ca0, ltk_free = 0x7f1abe04f900 <bdb_reader_free>}, {ltk_key = 0x0, ltk_data = 0x7f19dcc94ca0, ltk_free = 0}, {ltk_key = 0x0, ltk_data = 0x0, ltk_free = 0} <repeats 21 times>, {ltk_key = 0x0, ltk_data = 0x0, ltk_free = 0x2}, {ltk_key = 0x0, ltk_data = 0x7f1ac14d054f, ltk_free = 0}, {ltk_key = 0x0, ltk_data = 0x0, ltk_free = 0}, {ltk_key = 0x0, ltk_data = 0x0, ltk_free = 0}}} kctx = <value optimized out> keyslot = 336 hash = <value optimized out> __PRETTY_FUNCTION__ = "ldap_int_thread_pool_wrapper" #16 0x00007f1ac14cffc7 in start_thread () from /lib/libpthread.so.0 No symbol table info available. #17 0x00007f1ac12455ad in clone () from /lib/libc.so.6 No symbol table info available. #18 0x0000000000000000 in ?? () No symbol table info available.
Thread 9 (Thread 0x44e28950 (LWP 2478)): #0 0x00007f1ac14d6384 in __lll_lock_wait () from /lib/libpthread.so.0 No symbol table info available. #1 0x00007f1ac14d1bf0 in _L_lock_102 () from /lib/libpthread.so.0 No symbol table info available. #2 0x00007f1ac14d14fe in pthread_mutex_lock () from /lib/libpthread.so.0 No symbol table info available. #3 0x00007f1abe04fe47 in bdb_cache_lru_link (bdb=0x1734cc0, ei=0x80) at /tmp/buildd/openldap-2.4.15/servers/slapd/back-bdb/cache.c:127 No locals. #4 0x00007f1abe051472 in bdb_cache_find_id (op=0x7f19f1d03590, tid=0x1e62010, id=406495, eip=0x44e26b78, flag=0, lock=0x44e26b00) at /tmp/buildd/openldap-2.4.15/servers/slapd/back-bdb/cache.c:935 bdb = (struct bdb_info *) 0x1734cc0 ep = (Entry *) 0x0 rc = 0 load = 1 ei = {bei_parent = 0x0, bei_id = 406495, bei_lockpad = 0, bei_state = 0, bei_finders = 0, bei_nrdn = {bv_len = 0, bv_val = 0x0}, bei_e = 0x0, bei_kids = 0x0, bei_kids_mutex = {__data = {__lock = 0, __count = 0, __owner = 0, __nusers = 0, __kind = 0, __spins = 0, __list = {__prev = 0x0, __next = 0x0}}, __size = '\0' <repeats 39 times>, __align = 0}, bei_lrunext = 0x0, bei_lruprev = 0x0} #5 0x00007f1abe04454c in bdb_search (op=0x7f19f1d03590, rs=0x44e27ca0) at /tmp/buildd/openldap-2.4.15/servers/slapd/back-bdb/search.c:705 scopeok = 0 bdb = (struct bdb_info *) 0x1734cc0 id = 406495 cursor = 1 lastid = 18446744073709551615 candidates = {1, 406495, 1044229, 1044229, 93845, 108173, 162675, 167727, 172863, 209800, 229753, 246181, 263946, 271195, 271196, 320541, 328227, 343990, 352163, 444334, 444843, 446225, 473893, 489325, 495368, 502330, 510414, 521254, 521513, 521520, 522264, 523770, 558754, 571398, 622382, 724280, 729217, 757913, 837196, 841698, 847960, 903620, 915112, 978491, 366754, 374029, 382659, 438739, 443564, 444334, 444474, 444540, 444843, 445908, 446225, 446226, 446227, 461100, 465386, 470392, 470542, 473893, 473895, 473906, 473910, 473929, 473930, 473931, 473932, 473933, 473934, 473935, 473936, 480973, 480974, 489325, 492139, 492190, 495368, 495374, 502330, 502515, 505997, 510414, 510656, 514769, 515999, 516075, 516122, 516134, 516135, 518932, 518933, 518934, 518935, 518936, 518937, 518938, 518939, 518940, 518941, 518942, 518943, 518944, 518945, 518946, 518947, 518948, 518949, 518950, 518951, 518952, 518953, 518954, 518955, 518956, 518957, 518958, 518959, 518960, 519961, 521254, 521285, 521297, 521298, 521299, 521513, 521520, 521740, 522264, 523770, 523781, 523794, 524910, 525962, 529220, 536966, 549332, 549333, 556773, 557516, 558754, 571398, 575227, 575352, 575415, 580304, 581325, 590884, 590885, 590886, 590887, 590888, 590889, 590890, 591106, 591295, 591736, 591737, 591739, 591747, 594317, 595470, 595637, 595638, 595639, 598848, 600376, 601947, 602070, 606294, 606306, 606737, 608281, 609374, 616992, 618028, 619025, 621070, 622382, 628336, 636086, 636373, 640327, 640328, 640329, 640330, 640331, 640332, 640333, 640334, 640335, 640430, 640461, 640679, 641273, 708820, 711967, 717099, 724275...} scopes = {0 <repeats 64759 times>, 139752885891591, 139750115639296, 128, 0, 139749813384512, 139749780095296, 139752885906679, 0, 208, 160, 4095, 0, 0, 139749809090016, 47244640256, 0, 160, 139750115639328, 160, 1155683072, 10, 2258, 139752885901944, 1155682688, 1155687440, 160, 139752886392815, 141828410064896, 18374686479671623680, 3760356350, 1155682736, 0, 0, 141828410064896, 18374686479671623680, 324407806, 1155682784, 0, 0, 141828410064896, 18374686479671623680, 814298110, 1155682832, 0, 139752886265001, 32768, 0, 16777216, 1155682880, 0, 139752886392545, 6912, 18446462598732840960, 616006978, 1155682928, 0, 0, 6912, 18446462598732840960, 615941442, 1155682976, 0, 0, 6144, 18446462598732840960, 1359286444, 1155683024, 0, 139752886265001, 2048, 18446462598732840960, 16777343, 0, 12, 139752886392545, 562962838323220, 9699272344856, 4294967296, 65556, 0, 1688935776387072, 18446744073709551615, 18558553690337, 563035852767296, 9699272344856, 12842975242, 141828410114068, 18374686479671623680, 1688936573907966, 18446744073709551615, 18558553690337, 563035852767296, 9699272344856, 17137942538, 141828410114068, 18374686479671623680, 1688936084017662, 18446744073709551615, 18558553690337, 563035852767296, 9699272344856, 21432909834, 141828410114068, 18374686479671623680, 1688939519966206, 18446744073709551615, 18558553690337, 0 <repeats 31 times>, 4541024, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1125281431552, 0, 23710144, 0, 0, 23710256, 0, 0, 0, 0, 5119, 0 <repeats 115 times>, 139752493888416, 139752911957127, 0, 2097152, 1155685280, 1155685040, 139752493887800, 0, 24826688, 4541024, 1155685200, 139752911957899, 1155685280, 68, 14464307391627264, 14464307391627342, 0, 0, 0, 0, 3324304687104, 0, 23710832, 12, 8081029384590327808, 23710944, 24826688, 1155685040, 1155685440, 1, 5119, 139752911965882, 0, 0, 139752493894560, 139752911957127, 1155685280, 2097152, 1155685552, 1155685312, 139752493887800...} e = (Entry *) 0x187f4a8 base = {e_id = 1, e_name = {bv_len = 1, bv_val = 0x7f19d45428b0 "\002"}, e_nname = {bv_len = 10, bv_val = 0x7f19ea50e350 "o=example"}, e_attrs = 0x7f1ac2d265cc, e_ocflags = 1155688896, e_bv = {bv_len = 139748913195184, bv_val = 0x4 <Address 0x4 out of bounds>}, e_private = 0x1d57050} e_root = (Entry *) 0x187f3b8 matched = (Entry *) 0x0 ei = (EntryInfo *) 0x7f19ebab5800 realbase = {bv_len = 10, bv_val = 0x7f19ea50e350 "o=example"} mask = <value optimized out> manageDSAit = 0 tentries = 1 nentries = 1 idflag = 0 lock = {off = 345112, ndx = 957, gen = 11017130, mode = DB_LOCK_WRITE} opinfo = (struct bdb_op_info *) 0x0 ltid = (DB_TXN *) 0x1e62010 oex = <value optimized out> #6 0x0000000000434521 in fe_op_search (op=0x7f19f1d03590, rs=0x44e27ca0) at /tmp/buildd/openldap-2.4.15/servers/slapd/search.c:366 bd = (BackendDB *) 0x72f7a0 #7 0x0000000000434d1c in do_search (op=0x7f19f1d03590, rs=0x44e27ca0) at /tmp/buildd/openldap-2.4.15/servers/slapd/search.c:217 base = {bv_len = 10, bv_val = 0x7f1a1d4170d8 "o=example"} siz = 1 i = 1155694080 #8 0x0000000000432376 in connection_operation (ctx=0x44e27e00, arg_v=<value optimized out>) at /tmp/buildd/openldap-2.4.15/servers/slapd/connection.c:1097 rc = <value optimized out> op = (Operation *) 0x7f19f1d03590 rs = {sr_type = REP_RESULT, sr_tag = 0, sr_msgid = 0, sr_err = 0, sr_matched = 0x0, sr_text = 0x0, sr_ref = 0x0, sr_ctrls = 0x0, sr_un = {sru_sasl = {r_sasldata = 0x0}, sru_extended = {r_rspoid = 0x0, r_rspdata = 0x0}, sru_search = {r_entry = 0x0, r_attr_flags = 0, r_operational_attrs = 0x0, r_attrs = 0x0, r_nentries = 0, r_v2ref = 0x0}}, sr_flags = 0} tag = 99 opidx = SLAP_OP_SEARCH conn = (Connection *) 0x7f1abd6d77d0 memctx = (void *) 0x1e637d0 memctx_null = (void *) 0x0 __PRETTY_FUNCTION__ = "connection_operation" #9 0x0000000000432e6d in connection_read_thread (ctx=0x44e27e00, argv=<value optimized out>) at /tmp/buildd/openldap-2.4.15/servers/slapd/connection.c:1223 s = 317 #10 0x00007f1ac2f4014a in ldap_int_thread_pool_wrapper (xpool=<value optimized out>) at /tmp/buildd/openldap-2.4.15/libraries/libldap_r/tpool.c:663 pool = (struct ldap_int_thread_pool_s *) 0x16a1810 task = (ldap_int_thread_task_t *) 0x7f19ffa11300 work_list = <value optimized out> ctx = {ltu_id = 1155696976, ltu_key = {{ltk_key = 0x431480, ltk_data = 0x1e636c0, ltk_free = 0x431550 <conn_counter_destroy>}, {ltk_key = 0x485650, ltk_data = 0x1e637d0, ltk_free = 0x485150 <slap_sl_mem_destroy>}, {ltk_key = 0x17b05b0, ltk_data = 0x1e62010, ltk_free = 0x7f1abe04f900 <bdb_reader_free>}, {ltk_key = 0x445410, ltk_data = 0x7f19f50d9dd0, ltk_free = 0x4451e0 <slap_op_q_destroy>}, {ltk_key = 0x7f1abe0425a0, ltk_data = 0x7f1a20308010, ltk_free = 0x7f1abe042660 <search_stack_free>}, {ltk_key = 0x17acca0, ltk_data = 0x7f1a002004a0, ltk_free = 0x7f1abe04f900 <bdb_reader_free>}, {ltk_key = 0x0, ltk_data = 0x7f19d0bb03a0, ltk_free = 0}, {ltk_key = 0x0, ltk_data = 0x0, ltk_free = 0} <repeats 21 times>, {ltk_key = 0x0, ltk_data = 0x0, ltk_free = 0x2}, {ltk_key = 0x0, ltk_data = 0x7f1ac14d054f, ltk_free = 0}, {ltk_key = 0x0, ltk_data = 0x0, ltk_free = 0}, {ltk_key = 0x0, ltk_data = 0x0, ltk_free = 0}}} kctx = <value optimized out> keyslot = 319 hash = <value optimized out> __PRETTY_FUNCTION__ = "ldap_int_thread_pool_wrapper" #11 0x00007f1ac14cffc7 in start_thread () from /lib/libpthread.so.0 No symbol table info available. #12 0x00007f1ac12455ad in clone () from /lib/libc.so.6 No symbol table info available. #13 0x0000000000000000 in ?? () No symbol table info available.
Thread 8 (Thread 0x44627950 (LWP 2477)): #0 0x00007f1ac14d3d29 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0 No symbol table info available. #1 0x00007f1ac2f4019d in ldap_int_thread_pool_wrapper (xpool=<value optimized out>) at /tmp/buildd/openldap-2.4.15/libraries/libldap_r/tpool.c:654 pool = (struct ldap_int_thread_pool_s *) 0x16a1810 task = (ldap_int_thread_task_t *) 0x0 work_list = (ldap_int_tpool_plist_t *) 0x1382507 ctx = {ltu_id = 1147304272, ltu_key = {{ltk_key = 0x431480, ltk_data = 0x1e65e30, ltk_free = 0x431550 <conn_counter_destroy>}, {ltk_key = 0x485650, ltk_data = 0x1e63e90, ltk_free = 0x485150 <slap_sl_mem_destroy>}, {ltk_key = 0x17b05b0, ltk_data = 0x1e65f40, ltk_free = 0x7f1abe04f900 <bdb_reader_free>}, {ltk_key = 0x7f1abe0425a0, ltk_data = 0x7f1a2230a010, ltk_free = 0x7f1abe042660 <search_stack_free>}, {ltk_key = 0x445410, ltk_data = 0x7f19f7a41b20, ltk_free = 0x4451e0 <slap_op_q_destroy>}, {ltk_key = 0x17acca0, ltk_data = 0x2d3e010, ltk_free = 0x7f1abe04f900 <bdb_reader_free>}, {ltk_key = 0x0, ltk_data = 0x7f19d16b6840, ltk_free = 0}, {ltk_key = 0x0, ltk_data = 0x0, ltk_free = 0} <repeats 21 times>, {ltk_key = 0x0, ltk_data = 0x0, ltk_free = 0x2}, {ltk_key = 0x0, ltk_data = 0x7f1ac14d054f, ltk_free = 0}, {ltk_key = 0x0, ltk_data = 0x0, ltk_free = 0}, {ltk_key = 0x0, ltk_data = 0x0, ltk_free = 0}}} kctx = <value optimized out> keyslot = 175 hash = <value optimized out> __PRETTY_FUNCTION__ = "ldap_int_thread_pool_wrapper" #2 0x00007f1ac14cffc7 in start_thread () from /lib/libpthread.so.0 No symbol table info available. #3 0x00007f1ac12455ad in clone () from /lib/libc.so.6 No symbol table info available. #4 0x0000000000000000 in ?? () No symbol table info available.
Thread 7 (Thread 0x41bd6950 (LWP 2476)): #0 0x00007f1ac14d3d29 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0 No symbol table info available. #1 0x00007f1ac2f4019d in ldap_int_thread_pool_wrapper (xpool=<value optimized out>) at /tmp/buildd/openldap-2.4.15/libraries/libldap_r/tpool.c:654 pool = (struct ldap_int_thread_pool_s *) 0x16a1810 task = (ldap_int_thread_task_t *) 0x0 work_list = (ldap_int_tpool_plist_t *) 0x138250a ctx = {ltu_id = 1102932304, ltu_key = {{ltk_key = 0x431480, ltk_data = 0x1d60e50, ltk_free = 0x431550 <conn_counter_destroy>}, {ltk_key = 0x485650, ltk_data = 0x1d60f60, ltk_free = 0x485150 <slap_sl_mem_destroy>}, {ltk_key = 0x17b05b0, ltk_data = 0x1e60fb0, ltk_free = 0x7f1abe04f900 <bdb_reader_free>}, {ltk_key = 0x445410, ltk_data = 0x7f19e5676190, ltk_free = 0x4451e0 <slap_op_q_destroy>}, {ltk_key = 0x7f1abe0425a0, ltk_data = 0x7f1a19ffe010, ltk_free = 0x7f1abe042660 <search_stack_free>}, {ltk_key = 0x17acca0, ltk_data = 0x7f1a146185e0, ltk_free = 0x7f1abe04f900 <bdb_reader_free>}, {ltk_key = 0x0, ltk_data = 0x7f19d16b6840, ltk_free = 0}, {ltk_key = 0x0, ltk_data = 0x0, ltk_free = 0} <repeats 21 times>, {ltk_key = 0x0, ltk_data = 0x0, ltk_free = 0x2}, {ltk_key = 0x0, ltk_data = 0x7f1ac14d054f, ltk_free = 0}, {ltk_key = 0x0, ltk_data = 0x0, ltk_free = 0}, {ltk_key = 0x0, ltk_data = 0x0, ltk_free = 0}}} kctx = <value optimized out> keyslot = 87 hash = <value optimized out> __PRETTY_FUNCTION__ = "ldap_int_thread_pool_wrapper" #2 0x00007f1ac14cffc7 in start_thread () from /lib/libpthread.so.0 No symbol table info available. #3 0x00007f1ac12455ad in clone () from /lib/libc.so.6 No symbol table info available. #4 0x0000000000000000 in ?? () No symbol table info available.
Thread 6 (Thread 0x43e26950 (LWP 2475)): #0 0x00007f1ac14d6384 in __lll_lock_wait () from /lib/libpthread.so.0 No symbol table info available. #1 0x00007f1ac14d1bf0 in _L_lock_102 () from /lib/libpthread.so.0 No symbol table info available. #2 0x00007f1ac14d14fe in pthread_mutex_lock () from /lib/libpthread.so.0 No symbol table info available. #3 0x00007f1abe04fe47 in bdb_cache_lru_link (bdb=0x1734cc0, ei=0x80) at /tmp/buildd/openldap-2.4.15/servers/slapd/back-bdb/cache.c:127 No locals. #4 0x00007f1abe051472 in bdb_cache_find_id (op=0x7f19f2c4b1b0, tid=0x17b4df0, id=233788, eip=0x43e24b78, flag=0, lock=0x43e24b00) at /tmp/buildd/openldap-2.4.15/servers/slapd/back-bdb/cache.c:935 bdb = (struct bdb_info *) 0x1734cc0 ep = (Entry *) 0x0 rc = 0 load = 1 ei = {bei_parent = 0x0, bei_id = 233788, bei_lockpad = 0, bei_state = 0, bei_finders = 0, bei_nrdn = {bv_len = 0, bv_val = 0x0}, bei_e = 0x0, bei_kids = 0x0, bei_kids_mutex = {__data = {__lock = 0, __count = 0, __owner = 0, __nusers = 0, __kind = 0, __spins = 0, __list = {__prev = 0x0, __next = 0x0}}, __size = '\0' <repeats 39 times>, __align = 0}, bei_lrunext = 0x0, bei_lruprev = 0x0} #5 0x00007f1abe04454c in bdb_search (op=0x7f19f2c4b1b0, rs=0x43e25ca0) at /tmp/buildd/openldap-2.4.15/servers/slapd/back-bdb/search.c:705 scopeok = 0 bdb = (struct bdb_info *) 0x1734cc0 id = 233788 cursor = 1 lastid = 18446744073709551615 candidates = {1, 233788, 1044229, 1044229, 27325, 40388, 54053, 73505, 89530, 91866, 93845, 96457, 98785, 101465, 103230, 108173, 134794, 162675, 167727, 172863, 209800, 209801, 209802, 210110, 218264, 229752, 229753, 246180, 246181, 263946, 267147, 271195, 271196, 279140, 301556, 301557, 320541, 327746, 328227, 343989, 343990, 351605, 352163, 352164, 366754, 374029, 382659, 438739, 443564, 444334, 444474, 444540, 444843, 445908, 446225, 446226, 446227, 461100, 465386, 470392, 470542, 473893, 473895, 473906, 473910, 473929, 473930, 473931, 473932, 473933, 473934, 473935, 473936, 480973, 480974, 489325, 492139, 492190, 495368, 495374, 502330, 502515, 505997, 510414, 510656, 514769, 515999, 516075, 516122, 516134, 516135, 518932, 518933, 518934, 518935, 518936, 518937, 518938, 518939, 518940, 518941, 518942, 518943, 518944, 518945, 518946, 518947, 518948, 518949, 518950, 518951, 518952, 518953, 518954, 518955, 518956, 518957, 518958, 518959, 518960, 519961, 521254, 521285, 521297, 521298, 521299, 521513, 521520, 521740, 522264, 523770, 523781, 523794, 524910, 525962, 529220, 536966, 549332, 549333, 556773, 557516, 558754, 571398, 575227, 575352, 575415, 580304, 581325, 590884, 590885, 590886, 590887, 590888, 590889, 590890, 591106, 591295, 591736, 591737, 591739, 591747, 594317, 595470, 595637, 595638, 595639, 598848, 600376, 601947, 602070, 606294, 606306, 606737, 608281, 609374, 616992, 618028, 619025, 621070, 622382, 628336, 636086, 636373, 640327, 640328, 640329, 640330, 640331, 640332, 640333, 640334, 640335, 640430, 640461, 640679, 641273, 708820, 711967, 717099, 724275...} scopes = {0 <repeats 64759 times>, 139752885891591, 139749981421568, 176, 0, 139749780095280, 139749780095280, 139752885906679, 0, 208, 160, 4095, 0, 0, 139749797178736, 47244640256, 0, 160, 139750115639328, 160, 1138897664, 10, 2258, 139752885901944, 1138897280, 1138902032, 160, 139752886392815, 141828410064896, 18374686479671623680, 3760356350, 1138897328, 0, 0, 141828410064896, 18374686479671623680, 324407806, 1138897376, 0, 0, 141828410064896, 18374686479671623680, 814298110, 1138897424, 0, 139752886265001, 32768, 0, 16777216, 1138897472, 0, 139752886392545, 6912, 18446462598732840960, 616006978, 1138897520, 0, 0, 6912, 18446462598732840960, 615941442, 1138897568, 0, 0, 6144, 18446462598732840960, 1359286444, 1138897616, 0, 139752886265001, 2048, 18446462598732840960, 16777343, 0, 12, 139752886392545, 562962838323220, 9699272344857, 4294967296, 65556, 0, 1688935776387072, 18446744073709551615, 18558553690337, 563035852767296, 9699272344857, 12842975242, 141828410114068, 18374686479671623680, 1688936573907966, 18446744073709551615, 18558553690337, 563035852767296, 9699272344857, 17137942538, 141828410114068, 18374686479671623680, 1688936084017662, 18446744073709551615, 18558553690337, 563035852767296, 9699272344857, 21432909834, 141828410114068, 18374686479671623680, 1688939519966206, 18446744073709551615, 18558553690337, 0 <repeats 31 times>, 4541024, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1125281431552, 0, 23710144, 0, 0, 23710256, 0, 0, 0, 0, 5119, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 4541024, 0, 0, 0, 0, 0, 0, 0, 4541024, 0, 1138903680, 21474836480, 24623552, 23825888, 4541024, 0, 23834736, 0, 0, 17179869184, 4541024, 5119, 0, 0, 23680992, 17179869184, 28650024, 23556144, 0, 5119, 0, 17179869184, 28650024, 23556144, 0, 5119, 23680992, 17179869184, 28650024, 23556144, 0...} e = (Entry *) 0x187f4a8 base = {e_id = 1, e_name = {bv_len = 1138903376, bv_val = 0x1b52bb4 "(mail=shawhillatvandcycle@example.net))"}, e_nname = {bv_len = 10, bv_val = 0x7f1a1e25d380 "o=example"}, e_attrs = 0x43e249d8, e_ocflags = 5037883, e_bv = {bv_len = 139752914445772, bv_val = 0x43e249d8 ""}, e_private = 0x1d57050} e_root = (Entry *) 0x187f3b8 matched = (Entry *) 0x0 ei = (EntryInfo *) 0x7f19eb45d420 realbase = {bv_len = 10, bv_val = 0x7f1a1e25d380 "o=example"} mask = <value optimized out> manageDSAit = 0 tentries = 1 nentries = 1 idflag = 0 lock = {off = 360424, ndx = 38, gen = 16730841, mode = DB_LOCK_WRITE} opinfo = (struct bdb_op_info *) 0x0 ltid = (DB_TXN *) 0x17b4df0 oex = <value optimized out> #6 0x0000000000434521 in fe_op_search (op=0x7f19f2c4b1b0, rs=0x43e25ca0) at /tmp/buildd/openldap-2.4.15/servers/slapd/search.c:366 bd = (BackendDB *) 0x72f7a0 #7 0x0000000000434d1c in do_search (op=0x7f19f2c4b1b0, rs=0x43e25ca0) at /tmp/buildd/openldap-2.4.15/servers/slapd/search.c:217 base = {bv_len = 10, bv_val = 0x7f19eb45d388 "o=example"} siz = 0 i = 1138908672 #8 0x0000000000432376 in connection_operation (ctx=0x43e25e00, arg_v=<value optimized out>) at /tmp/buildd/openldap-2.4.15/servers/slapd/connection.c:1097 rc = <value optimized out> op = (Operation *) 0x7f19f2c4b1b0 rs = {sr_type = REP_RESULT, sr_tag = 0, sr_msgid = 0, sr_err = 0, sr_matched = 0x0, sr_text = 0x0, sr_ref = 0x0, sr_ctrls = 0x0, sr_un = {sru_sasl = {r_sasldata = 0x0}, sru_extended = {r_rspoid = 0x0, r_rspdata = 0x0}, sru_search = {r_entry = 0x0, r_attr_flags = 0, r_operational_attrs = 0x0, r_attrs = 0x0, r_nentries = 0, r_v2ref = 0x0}}, sr_flags = 0} tag = 99 opidx = SLAP_OP_SEARCH conn = (Connection *) 0x7f1abd733c90 memctx = (void *) 0x17b4db0 memctx_null = (void *) 0x0 __PRETTY_FUNCTION__ = "connection_operation" #9 0x0000000000432e6d in connection_read_thread (ctx=0x43e25e00, argv=<value optimized out>) at /tmp/buildd/openldap-2.4.15/servers/slapd/connection.c:1223 s = 854 #10 0x00007f1ac2f4014a in ldap_int_thread_pool_wrapper (xpool=<value optimized out>) at /tmp/buildd/openldap-2.4.15/libraries/libldap_r/tpool.c:663 pool = (struct ldap_int_thread_pool_s *) 0x16a1810 task = (ldap_int_thread_task_t *) 0x7f1a14f847a0 work_list = <value optimized out> ctx = {ltu_id = 1138911568, ltu_key = {{ltk_key = 0x431480, ltk_data = 0x17b6940, ltk_free = 0x431550 <conn_counter_destroy>}, {ltk_key = 0x485650, ltk_data = 0x17b4db0, ltk_free = 0x485150 <slap_sl_mem_destroy>}, {ltk_key = 0x17b05b0, ltk_data = 0x17b4df0, ltk_free = 0x7f1abe04f900 <bdb_reader_free>}, {ltk_key = 0x445410, ltk_data = 0x7f1a0099bc90, ltk_free = 0x4451e0 <slap_op_q_destroy>}, {ltk_key = 0x7f1abe0425a0, ltk_data = 0x7f1a0effb010, ltk_free = 0x7f1abe042660 <search_stack_free>}, {ltk_key = 0x17acca0, ltk_data = 0x7f1a1c5e3420, ltk_free = 0x7f1abe04f900 <bdb_reader_free>}, {ltk_key = 0x0, ltk_data = 0x7f19d4da8960, ltk_free = 0}, {ltk_key = 0x0, ltk_data = 0x0, ltk_free = 0} <repeats 25 times>}} kctx = <value optimized out> keyslot = 158 hash = <value optimized out> __PRETTY_FUNCTION__ = "ldap_int_thread_pool_wrapper" #11 0x00007f1ac14cffc7 in start_thread () from /lib/libpthread.so.0 No symbol table info available. #12 0x00007f1ac12455ad in clone () from /lib/libc.so.6 No symbol table info available. #13 0x0000000000000000 in ?? () No symbol table info available.
Thread 5 (Thread 0x43625950 (LWP 2474)): #0 0x00007f1ac122db77 in sched_yield () from /lib/libc.so.6 No symbol table info available. #1 0x00007f1ac2ade29d in __os_yield () from /usr/lib/libdb-4.7.so No symbol table info available. #2 0x00007f1ac29d8022 in __db_tas_mutex_lock () from /usr/lib/libdb-4.7.so No symbol table info available. #3 0x00007f1ac2a597a8 in __lock_get_internal () from /usr/lib/libdb-4.7.so No symbol table info available. #4 0x00007f1ac2a5a6d5 in __lock_get_pp () from /usr/lib/libdb-4.7.so No symbol table info available. #5 0x00007f1abe04fbb4 in bdb_cache_entry_db_lock (bdb=0x1734cc0, txn=<value optimized out>, ei=0x7f1a154104e0, rw=0, tryOnly=0, lock=0x43624b70) at /tmp/buildd/openldap-2.4.15/servers/slapd/back-bdb/cache.c:221 rc = <value optimized out> lockobj = {data = 0x7f1a154104e8, size = 9, ulen = 0, dlen = 33991392, doff = 0, app_data = 0x43624b98, flags = 504343032} #6 0x00007f1abe051189 in bdb_cache_find_id (op=0x7f1a1e0fa9c0, tid=0x1d59c50, id=52016, eip=0x43624b10, flag=0, lock=0x43624b70) at /tmp/buildd/openldap-2.4.15/servers/slapd/back-bdb/cache.c:916 bdb = (struct bdb_info *) 0x1734cc0 ep = (Entry *) 0x0 rc = -30988 load = 0 ei = {bei_parent = 0x0, bei_id = 52016, bei_lockpad = 0, bei_state = 0, bei_finders = 0, bei_nrdn = {bv_len = 0, bv_val = 0x0}, bei_e = 0x0, bei_kids = 0x0, bei_kids_mutex = {__data = {__lock = 0, __count = 0, __owner = 0, __nusers = 0, __kind = 0, __spins = 0, __list = {__prev = 0x0, __next = 0x0}}, __size = '\0' <repeats 39 times>, __align = 0}, bei_lrunext = 0x0, bei_lruprev = 0x0} #7 0x00007f1abe04a648 in bdb_dn2entry (op=0x7f1a1e0fa9c0, tid=0x1d59c50, dn=<value optimized out>, e=0x43624b98, matched=1, lock=0x43624b70) at /tmp/buildd/openldap-2.4.15/servers/slapd/back-bdb/dn2entry.c:67 ei = (EntryInfo *) 0x7f1a154104e0 rc = 0 rc2 = <value optimized out> #8 0x00007f1abe03bbd5 in bdb_bind (op=0x7f1a1e0fa9c0, rs=0x43624ca0) at /tmp/buildd/openldap-2.4.15/servers/slapd/back-bdb/bind.c:70 e = <value optimized out> a = <value optimized out> ei = <value optimized out> password = (AttributeDescription *) 0x169efd0 rtxn = (DB_TXN *) 0x1d59c50 lock = {off = 0, ndx = 360, gen = 0, mode = DB_LOCK_NG} __PRETTY_FUNCTION__ = "bdb_bind" #9 0x000000000044e840 in fe_op_bind (op=0x7f1a1e0fa9c0, rs=0x43624ca0) at /tmp/buildd/openldap-2.4.15/servers/slapd/bind.c:383 bd = (BackendDB *) 0x72f7a0 #10 0x000000000044f1f4 in do_bind (op=0x7f1a1e0fa9c0, rs=0x43624ca0) at /tmp/buildd/openldap-2.4.15/servers/slapd/bind.c:205 ber = (BerElement *) 0x7f19e78f89a0 version = 3 method = 128 mech = {bv_len = 0, bv_val = 0x0} dn = {bv_len = 69, bv_val = 0x7f19e5d7ad2a "uid=user1,dc=example,dc=net,ou=example,ou=services,o=example"} tag = <value optimized out> be = <value optimized out> #11 0x0000000000432376 in connection_operation (ctx=0x43624e00, arg_v=<value optimized out>) at /tmp/buildd/openldap-2.4.15/servers/slapd/connection.c:1097 rc = <value optimized out> op = (Operation *) 0x7f1a1e0fa9c0 rs = {sr_type = REP_RESULT, sr_tag = 0, sr_msgid = 0, sr_err = 0, sr_matched = 0x0, sr_text = 0x0, sr_ref = 0x0, sr_ctrls = 0x0, sr_un = {sru_sasl = {r_sasldata = 0x0}, sru_extended = {r_rspoid = 0x0, r_rspdata = 0x0}, sru_search = {r_entry = 0x0, r_attr_flags = 0, r_operational_attrs = 0x0, r_attrs = 0x0, r_nentries = 0, r_v2ref = 0x0}}, sr_flags = 0} tag = 96 opidx = SLAP_OP_BIND conn = (Connection *) 0x7f1abd86ea90 memctx = (void *) 0x17b3160 memctx_null = (void *) 0x0 __PRETTY_FUNCTION__ = "connection_operation" #12 0x0000000000432e6d in connection_read_thread (ctx=0x43624e00, argv=<value optimized out>) at /tmp/buildd/openldap-2.4.15/servers/slapd/connection.c:1223 s = 2686 #13 0x00007f1ac2f4014a in ldap_int_thread_pool_wrapper (xpool=<value optimized out>) at /tmp/buildd/openldap-2.4.15/libraries/libldap_r/tpool.c:663 pool = (struct ldap_int_thread_pool_s *) 0x16a1810 task = (ldap_int_thread_task_t *) 0x7f1a14f84980 work_list = <value optimized out> ctx = {ltu_id = 1130518864, ltu_key = {{ltk_key = 0x485650, ltk_data = 0x17b3160, ltk_free = 0x485150 <slap_sl_mem_destroy>}, {ltk_key = 0x17acca0, ltk_data = 0x17b5a60, ltk_free = 0x7f1abe04f900 <bdb_reader_free>}, {ltk_key = 0x431480, ltk_data = 0x1d59b40, ltk_free = 0x431550 <conn_counter_destroy>}, {ltk_key = 0x17b05b0, ltk_data = 0x1d59c50, ltk_free = 0x7f1abe04f900 <bdb_reader_free>}, {ltk_key = 0x445410, ltk_data = 0x7f19f1f70920, ltk_free = 0x4451e0 <slap_op_q_destroy>}, {ltk_key = 0x7f1abe0425a0, ltk_data = 0x7f1a21309010, ltk_free = 0x7f1abe042660 <search_stack_free>}, {ltk_key = 0x0, ltk_data = 0x7f19d16b6840, ltk_free = 0}, {ltk_key = 0x0, ltk_data = 0x0, ltk_free = 0} <repeats 21 times>, {ltk_key = 0x0, ltk_data = 0x0, ltk_free = 0x2}, {ltk_key = 0x0, ltk_data = 0x7f1ac14d054f, ltk_free = 0}, {ltk_key = 0x0, ltk_data = 0x0, ltk_free = 0}, {ltk_key = 0x0, ltk_data = 0x0, ltk_free = 0}}} kctx = <value optimized out> keyslot = 14 hash = <value optimized out> __PRETTY_FUNCTION__ = "ldap_int_thread_pool_wrapper" #14 0x00007f1ac14cffc7 in start_thread () from /lib/libpthread.so.0 No symbol table info available. #15 0x00007f1ac12455ad in clone () from /lib/libc.so.6 No symbol table info available. #16 0x0000000000000000 in ?? () No symbol table info available.
Thread 4 (Thread 0x42e24950 (LWP 2473)): #0 0x00007f1ac14d3d29 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0 No symbol table info available. #1 0x00007f1ac2f4019d in ldap_int_thread_pool_wrapper (xpool=<value optimized out>) at /tmp/buildd/openldap-2.4.15/libraries/libldap_r/tpool.c:654 pool = (struct ldap_int_thread_pool_s *) 0x16a1810 task = (ldap_int_thread_task_t *) 0x0 work_list = (ldap_int_tpool_plist_t *) 0x1382505 ctx = {ltu_id = 1122126160, ltu_key = {{ltk_key = 0x485650, ltk_data = 0x17b3e90, ltk_free = 0x485150 <slap_sl_mem_destroy>}, {ltk_key = 0x17b05b0, ltk_data = 0x17b6010, ltk_free = 0x7f1abe04f900 <bdb_reader_free>}, {ltk_key = 0x431480, ltk_data = 0x1d5b390, ltk_free = 0x431550 <conn_counter_destroy>}, {ltk_key = 0x445410, ltk_data = 0x7f19f563f010, ltk_free = 0x4451e0 <slap_op_q_destroy>}, {ltk_key = 0x7f1abe0425a0, ltk_data = 0x7f1a1afff010, ltk_free = 0x7f1abe042660 <search_stack_free>}, {ltk_key = 0x17acca0, ltk_data = 0x7f1a08412580, ltk_free = 0x7f1abe04f900 <bdb_reader_free>}, {ltk_key = 0x0, ltk_data = 0xdca0a00, ltk_free = 0}, {ltk_key = 0x0, ltk_data = 0x0, ltk_free = 0} <repeats 21 times>, {ltk_key = 0x0, ltk_data = 0x0, ltk_free = 0x2}, {ltk_key = 0x0, ltk_data = 0x7f1ac14d054f, ltk_free = 0}, {ltk_key = 0x0, ltk_data = 0x0, ltk_free = 0}, {ltk_key = 0x0, ltk_data = 0x0, ltk_free = 0}}} kctx = <value optimized out> keyslot = 1021 hash = <value optimized out> __PRETTY_FUNCTION__ = "ldap_int_thread_pool_wrapper" #2 0x00007f1ac14cffc7 in start_thread () from /lib/libpthread.so.0 No symbol table info available. #3 0x00007f1ac12455ad in clone () from /lib/libc.so.6 No symbol table info available. #4 0x0000000000000000 in ?? () No symbol table info available.
Thread 3 (Thread 0x42623950 (LWP 2472)): #0 0x00007f1ac14d3d29 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0 No symbol table info available. #1 0x00007f1ac2f4019d in ldap_int_thread_pool_wrapper (xpool=<value optimized out>) at /tmp/buildd/openldap-2.4.15/libraries/libldap_r/tpool.c:654 pool = (struct ldap_int_thread_pool_s *) 0x16a1810 task = (ldap_int_thread_task_t *) 0x0 work_list = (ldap_int_tpool_plist_t *) 0x1382503 ctx = {ltu_id = 1113733456, ltu_key = {{ltk_key = 0x485650, ltk_data = 0x17b5290, ltk_free = 0x485150 <slap_sl_mem_destroy>}, {ltk_key = 0x17acca0, ltk_data = 0x1d53710, ltk_free = 0x7f1abe04f900 <bdb_reader_free>}, {ltk_key = 0x7f1abe0425a0, ltk_data = 0x7f1a2330b010, ltk_free = 0x7f1abe042660 <search_stack_free>}, {ltk_key = 0x431480, ltk_data = 0x7f1a14172200, ltk_free = 0x431550 <conn_counter_destroy>}, {ltk_key = 0x17b05b0, ltk_data = 0x7f1a141c7e40, ltk_free = 0x7f1abe04f900 <bdb_reader_free>}, {ltk_key = 0x445410, ltk_data = 0x7f19f6009e80, ltk_free = 0x4451e0 <slap_op_q_destroy>}, {ltk_key = 0x0, ltk_data = 0x7f19dca7e160, ltk_free = 0}, {ltk_key = 0x0, ltk_data = 0x0, ltk_free = 0} <repeats 25 times>}} kctx = <value optimized out> keyslot = 877 hash = <value optimized out> __PRETTY_FUNCTION__ = "ldap_int_thread_pool_wrapper" #2 0x00007f1ac14cffc7 in start_thread () from /lib/libpthread.so.0 No symbol table info available. #3 0x00007f1ac12455ad in clone () from /lib/libc.so.6 No symbol table info available. #4 0x0000000000000000 in ?? () No symbol table info available.
Thread 2 (Thread 0x413d5950 (LWP 2471)): #0 0x00007f1ac1245b78 in epoll_wait () from /lib/libc.so.6 No symbol table info available. #1 0x000000000042f540 in slapd_daemon_task (ptr=<value optimized out>) at /tmp/buildd/openldap-2.4.15/servers/slapd/daemon.c:2291 revents = (struct epoll_event *) 0x7f1ac332e010 tv = {tv_sec = 113, tv_usec = 0} rtask = <value optimized out> ns = <value optimized out> at = 0 now = 40 tvp = (struct timeval *) 0x413d5100 cat = {tv_sec = 1236190602, tv_usec = 0} l = <value optimized out> last_idle_check = 0 ebadf = 0 #2 0x00007f1ac14cffc7 in start_thread () from /lib/libpthread.so.0 No symbol table info available. #3 0x00007f1ac12455ad in clone () from /lib/libc.so.6 No symbol table info available. #4 0x0000000000000000 in ?? () No symbol table info available.
Thread 1 (Thread 0x7f1ac33876e0 (LWP 2258)): #0 0x00007f1ac14d0715 in pthread_join () from /lib/libpthread.so.0 No symbol table info available. #1 0x000000000042c8ec in slapd_daemon () at /tmp/buildd/openldap-2.4.15/servers/slapd/daemon.c:2665 listener_tid = 1094539600 rc = 0 #2 0x000000000041a8e7 in main (argc=9, argv=0x7fffcb396bc8) at /tmp/buildd/openldap-2.4.15/servers/slapd/main.c:948 i = <value optimized out> no_detach = 0 rc = 0 urls = 0x163f010 "ldap:/// ldaps:///"
--On Wednesday, March 04, 2009 1:55 PM -0500 John Morrissey jwm@horde.net wrote:
I upgraded one of our consumers to 2.4.15 recently, from RE24 as of 20090113. Its configuration stayed the same, save for bumping the BDB cache size from 256MB to 2GB.
After a few hours of uptime, slapd suddenly begins consuming enormous amounts of CPU (a three- to four-fold increase over less than a few minutes, and is sustained until slapd is restarted).
A backtrace (below) shows many threads waiting on a mutex in bdb_cache_*().
This is with BDB 4.7 (with all patches applied) on Debian lenny. 'db_stat -c' output is below (and looks sane), in case that's useful. Thinking thread contention, I bumped the worker thread count (slapd.conf threads directive) down from 32 to 8, which has made no difference.
Interseting. I've seen this sort of CPU usage issue with OpenLDAP 2.3/BDB4.2.52 on Ubuntu 8. Do you know how BDB 4.7 was built? I.e., specifically, did it have the:
--enable-posixmutexes --with-mutex=POSIX/pthreads
options enabled?
Also, are you using a shared memory key? I've found that has a significant (positive) impact with BDB 4.7 on linux boxes.
--Quanah
--
Quanah Gibson-Mount Principal Software Engineer Zimbra, Inc -------------------- Zimbra :: the leader in open source messaging and collaboration
On Wed, Mar 04, 2009 at 12:13:49PM -0800, Quanah Gibson-Mount wrote:
--On Wednesday, March 04, 2009 1:55 PM -0500 John Morrissey jwm@horde.net wrote:
After a few hours of uptime, slapd suddenly begins consuming enormous amounts of CPU (a three- to four-fold increase over less than a few minutes, and is sustained until slapd is restarted).
Interseting. I've seen this sort of CPU usage issue with OpenLDAP 2.3/BDB4.2.52 on Ubuntu 8. Do you know how BDB 4.7 was built? I.e., specifically, did it have the:
--enable-posixmutexes --with-mutex=POSIX/pthreads
options enabled?
It's the Debian packaging for BDB 4.7 (only available in sid, but it's a simple rebuild to backport to lenny). They do *not* appear to pass any mutex-related options to ./configure.
Also, are you using a shared memory key? I've found that has a significant (positive) impact with BDB 4.7 on linux boxes.
We are not. Thanks, I'll give that a try.
john
--On Wednesday, March 04, 2009 3:30 PM -0500 John Morrissey jwm@horde.net wrote:
On Wed, Mar 04, 2009 at 12:13:49PM -0800, Quanah Gibson-Mount wrote:
--On Wednesday, March 04, 2009 1:55 PM -0500 John Morrissey jwm@horde.net wrote:
After a few hours of uptime, slapd suddenly begins consuming enormous amounts of CPU (a three- to four-fold increase over less than a few minutes, and is sustained until slapd is restarted).
Interseting. I've seen this sort of CPU usage issue with OpenLDAP 2.3/BDB4.2.52 on Ubuntu 8. Do you know how BDB 4.7 was built? I.e., specifically, did it have the:
--enable-posixmutexes --with-mutex=POSIX/pthreads
options enabled?
It's the Debian packaging for BDB 4.7 (only available in sid, but it's a simple rebuild to backport to lenny). They do *not* appear to pass any mutex-related options to ./configure.
Yeah, that's a major problem in using Debian's builds of BDB. You want those options sent to configure when using BDB on Linux NPTL systems.
Also, are you using a shared memory key? I've found that has a significant (positive) impact with BDB 4.7 on linux boxes.
We are not. Thanks, I'll give that a try.
No prob. :) You may have to adjust some settings in sysctl to do it. ;)
--Quanah
--
Quanah Gibson-Mount Principal Software Engineer Zimbra, Inc -------------------- Zimbra :: the leader in open source messaging and collaboration
On Wed, Mar 04, 2009 at 12:32:53PM -0800, Quanah Gibson-Mount wrote:
--On Wednesday, March 04, 2009 3:30 PM -0500 John Morrissey jwm@horde.net wrote:
On Wed, Mar 04, 2009 at 12:13:49PM -0800, Quanah Gibson-Mount wrote:
Interseting. I've seen this sort of CPU usage issue with OpenLDAP 2.3/BDB4.2.52 on Ubuntu 8. Do you know how BDB 4.7 was built? I.e., specifically, did it have the:
--enable-posixmutexes --with-mutex=POSIX/pthreads
options enabled?
It's the Debian packaging for BDB 4.7 (only available in sid, but it's a simple rebuild to backport to lenny). They do *not* appear to pass any mutex-related options to ./configure.
Yeah, that's a major problem in using Debian's builds of BDB. You want those options sent to configure when using BDB on Linux NPTL systems.
FWIW, I've filed http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=520926 against the Debian BDB 4.7 packaging.
john
--On Monday, March 23, 2009 2:04 PM -0400 John Morrissey jwm@horde.net wrote:
On Wed, Mar 04, 2009 at 12:32:53PM -0800, Quanah Gibson-Mount wrote:
--On Wednesday, March 04, 2009 3:30 PM -0500 John Morrissey jwm@horde.net wrote:
On Wed, Mar 04, 2009 at 12:13:49PM -0800, Quanah Gibson-Mount wrote:
Interseting. I've seen this sort of CPU usage issue with OpenLDAP 2.3/BDB4.2.52 on Ubuntu 8. Do you know how BDB 4.7 was built? I.e., specifically, did it have the:
--enable-posixmutexes --with-mutex=POSIX/pthreads
options enabled?
It's the Debian packaging for BDB 4.7 (only available in sid, but it's a simple rebuild to backport to lenny). They do *not* appear to pass any mutex-related options to ./configure.
Yeah, that's a major problem in using Debian's builds of BDB. You want those options sent to configure when using BDB on Linux NPTL systems.
FWIW, I've filed http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=520926 against the Debian BDB 4.7 packaging.
Thanks. I've send in a comment that they can review the discussion about this in http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=421946 as well.
--Quanah
--
Quanah Gibson-Mount Principal Software Engineer Zimbra, Inc -------------------- Zimbra :: the leader in open source messaging and collaboration
Hi Quanah,
I have some question about Debian builds of openldap. Maybe you can answer any.
--On Wednesday, March 04, 2009 3:30 PM -0500 John Morrissey jwm@horde.net
wrote:
On Wed, Mar 04, 2009 at 12:13:49PM -0800, Quanah Gibson-Mount wrote:
--On Wednesday, March 04, 2009 1:55 PM -0500 John Morrissey
jwm@horde.net wrote:
After a few hours of uptime, slapd suddenly begins consuming enormous amounts of CPU (a three- to four-fold increase over less than a few minutes, and is sustained until slapd is restarted).
Interseting. I've seen this sort of CPU usage issue with OpenLDAP 2.3/BDB4.2.52 on Ubuntu 8. Do you know how BDB 4.7 was built? I.e., specifically, did it have the:
--enable-posixmutexes --with-mutex=POSIX/pthreads
options enabled?
It's the Debian packaging for BDB 4.7 (only available in sid, but it's a simple rebuild to backport to lenny). They do *not* appear to pass any mutex-related options to ./configure.
Yeah, that's a major problem in using Debian's builds of BDB. You want those options sent to configure when using BDB on Linux NPTL systems.
I try to reconfigure and backport the bdb4.7 package to lenny. The above mentioned mutex settings are now added.
The config statement in debian/rules is now:
CONFIGURE_SWITCHES = --prefix=/usr \ --mandir=$${prefix}/share/man \ --localstatedir=/var \ --sysconfdir=/etc \ --libexecdir=/usr/lib \ --enable-cxx \ --enable-compat185 \ --enable-rpc \ --enable-tcl \ --with-tcl=/usr/lib/tcl8.5 \ --enable-test \ --enable-posixmutexes \ --with-mutex=POSIX/pthreads
The build was successfull. Some warnings in the java-packages about unused variables. I believe that doesn't matter.
Also, are you using a shared memory key?
How can I realize that?
I've found that has a significant (positive) impact with BDB 4.7 on linux boxes.
We are not. Thanks, I'll give that a try.
No prob. :) You may have to adjust some settings in sysctl to do it. ;)
Can you tell me, what I should adjust in sysctl.
I have seen that the Debian package maintainers have modified the schema and ldif files of openldap. So, when I want to rebuild openldap, I suggest that I must flag the build as non-free. At least in Debian terminology.
They use gnutls as ssl package. I've found some bad mails about gnutls code quality. I believe that was in spring 2008. Should I build with openssl instead ?
--Quanah
--
Quanah Gibson-Mount Principal Software Engineer Zimbra, Inc
Zimbra :: the leader in open source messaging and collaboration
--On Friday, March 27, 2009 11:17 PM +0100 Harry Jede walk2sun@arcor.de wrote:
Hi Quanah,
I have some question about Debian builds of openldap. Maybe you can answer any.
Also, are you using a shared memory key?
How can I realize that? Can you tell me, what I should adjust in sysctl.
http://wiki.zimbra.com/index.php?title=Performance_Tuning_Guidelines_for_Large_Deployments_6.0
However, using a shared memory key with BDB is only necessary if your cachesize in DB_CONFIG is 8GB or greater.
They use gnutls as ssl package. I've found some bad mails about gnutls code quality. I believe that was in spring 2008. Should I build with openssl instead ?
Entirely up to you.
--Quanah
--
Quanah Gibson-Mount Principal Software Engineer Zimbra, Inc -------------------- Zimbra :: the leader in open source messaging and collaboration
On Wed, Mar 4, 2009 at 8:30 PM, John Morrissey jwm@horde.net wrote:
Interseting. I've seen this sort of CPU usage issue with OpenLDAP 2.3/BDB4.2.52 on Ubuntu 8. Do you know how BDB 4.7 was built? I.e., specifically, did it have the:
Hello,
Sorry to hijack this thread but is bdb 4.7 now recommended for OpenLDAP 2.4 ? Reason I am asking is that I finished building a new FreeBSD server which uses BDB 4.6 as a backend and it got a core dump when using ldapadd on about 500+ entries.
Cheers, Steph
--On Wednesday, March 04, 2009 11:02 PM +0000 FRLinux frlinux@gmail.com wrote:
On Wed, Mar 4, 2009 at 8:30 PM, John Morrissey jwm@horde.net wrote:
Interseting. I've seen this sort of CPU usage issue with OpenLDAP 2.3/BDB4.2.52 on Ubuntu 8. Do you know how BDB 4.7 was built? I.e., specifically, did it have the:
Hello,
Sorry to hijack this thread but is bdb 4.7 now recommended for OpenLDAP 2.4 ? Reason I am asking is that I finished building a new FreeBSD server which uses BDB 4.6 as a backend and it got a core dump when using ldapadd on about 500+ entries.
BDB 4.4 and later are supported. If you are getting core dumps, you should file an ITS with the backtrace, assuming you're using the latest OpenLDAP 2.4.
--Quanah
--
Quanah Gibson-Mount Principal Software Engineer Zimbra, Inc -------------------- Zimbra :: the leader in open source messaging and collaboration
FRLinux wrote:
On Wed, Mar 4, 2009 at 8:30 PM, John Morrissey jwm@horde.net wrote:
Interseting. I've seen this sort of CPU usage issue with OpenLDAP 2.3/BDB4.2.52 on Ubuntu 8. Do you know how BDB 4.7 was built? I.e., specifically, did it have the:
Hello,
Sorry to hijack this thread but is bdb 4.7 now recommended for OpenLDAP 2.4 ? Reason I am asking is that I finished building a new FreeBSD server which uses BDB 4.6 as a backend and it got a core dump when using ldapadd on about 500+ entries.
# pkg_info | grep openldap openldap-sasl-client-2.4.15_1 Open source LDAP client implementation with SASL2 support openldap-sasl-server-2.4.15 Open source LDAP server implementation
# ldd /usr/local/libexec/slapd | grep libdb libdb-4.6.so.0 => /usr/local/lib/libdb-4.6.so.0 (0x800abd000)
# uname -r 7.1-RELEASE
Slapadd'ed 10,000+ entries no problem.
I did have a weird problem with two replicas where the indexes were apparently screwed up immediately after priming them with slapadd. Any search on an indexed attr would return the same partial results across both slaves. Running slapindex fix the issue, but I'm still perplexed.
Russell Jackson wrote:
# pkg_info | grep openldap openldap-sasl-client-2.4.15_1 Open source LDAP client implementation with SASL2 support openldap-sasl-server-2.4.15 Open source LDAP server implementation
# ldd /usr/local/libexec/slapd | grep libdb libdb-4.6.so.0 => /usr/local/lib/libdb-4.6.so.0 (0x800abd000)
It seems you're using pre-built binaries. Are you?
Are you sure Berkeley-DB was built with all the relevant patches?
Take note of the links (number of patches) on this page and grab the patches relevant for your version of BDB: http://www.oracle.com/technology/software/products/berkeley-db/db/index.html
Ciao, Michael.
Michael Ströder wrote:
Russell Jackson wrote:
# pkg_info | grep openldap openldap-sasl-client-2.4.15_1 Open source LDAP client implementation with SASL2 support openldap-sasl-server-2.4.15 Open source LDAP server implementation
# ldd /usr/local/libexec/slapd | grep libdb libdb-4.6.so.0 => /usr/local/lib/libdb-4.6.so.0 (0x800abd000)
It seems you're using pre-built binaries. Are you?
Are you sure Berkeley-DB was built with all the relevant patches?
Take note of the links (number of patches) on this page and grab the patches relevant for your version of BDB: http://www.oracle.com/technology/software/products/berkeley-db/db/index.html
There may be a bit of misunderstanding. I was verifying with FRLinux that bdb 4.6 works fine with slapd 2.4.15 on FreeBSD. The part about the indexes may have just been something stupid I did without realizing it. I haven't had any trouble since.
But to answer your question. I'm not running pre-built binaries. The packages were built from source using the FreeBSD ports system.
# grep ^PATCHFILES /usr/ports/databases/db46/Makefile PATCHFILES= patch.4.6.21.1 patch.4.6.21.2 patch.4.6.21.3
So it has three of the four patches. I'm not sure how critical the fourth one is, but I suppose I should hit up the port maintainer about the missing patch.
On Thu, Mar 5, 2009 at 12:31 AM, Russell Jackson raj@csub.edu wrote:
openldap-sasl-client-2.4.15_1 Open source LDAP client implementation with SASL2 support openldap-sasl-server-2.4.15 Open source LDAP server implementation
openldap-sasl-client-2.4.14 Open source LDAP client implementation with SASL2 support openldap-sasl-server-2.4.14_1 Open source LDAP server implementation
libdb-4.6.so.0 => /usr/local/lib/libdb-4.6.so.0 (0x800abd000)
libdb-4.6.so.0 => /usr/local/lib/libdb-4.6.so.0 (0x281d8000)
# uname -r 7.1-RELEASE
7.1-RELEASE
I did have a weird problem with two replicas where the indexes were apparently screwed up immediately after priming them with slapadd. Any search on an indexed attr would return the same partial results across both slaves. Running slapindex fix the issue, but I'm still perplexed.
it core dumped but added all entries no problem, still unsure...
I'll be recompiling the system to -STABLE next week, then will upgrade the ports.
Cheers, Steph
FRLinux wrote:
On Thu, Mar 5, 2009 at 12:31 AM, Russell Jackson raj@csub.edu wrote:
openldap-sasl-client-2.4.15_1 Open source LDAP client implementation with SASL2 support openldap-sasl-server-2.4.15 Open source LDAP server implementation
openldap-sasl-client-2.4.14 Open source LDAP client implementation with SASL2 support openldap-sasl-server-2.4.14_1 Open source LDAP server implementation
libdb-4.6.so.0 => /usr/local/lib/libdb-4.6.so.0 (0x800abd000)
libdb-4.6.so.0 => /usr/local/lib/libdb-4.6.so.0 (0x281d8000)
# uname -r 7.1-RELEASE
7.1-RELEASE
I did have a weird problem with two replicas where the indexes were apparently screwed up immediately after priming them with slapadd. Any search on an indexed attr would return the same partial results across both slaves. Running slapindex fix the issue, but I'm still perplexed.
it core dumped but added all entries no problem, still unsure...
I'll be recompiling the system to -STABLE next week, then will upgrade the ports.
The FreeBSD STABLE branch isn't intended as an end-user resource. It is only "stable" in the sense that the developer ABI is stable (e.g. a binary compiled for 7-STABLE will link and run fine on any 7.x release); it is, however, still very much a _development_ branch. End users should stick to the official releases on production machines.
http://www.freebsd.org/doc/en/books/handbook/current-stable.html
On Thu, Mar 5, 2009 at 7:25 PM, Russell Jackson raj@csub.edu wrote:
The FreeBSD STABLE branch isn't intended as an end-user resource. It is only "stable" in the sense that the developer ABI is stable (e.g. a binary compiled for 7-STABLE will link and run fine on any 7.x release); it is, however, still very much a _development_ branch. End users should stick to the official releases on production machines.
Hello again,
I appreciate this but been running -STABLE on various servers from 4.x to the latter 7.x and never had problems with them.
Cheers, Steph
John Morrissey wrote:
I upgraded one of our consumers to 2.4.15 recently, from RE24 as of 20090113. Its configuration stayed the same, save for bumping the BDB cache size from 256MB to 2GB.
After a few hours of uptime, slapd suddenly begins consuming enormous amounts of CPU (a three- to four-fold increase over less than a few minutes, and is sustained until slapd is restarted).
A backtrace (below) shows many threads waiting on a mutex in bdb_cache_*().
This is with BDB 4.7 (with all patches applied) on Debian lenny. 'db_stat -c' output is below (and looks sane), in case that's useful. Thinking thread contention, I bumped the worker thread count (slapd.conf threads directive) down from 32 to 8, which has made no difference.
From the trace it looks similar to ITS#5860. The patches for this are in HEAD, not yet released.
On Wed, Mar 04, 2009 at 12:40:55PM -0800, Howard Chu wrote:
John Morrissey wrote:
A backtrace (below) shows many threads waiting on a mutex in bdb_cache_*().
From the trace it looks similar to ITS#5860. The patches for this are in HEAD, not yet released.
With an shm_key, slapd CPU consumption dropped noticably and has been running long enough to make the leak apparent.
Since this second-round fix for ITS#5860 has been merged into RE24, do you recommend running that, or should I cherry-pick 1.120.2.{21,22} into our local packaging?
thanks, john
John Morrissey wrote:
On Wed, Mar 04, 2009 at 12:40:55PM -0800, Howard Chu wrote:
John Morrissey wrote:
A backtrace (below) shows many threads waiting on a mutex in bdb_cache_*().
From the trace it looks similar to ITS#5860. The patches for this are in HEAD, not yet released.
With an shm_key, slapd CPU consumption dropped noticably and has been running long enough to make the leak apparent.
Since this second-round fix for ITS#5860 has been merged into RE24, do you recommend running that, or should I cherry-pick 1.120.2.{21,22} into our local packaging?
At this point I would just use RE24. Unless any new critical bugs show up in the next few days, it's very likely what will be 2.4.16.
openldap-software@openldap.org