HI!
I'm trying to run current RE24 with BDB 4.7.25p1. It hangs in test-001 and it hangs (probably when doing a bind). Is that combination really stable?
Ciao, Michael.
On Sat, 20 Sep 2008, Michael Ströder wrote:
I'm trying to run current RE24 with BDB 4.7.25p1. It hangs in test-001 and it hangs (probably when doing a bind). Is that combination really stable?
db-4.7.25 patched with
http://www.oracle.com/technology/products/berkeley-db/db/update/4.7.25/patch...
has been my platform for this round of RE24 testing. It completes test001 in my experience: I see the much-discussed test050 issue, and I filed ITS#5701 for the other situation I've seen.
Aaron Richton wrote:
On Sat, 20 Sep 2008, Michael Ströder wrote:
I'm trying to run current RE24 with BDB 4.7.25p1. It hangs in test-001 and it hangs (probably when doing a bind). Is that combination really stable?
db-4.7.25 patched with
http://www.oracle.com/technology/products/berkeley-db/db/update/4.7.25/patch...
Yes. That's what I meant with 4.7.25p1.
has been my platform for this round of RE24 testing. It completes test001 in my experience: I see the much-discussed test050 issue, and I filed ITS#5701 for the other situation I've seen.
If I compile on openSUSE with pre-installed 4.5.20 all works.
I tried to compile without SASL and Kerberos V support to exclude all issues concerning a libdb mix. Still no sucess.
Ciao, Michael.
--On Saturday, September 20, 2008 7:16 PM +0200 Michael Ströder michael@stroeder.com wrote:
Aaron Richton wrote:
On Sat, 20 Sep 2008, Michael Ströder wrote:
I'm trying to run current RE24 with BDB 4.7.25p1. It hangs in test-001 and it hangs (probably when doing a bind). Is that combination really stable?
It's passed all tests for me.
--Quanah
--
Quanah Gibson-Mount Principal Software Engineer Zimbra, Inc -------------------- Zimbra :: the leader in open source messaging and collaboration
Quanah Gibson-Mount wrote:
--On Saturday, September 20, 2008 7:16 PM +0200 Michael Ströder michael@stroeder.com wrote:
Aaron Richton wrote:
On Sat, 20 Sep 2008, Michael Ströder wrote:
I'm trying to run current RE24 with BDB 4.7.25p1. It hangs in test-001 and it hangs (probably when doing a bind). Is that combination really stable?
It's passed all tests for me.
It hangs on my system. Building with a separate installation of BDB 4.6.21p3 with the very same build script simply works.
Ciao, Michael.
--On Saturday, September 20, 2008 8:01 PM +0200 Michael Ströder michael@stroeder.com wrote:
It hangs on my system. Building with a separate installation of BDB 4.6.21p3 with the very same build script simply works.
I suggest gathering some debug info then. AFAIK, no one else is seeing the issue.
--Quanah
--
Quanah Gibson-Mount Principal Software Engineer Zimbra, Inc -------------------- Zimbra :: the leader in open source messaging and collaboration
Michael Ströder michael@stroeder.com writes:
Aaron Richton wrote:
On Sat, 20 Sep 2008, Michael Ströder wrote:
I'm trying to run current RE24 with BDB 4.7.25p1. It hangs in test-001 and it hangs (probably when doing a bind). Is that combination really stable?
db-4.7.25 patched with
http://www.oracle.com/technology/products/berkeley-db/db/update/4.7.25/patch...
Yes. That's what I meant with 4.7.25p1.
has been my platform for this round of RE24 testing. It completes test001 in my experience: I see the much-discussed test050 issue, and I filed ITS#5701 for the other situation I've seen.
If I compile on openSUSE with pre-installed 4.5.20 all works.
I tried to compile without SASL and Kerberos V support to exclude all issues concerning a libdb mix. Still no sucess.
I can confirm this, at least for openSUSE-11.0. BerkelyDB.4.7 patched, test001-slapadd hangs, unfortunately no logfiles available.
Starting test001-slapadd ...
running defines.sh Running slapadd to build slapd database... ^Cmake: *** [bdb-yes] Unterbrechung
servers/slapd/.libs> ldd lt-slapd linux-vdso.so.1 => (0x00007fff17dfe000) libldap_r-2-devel.so.0 => /work/ldap-src/libraries/libldap_r/.libs/libldap_r-2-devel.so.0 (0x00007fd20f8ad000) liblber-2-devel.so.0 => /work/ldap-src/libraries/liblber/.libs/liblber-2-devel.so.0 (0x00007fd20f69b000) libltdl.so.3 => /usr/lib64/libltdl.so.3 (0x00007fd20f493000) libdb-4.7.so => /usr/local/BerkeleyDB.4.7/lib/libdb-4.7.so (0x00007fd20f0c5000) libodbc.so.1 => /usr/lib64/libodbc.so.1 (0x00007fd20ee59000) libpthread.so.0 => /lib64/libpthread.so.0 (0x00007fd20ec3d000) libsasl2.so.2 => /usr/lib64/libsasl2.so.2 (0x00007fd20ea22000) libdl.so.2 => /lib64/libdl.so.2 (0x00007fd20e81e000) libssl.so.0.9.8 => /usr/lib64/libssl.so.0.9.8 (0x00007fd20e5d0000) libcrypto.so.0.9.8 => /usr/lib64/libcrypto.so.0.9.8 (0x00007fd20e24f000) libresolv.so.2 => /lib64/libresolv.so.2 (0x00007fd20e03a000) libc.so.6 => /lib64/libc.so.6 (0x00007fd20dce1000) /lib64/ld-linux-x86-64.so.2 (0x00007fd20fb07000) libz.so.1 => /lib64/libz.so.1 (0x00007fd20dacb000)
-Dieter
--On Saturday, September 20, 2008 10:23 PM +0200 Dieter Kluenter dieter@dkluenter.de wrote:
Starting test001-slapadd ...
running defines.sh Running slapadd to build slapd database... ^Cmake: *** [bdb-yes] Unterbrechung
What flags were used to build BDB 4.7?
What about a gdb backtrace of the hung process?
--Quanah
--
Quanah Gibson-Mount Principal Software Engineer Zimbra, Inc -------------------- Zimbra :: the leader in open source messaging and collaboration
Quanah Gibson-Mount wrote:
What flags were used to build BDB 4.7?
See my build script as attachment.
What about a gdb backtrace of the hung process?
See attachment bt_full.txt. I hope I've grabbed all the lines correctly.
I've added -d in tests/scripts/test001-slapadd (see debug output in attachment). It always hangs adding entry ou=Alumni Association,ou=People,dc=example,dc=com.
Ciao, Michael.
(gdb) bt full #0 0xffffe430 in __kernel_vsyscall () No symbol table info available. #1 0xb7df1c15 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0 No symbol table info available. #2 0xb7ea5eb6 in __db_pthread_mutex_lock () from /opt/bdb-4.7/lib/libdb-4.7.so No locals. #3 0xb7ea5947 in __db_tas_mutex_lock () from /opt/bdb-4.7/lib/libdb-4.7.so No locals. #4 0xb7f5736e in __lock_getobj () from /opt/bdb-4.7/lib/libdb-4.7.so No locals. #5 0xb7f54510 in __lock_get_internal () from /opt/bdb-4.7/lib/libdb-4.7.so No locals. #6 0xb7f53d5d in __lock_get_api () from /opt/bdb-4.7/lib/libdb-4.7.so No locals. #7 0xb7f53bb0 in __lock_get_pp () from /opt/bdb-4.7/lib/libdb-4.7.so No locals. #8 0x081419e4 in bdb_dn2id_lock (bdb=0x8308de0, dn=0xbf9bc490, rw=0, txn=0x83315b0, lock=0xbf9bc46c) at dn2id.c:47 rc = 0 lockobj = {data = 0x83317e8, size = 49, ulen = 0, dlen = 3214656424, doff = 0, app_data = 0x8323190, flags = 3087384564} db_rw = 1 #9 0x08142768 in bdb_dn2id (op=0xbf9bc6fc, dn=0xbf9bc490, ei=0xbf9bc480, txn=0x83315b0, lock=0xbf9bc46c) at dn2id.c:307 bdb = (struct bdb_info *) 0x8308de0 db = (DB *) 0x8324ab0 cursor = (DBC *) 0x8325040 rc = 0 key = {data = 0x8330650, size = 51, ulen = 0, dlen = 0, doff = 0, app_data = 0x0, flags = 0} data = {data = 0xbf9bc3e0, size = 0, ulen = 4, dlen = 0, doff = 0, app_data = 0x0, flags = 256} nid = 0 #10 0x0813c0c7 in bdb_cache_find_ndn (op=0xbf9bc6fc, txn=0x83315b0, ndn=0xbf9bc564, res=0xbf9bc550) at cache.c:451 lock = {off = 0, ndx = 492, gen = 9, mode = DB_LOCK_NG} len = 21 bdb = (struct bdb_info *) 0x8308de0 ei = {bei_parent = 0x8331708, bei_id = 2, bei_lockpad = 1, bei_state = 0, bei_finders = 137565636, bei_nrdn = { bv_len = 49, bv_val = 0x83317e8 "ou=alumni association,ou=people,dc=example,dc=com"}, bei_e = 0x188, bei_kids = 0xffffffd5, bei_kids_mutex = {__data = {__lock = 137565616, __count = 3077857920, __owner = 888, __kind = -1207890183, __nusers = 3077857920, {__spins = 137506296, __list = {__next = 0x8322df8}}}, __size = "\ufffd\0253\b\200bt\ufffdx\003\000\000\ufffd\016\001\ufffd\200bt\ufffd\ufffd-2\b", __align = 137565616}, bei_lrunext = 0x8323550, bei_lruprev = 0xb77460c0} eip = (EntryInfo *) 0x8331708 ei2 = (EntryInfo *) 0x0 rc = 0 ptr = 0x83317e8 "ou=alumni association,ou=people,dc=example,dc=com" #11 0x080fa9d7 in bdb_tool_next_id (op=0xbf9bc6fc, tid=0x83315b0, e=0x83253e4, text=0xbf9bcb38, hole=0) at tools.c:344 dn = {bv_len = 49, bv_val = 0x83305c8 "ou=Alumni Association,ou=People,dc=example,dc=com"} ndn = {bv_len = 49, bv_val = 0x83317e8 "ou=alumni association,ou=people,dc=example,dc=com"} pdn = {bv_len = 0, bv_val = 0x0} npdn = {bv_len = 3, bv_val = 0x0} ei = (EntryInfo *) 0x0 eidummy = {bei_parent = 0xd, bei_id = 3082768704, bei_lockpad = 5552, bei_state = 2099, bei_finders = 137506296, bei_nrdn = {bv_len = 3077890240, bv_val = 0xb7b2312e "\201\ufffd\ufffd\016\r"}, bei_e = 0xb7746280, bei_kids = 0x0, bei_kids_mutex = {__data = {__lock = -1207652364, __count = 136227632, __owner = -1080310392, __kind = -1207845700, __nusers = 137507216, {__spins = 0, __list = {__next = 0x0}}}, __size = "\ufffd\ufffd\004\ufffd0\ufffd\036\b\210\ufffd\233\ufffd\ufffd\ufffd\001\ufffd\22012\b\000\000\000", __align = -1207652364}, bei_lrunext = 0x0, bei_lruprev = 0xbf9bc7d4} rc = 137507216 #12 0x080fb46f in bdb_tool_entry_put (be=0x8308ce0, e=0x83253e4, text=0xbf9bcb38) at tools.c:520 rc = 0 bdb = (struct bdb_info *) 0x8308de0 tid = (DB_TXN *) 0x83315b0 op = {o_hdr = 0xbf9bc5d4, o_tag = 0, o_time = 0, o_tincr = 0, o_bd = 0x8308ce0, o_req_dn = {bv_len = 0, bv_val = 0x0}, o_req_ndn = {bv_len = 0, bv_val = 0x0}, o_request = {oq_add = {rs_modlist = 0x0, rs_e = 0x0}, oq_bind = {rb_method = 0, rb_cred = {bv_len = 0, bv_val = 0x0}, rb_edn = {bv_len = 0, bv_val = 0x0}, rb_ssf = 0, rb_mech = {bv_len = 0, bv_val = 0x0}}, oq_compare = {rs_ava = 0x0}, oq_modify = {rs_mods = {rs_modlist = 0x0, rs_no_opattrs = 0 '\0'}, rs_increment = 0}, oq_modrdn = {rs_mods = {rs_modlist = 0x0, rs_no_opattrs = 0 '\0'}, rs_deleteoldrdn = 0, rs_newrdn = {bv_len = 0, bv_val = 0x0}, rs_nnewrdn = {bv_len = 0, bv_val = 0x0}, rs_newSup = 0x0, rs_nnewSup = 0x0}, oq_search = {rs_scope = 0, rs_deref = 0, rs_slimit = 0, rs_tlimit = 0, rs_limit = 0x0, rs_attrsonly = 0, rs_attrs = 0x0, rs_filter = 0x0, rs_filterstr = {bv_len = 0, bv_val = 0x0}}, oq_abandon = {rs_msgid = 0}, oq_cancel = {rs_msgid = 0}, oq_extended = {rs_reqoid = {bv_len = 0, bv_val = 0x0}, rs_flags = 0, rs_reqdata = 0x0}, oq_pwdexop = {rs_extended = {rs_reqoid = {bv_len = 0, bv_val = 0x0}, rs_flags = 0, rs_reqdata = 0x0}, rs_old = {bv_len = 0, bv_val = 0x0}, rs_new = {bv_len = 0, bv_val = 0x0}, rs_mods = 0x0, rs_modtail = 0x0}}, o_abandon = 0, o_cancel = 0, o_groups = 0x0, o_do_not_cache = 0 '\0', o_is_auth_check = 0 '\0', o_acl_priv = ACL_NONE, o_nocaching = 0 '\0', o_delete_glue_parent = 0 '\0', o_no_schema_check = 0 '\0', o_no_subordinate_glue = 0 '\0', o_ctrlflag = '\0' <repeats 31 times>, o_controls = 0x0, o_authz = {sai_method = 0, sai_mech = {bv_len = 0, bv_val = 0x0}, sai_dn = {bv_len = 0, bv_val = 0x0}, sai_ndn = {bv_len = 0, bv_val = 0x0}, sai_ssf = 0, sai_transport_ssf = 0, sai_tls_ssf = 0, sai_sasl_ssf = 0}, o_ber = 0x0, o_res_ber = 0x0, o_callback = 0x0, o_ctrls = 0x0, o_csn = {bv_len = 0, bv_val = 0x0}, o_private = 0x0, o_extra = {slh_first = 0x0}, o_next = {stqe_next = 0x0}} ohdr = {oh_opid = 0, oh_connid = 0, oh_conn = 0x0, oh_msgid = 0, oh_protocol = 0, oh_tid = 0, oh_threadctx = 0x0, oh_tmpmemctx = 0x0, oh_tmpmfuncs = 0x8262e84, oh_counters = 0x0, oh_log_prefix = '\0' <repeats 255 times>} __PRETTY_FUNCTION__ = "bdb_tool_entry_put" #13 0x080e92fd in slapadd (argc=10, argv=0xbf9c4e14) at slapadd.c:322 e = (Entry *) 0x83253e4 buf = 0x832f340 "dn" text = 0x0 textbuf = '\0' <repeats 255 times> textlen = 256 progname = 0x8206f80 "slapadd" csn = {bv_len = 40, bv_val = 0x826bf60 "20080920215653.107542Z#000000#000#000000"} maxcsn = {{bv_len = 0, bv_val = 0x0} <repeats 3685 times>, {bv_len = 0, bv_val = 0xb80bab48 "\205\ufffdu\ufffd\203\ufffd\b\ufffd\001"}, {bv_len = 3081380161, bv_val = 0xb7c0b4f4 "libc.so.6"}, { bv_len = 3087826932, bv_val = 0xb7c0b298 ""}, {bv_len = 1537, bv_val = 0xbf9c4114 "4A\234\ufffdF\225\v\ufffd\001"}, { bv_len = 3087745686, bv_val = 0xb7aa2141 "libc.so.6"}, {bv_len = 3082785937, bv_val = 0x0}, {bv_len = 0, bv_val = 0x0}, {bv_len = 0, bv_val = 0x0}, {bv_len = 3081380161, bv_val = 0x0}, {bv_len = 0, bv_val = 0x0}, { bv_len = 3087826976, bv_val = 0x0}, {bv_len = 0, bv_val = 0x0}, {bv_len = 0, bv_val = 0xb7c0b638 ""}, {bv_len = 0, bv_val = 0x0}, {bv_len = 3082785937, bv_val = 0x0}, {bv_len = 0, bv_val = 0xb80bab48 "\205\ufffdu\ufffd\203\ufffd\b\ufffd\001"}, { bv_len = 3081532123, bv_val = 0xb80ac58a "ld-linux.so.2"}, {bv_len = 3087826932, bv_val = 0xb80c82a0 ""}, { bv_len = 3214691144, bv_val = 0xbf9c418c "\ufffdA\234\ufffdF\225\v\ufffd\001"}, {bv_len = 3087745686, bv_val = 0x0}, {bv_len = 0, bv_val = 0x0}, {bv_len = 0, bv_val = 0x0}, {bv_len = 0, bv_val = 0x0}, {bv_len = 3081532123, bv_val = 0x0}, { bv_len = 0, bv_val = 0x0}, {bv_len = 3087826976, bv_val = 0x0}, {bv_len = 0, bv_val = 0x0}, {bv_len = 0, bv_val = 0xb7c0b298 ""}, {bv_len = 3214688168, bv_val = 0xb80c7ff4 "\030\ufffd\001"}, {bv_len = 3082860088, bv_val = 0xb80b3021 "\213V\024\ufffd\ufffd\002\017\205\202\ufffd\ufffd\ufffd\213\203\ufffd\ufffd\ufffd\ufffd\211T$\b\211D$\004\ufffd\ufffd#\205`\ufffd\ufffd\ufffd\211\004$\ufffdE\ufffd"}, { bv_len = 3081453836, bv_val = 0x0}, {bv_len = 8, bv_val = 0x812 <Address 0x812 out of bounds>}, {bv_len = 3, bv_val = 0xb80bab48 "\205\ufffdu\ufffd\203\ufffd\b\ufffd\001"}, {bv_len = 3082785927, bv_val = 0xb7c0b4f4 "libc.so.6"}, { bv_len = 3087826932, bv_val = 0xb7c0b298 ""}, {bv_len = 1537, bv_val = 0xbf9c4214 "\230\ufffd\ufffd\ufffd\ufffd\216\v\ufffd\234\ufffd\ufffd\ufffd\230\ufffd\ufffd\ufffd\b"}, {bv_len = 3087745686, bv_val = 0xb7bf9487 "libc.so.6"}, {bv_len = 3082785937, bv_val = 0x12000 <Address 0x12000 out of bounds>}, {bv_len = 72708, bv_val = 0x11c04 <Address 0x11c04 out of bounds>}, {bv_len = 0, bv_val = 0x5 <Address 0x5 out of bounds>}, { bv_len = 3082785927, bv_val = 0x14000 <Address 0x14000 out of bounds>}, {bv_len = 78092, bv_val = 0xb80b53ec "\201\ufffd\b,\001"}, {bv_len = 3087826976, bv_val = 0x3 <Address 0x3 out of bounds>}, {bv_len = 15, bv_val = 0xb7c0b8a0 "/lib"}, {bv_len = 0, bv_val = 0xb7c0b000 ""}, {bv_len = 0, bv_val = 0xb7c0b638 ""}, { bv_len = 3082785937, bv_val = 0xb80b2db5 "\ufffdE\030\b\017\204:\003"}, {bv_len = 3, bv_val = 0x0}, {bv_len = 0, bv_val = 0xb80bab48 "\205\ufffdu\ufffd\203\ufffd\b\ufffd\001"}, {bv_len = 3082863780, bv_val = 0xb7c0b4f4 "libc.so.6"}, { bv_len = 3087826932, bv_val = 0xb7c0b298 ""}, {bv_len = 1537, bv_val = 0xbf9c4294 "D\ufffd\ufffd\ufffd8\ufffd\ufffd\ufffd\b"}, { bv_len = 3087745686, bv_val = 0xb7c0c4a4 "libc.so.6"}, {bv_len = 3082785937, bv_val = 0xa0 <Address 0xa0 out of bounds>}, {bv_len = 1869807665, bv_val = 0xfffff000 <Address 0xfffff000 out of bounds>}, {bv_len = 3087714368, bv_val = 0xb80c8020 "x\206\f\ufffd "}, { bv_len = 3082863780, bv_val = 0x803 <Address 0x803 out of bounds>}, {bv_len = 24, bv_val = 0x3 <Address 0x3 out of bounds>}, {bv_len = 3087826976, bv_val = 0x3 <Address 0x3 out of bounds>}, { bv_len = 3084443158, bv_val = 0xbf9c41a0 ""}, {bv_len = 0, bv_val = 0xb7e00d38 ""}, {bv_len = 0, bv_val = 0xbf9c3fe0 "\003"}, {bv_len = 3082785937, bv_val = 0x3 <Address 0x3 out of bounds>}, {bv_len = 779055918, bv_val = 0xb80c8664 "\001"}, {bv_len = 0, bv_val = 0xb80bab48 "\205\ufffdu\ufffd\203\ufffd\b\ufffd\001"}, {bv_len = 3083249710, bv_val = 0xb7c0b4f4 "libc.so.6"}, {bv_len = 3087826932, bv_val = 0xb7c0b298 ""}, {bv_len = 1537, bv_val = 0xbf9c4314 " \ufffd\ufffd\ufffd\ufffd\206\v\ufffd,\ufffd\ufffd\ufffd \ufffd\ufffd\ufffd\b"}, {bv_len = 3087745686, bv_val = 0xb7c6a82e "libc.so.6"}, { bv_len = 3082785937, bv_val = 0xbf9c4010 "\221\224\ufffd\ufffd\ufffd"}, {bv_len = 77344, bv_val = 0x13114 <Address 0x13114 out of bounds>}, {bv_len = 0, bv_val = 0xb7ab4114 "USE Linux) 4.3.1 20080507 (prerelease) [gcc-4_3-branch revision 135036]"}, {bv_len = 3083249710, bv_val = 0x803 <Address 0x803 out of bounds>}, {bv_len = 0, bv_val = 0x0}, {bv_len = 3087826976, bv_val = 0x81ed <Address 0x81ed out of bounds>}, {bv_len = 1, bv_val = 0x0}, {bv_len = 0, bv_val = 0xb7e00a88 ""}, { bv_len = 0, bv_val = 0x0}, {bv_len = 3082785937, bv_val = 0x0}, {bv_len = 4096, bv_val = 0xa0 <Address 0xa0 out of bounds>}, {bv_len = 0, bv_val = 0x48d571a4 <Address 0x48d571a4 out of bounds>}, { bv_len = 0, bv_val = 0xb80bab48 "\205\ufffdu\ufffd\203\ufffd\b\ufffd\001"}, {bv_len = 3084443168, bv_val = 0xb7c0b4f4 "libc.so.6"}, { bv_len = 3087826932, bv_val = 0xb7c0b298 ""}, {bv_len = 3087826932, bv_val = 0x0}, {bv_len = 3214691144, bv_val = 0xbf9c4134 "\024B\234\ufffd&\236\v\ufffdHK\234\ufffd"}, {bv_len = 3087766854, bv_val = 0x1 <Address 0x1 out of bounds>}, { bv_len = 0, bv_val = 0x0}, {bv_len = 0, bv_val = 0x0}, {bv_len = 3082860856, bv_val = 0xbf9c4214 "\230\ufffd\ufffd\ufffd\ufffd\216\v\ufffd\234\ufffd\ufffd\ufffd\230\ufffd\ufffd\ufffd\b"}, {bv_len = 3087769126, bv_val = 0xbf9c4b48 ""}, {bv_len = 0, bv_val = 0xbf9c43a0 "\b\ufffd\ufffd\ufffd\b"}, {bv_len = 0, bv_val = 0xbf9c4b6b ""}, {bv_len = 3214691172, bv_val = 0xbf9c4b60 ""}, { bv_len = 3087828420, bv_val = 0xb80c8020 "x\206\f\ufffd "}, {bv_len = 3082785937, bv_val = 0x0}, {bv_len = 0, bv_val = 0xb80c7ff4 "\030\ufffd\001"}, {bv_len = 3087766784, bv_val = 0xb7c0b938 "\230\ufffd\ufffd\ufffd\ufffd\202\f\ufffd"}, {bv_len = 3214688788, bv_val = 0xbf9c413c "HK\234\ufffd"}, {bv_len = 3087769097, bv_val = 0x0}, {bv_len = 3214691144, bv_val = 0xbf9c41ac "\214B\234\ufffd&\236\v\ufffdHK\234\ufffd"}, {bv_len = 3087766854, bv_val = 0x1 <Address 0x1 out of bounds>}, { bv_len = 0, bv_val = 0x0}, {bv_len = 0, bv_val = 0x0}, {bv_len = 3082860832, bv_val = 0xbf9c428c "8\ufffd\ufffd\ufffd\ufffd\206\v\ufffdD\ufffd\ufffd\ufffd8\ufffd\ufffd\ufffd\b"}, {bv_len = 3087769126, bv_val = 0xbf9c4b48 ""}, {bv_len = 0, bv_val = 0x34 <Address 0x34 out of bounds>}, {bv_len = 75592, bv_val = 0xbf9c4b6b ""}, {bv_len = 3214691172, bv_val = 0xbf9c4b60 ""}, {bv_len = 3087828420, bv_val = 0x1 <Address 0x1 out of bounds>}, {bv_len = 3087797761, bv_val = 0x0}, {bv_len = 0, bv_val = 0xb80c7ff4 "\030\ufffd\001"}, {bv_len = 3087766784, bv_val = 0xb7c0b920 ""}, { bv_len = 3214688908, bv_val = 0xb80c7ff4 "\030\ufffd\001"}, {bv_len = 2, bv_val = 0xb7c0b950 "8\ufffd\ufffd\ufffd\230\ufffd\ufffd\ufffd"}, { bv_len = 3214688788, bv_val = 0xb80c0f35 "\203\ufffd\b[]\ufffd\220\215t&"}, {bv_len = 8, bv_val = 0x7c <Address 0x7c out of bounds>}, {bv_len = 3087826932, bv_val = 0xb7c0b298 ""}, {bv_len = 3087765154, bv_val = 0xb7c0b99c "\230\ufffd\ufffd\ufffd\ufffd\202\f\ufffd"}, {bv_len = 3082860952, bv_val = 0x8 <Address 0x8 out of bounds>}, {bv_len = 0, bv_val = 0x0}, {bv_len = 3082859160, bv_val = 0x0}, {bv_len = 3087769126, bv_val = 0xbf9c4b48 ""}, {bv_len = 0, bv_val = 0x0}, {bv_len = 0, bv_val = 0xbf9c4b6b ""}, {bv_len = 3087797761, bv_val = 0xbf9c4b60 ""}, { bv_len = 3087828420, bv_val = 0x12e20 <Address 0x12e20 out of bounds>}, {bv_len = 77344, bv_val = 0x0}, { bv_len = 480, bv_val = 0xb80c7ff4 "\030\ufffd\001"}, {bv_len = 2, bv_val = 0x0}, {bv_len = 3214688908, bv_val = 0xb80c0f35 "\203\ufffd\b[]\ufffd\220\215t&"}, {bv_len = 8, bv_val = 0x14 <Address 0x14 out of bounds>}, { bv_len = 3087826932, bv_val = 0xb7c0b938 "\230\ufffd\ufffd\ufffd\ufffd\202\f\ufffd"}, {bv_len = 3087763188, bv_val = 0xb7c0b944 "\230\ufffd\ufffd\ufffd\ufffd\202\f\ufffd"}, {bv_len = 3082860856, bv_val = 0x8 <Address 0x8 out of bounds>}, {bv_len = 0, bv_val = 0x0}, {bv_len = 0, bv_val = 0x0}, {bv_len = 3087827616, bv_val = 0x0}, {bv_len = 3087769126, bv_val = 0xbf9c4b48 ""}, {bv_len = 0, bv_val = 0x41 <Address 0x41 out of bounds>}, {bv_len = 31, bv_val = 0xbf9c4b6b ""}, {bv_len = 3214691172, bv_val = 0xbf9c4b60 ""}, {bv_len = 3087797761, bv_val = 0x25 <Address 0x25 out of bounds>}, {bv_len = 0, bv_val = 0x0}, {bv_len = 93, bv_val = 0xb80c7ff4 "\030\ufffd\001"}, {bv_len = 3087766784, bv_val = 0xb80c7ff4 "\030\ufffd\001"}, {bv_len = 2, bv_val = 0x0}, {bv_len = 3214689044, bv_val = 0xb80c0f35 "\203\ufffd\b[]\ufffd\220\215t&"}, {bv_len = 8, bv_val = 0x14 <Address 0x14 out of bounds>}, {bv_len = 3087826932, bv_val = 0xb7c0b920 ""}, {bv_len = 3087763188, bv_val = 0xb7c0b92c ""}, {bv_len = 3082860832, bv_val = 0x8 <Address 0x8 out of bounds>}, {bv_len = 0, bv_val = 0x0}, {bv_len = 3082859160, bv_val = 0x0}, {bv_len = 3087769126, bv_val = 0xbf9c4b48 ""}, {bv_len = 0, bv_val = 0x0}, { bv_len = 0, bv_val = 0xbf9c4b6b ""}, {bv_len = 3214691172, bv_val = 0xbf9c4b60 ""}, {bv_len = 3087797761, bv_val = 0x32 <Address 0x32 out of bounds>}, {bv_len = 25, bv_val = 0x0}, {bv_len = 0, bv_val = 0xb80c7ff4 "\030\ufffd\001"}, {bv_len = 3087766784, bv_val = 0xb80c7ff4 "\030\ufffd\001"}, {bv_len = 2, bv_val = 0x0}, {bv_len = 3214689172, bv_val = 0xb80c0f35 "\203\ufffd\b[]\ufffd\220\215t&"}, {bv_len = 8, bv_val = 0x14 <Address 0x14 out of bounds>}, {bv_len = 3087826932, bv_val = 0xb7c0b908 "8\r\ufffd\ufffd\230\ufffd\ufffd\ufffd"}, { bv_len = 3087763188, bv_val = 0xb7c0b914 "8\r\ufffd\ufffd\230\ufffd\ufffd\ufffd"}, {bv_len = 3082860808, bv_val = 0x8 <Address 0x8 out of bounds>}, {bv_len = 0, bv_val = 0x0}, {bv_len = 3082859160, bv_val = 0x0}, { bv_len = 0, bv_val = 0xbf9c449c "\ufffd\ufffd\ufffd\ufffd\ufffd\206\v\ufffd\u0238\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\024"}, {bv_len = 3087769126, bv_val = 0xbf9c4b48 ""}, { bv_len = 0, bv_val = 0x0}, {bv_len = 0, bv_val = 0xbf9c4b6b ""}, {bv_len = 3087797761, bv_val = 0xbf9c4b60 ""}, { bv_len = 3087828420, bv_val = 0x0}, {bv_len = 3214689912, bv_val = 0x0}, {bv_len = 3214691179, bv_val = 0xb80c7ff4 "\030\ufffd\001"}, {bv_len = 4, bv_val = 0x0}, {bv_len = 3214689300, bv_val = 0xb80c0f35 "\203\ufffd\b[]\ufffd\220\215t&"}, {bv_len = 8, bv_val = 0x24 <Address 0x24 out of bounds>}, { bv_len = 3087826932, bv_val = 0xb7c0b8e0 "\210\n\ufffd\ufffd8\005\ufffd\ufffd8\ufffd\ufffd\ufffd\230\ufffd\ufffd\ufffd"}, {bv_len = 3087763188, bv_val = 0xb7c0b8f4 "\210\n\ufffd\ufffd8\005\ufffd\ufffd8\ufffd\ufffd\ufffd\230\ufffd\ufffd\ufffd"}, {bv_len = 3082860768, bv_val = 0x10 <Address 0x10 out of bounds>}, {bv_len = 3087750124, bv_val = 0x0}, {bv_len = 3084911928, bv_val = 0xb7c0b638 ""}, {bv_len = 3082859160, bv_val = 0x0}, {bv_len = 3214691144, bv_val = 0xbf9c4464 "DE\234\ufffd&\236\v\ufffdHK\234\ufffd"}, {bv_len = 3087766854, bv_val = 0x1 <Address 0x1 out of bounds>}, {bv_len = 0, bv_val = 0x0}...} sid = 3087768694 bvtext = {bv_len = 256, bv_val = 0xbf9c4b48 ""} attr = (Attribute *) 0xb80c8830 ctxcsn_e = (Entry *) 0xb7c0ba08 ctxcsn_id = 1 id = 3 opbuf = {ob_op = {o_hdr = 0xbf9bc990, o_tag = 0, o_time = 0, o_tincr = 0, o_bd = 0x8308ce0, o_req_dn = { bv_len = 0, bv_val = 0x0}, o_req_ndn = {bv_len = 0, bv_val = 0x0}, o_request = {oq_add = {rs_modlist = 0x0, rs_e = 0x0}, oq_bind = {rb_method = 0, rb_cred = {bv_len = 0, bv_val = 0x0}, rb_edn = {bv_len = 0, bv_val = 0x0}, rb_ssf = 0, rb_mech = {bv_len = 0, bv_val = 0x0}}, oq_compare = {rs_ava = 0x0}, oq_modify = {rs_mods = { rs_modlist = 0x0, rs_no_opattrs = 0 '\0'}, rs_increment = 0}, oq_modrdn = {rs_mods = {rs_modlist = 0x0, rs_no_opattrs = 0 '\0'}, rs_deleteoldrdn = 0, rs_newrdn = {bv_len = 0, bv_val = 0x0}, rs_nnewrdn = {bv_len = 0, bv_val = 0x0}, rs_newSup = 0x0, rs_nnewSup = 0x0}, oq_search = {rs_scope = 0, rs_deref = 0, rs_slimit = 0, rs_tlimit = 0, rs_limit = 0x0, rs_attrsonly = 0, rs_attrs = 0x0, rs_filter = 0x0, rs_filterstr = {bv_len = 0, bv_val = 0x0}}, oq_abandon = {rs_msgid = 0}, oq_cancel = {rs_msgid = 0}, oq_extended = {rs_reqoid = { bv_len = 0, bv_val = 0x0}, rs_flags = 0, rs_reqdata = 0x0}, oq_pwdexop = {rs_extended = {rs_reqoid = { bv_len = 0, bv_val = 0x0}, rs_flags = 0, rs_reqdata = 0x0}, rs_old = {bv_len = 0, bv_val = 0x0}, rs_new = { bv_len = 0, bv_val = 0x0}, rs_mods = 0x0, rs_modtail = 0x0}}, o_abandon = 0, o_cancel = 0, o_groups = 0x0, o_do_not_cache = 0 '\0', o_is_auth_check = 0 '\0', o_acl_priv = ACL_NONE, o_nocaching = 0 '\0', o_delete_glue_parent = 0 '\0', o_no_schema_check = 0 '\0', o_no_subordinate_glue = 0 '\0', o_ctrlflag = '\0' <repeats 31 times>, o_controls = 0x0, o_authz = {sai_method = 0, sai_mech = {bv_len = 0, bv_val = 0x0}, sai_dn = {bv_len = 0, bv_val = 0x0}, sai_ndn = {bv_len = 0, bv_val = 0x0}, sai_ssf = 0, sai_transport_ssf = 0, sai_tls_ssf = 0, sai_sasl_ssf = 0}, o_ber = 0x0, o_res_ber = 0x0, o_callback = 0x0, o_ctrls = 0x0, o_csn = {bv_len = 0, bv_val = 0x0}, o_private = 0x0, o_extra = {slh_first = 0x0}, o_next = { stqe_next = 0x0}}, ob_hdr = {oh_opid = 0, oh_connid = 0, oh_conn = 0x0, oh_msgid = 0, oh_protocol = 0, oh_tid = 0, oh_threadctx = 0x0, oh_tmpmemctx = 0x0, oh_tmpmfuncs = 0x0, oh_counters = 0x0, oh_log_prefix = '\0' <repeats 255 times>}, ob_controls = {0x0 <repeats 32 times>}} op = (Operation *) 0xbf9bc8b8 match = 0 checkvals = 1 lineno = 30 nextline = 33 lmax = 4110 rc = 0 manage = 0 __PRETTY_FUNCTION__ = "slapadd" #14 0x080503df in main (argc=10, argv=0xbf9c4e14) at main.c:645 i = 0 no_detach = 0 rc = 1 urls = 0x0 username = 0x0 groupname = 0x0 sandbox = 0x0 syslogUser = 160 g_argc = 10 g_argv = (char **) 0xbf9c4e14 configfile = 0x0 configdir = 0x0 serverName = 0xbf9c6f3e "lt-slapd" serverMode = 1 scp = (struct sync_cookie *) 0x0 scp_entry = (struct sync_cookie *) 0x0 debug_unknowns = (char **) 0x0 syslog_unknowns = (char **) 0x0 serverNamePrefix = 0x81eb06b "" l = 1 slapd_pid_file_unlink = 0 slapd_args_file_unlink = 0 firstopt = 1 __PRETTY_FUNCTION__ = "main"
--On Sunday, September 21, 2008 12:01 AM +0200 Michael Ströder michael@stroeder.com wrote:
Quanah Gibson-Mount wrote:
What flags were used to build BDB 4.7?
See my build script as attachment.
What about a gdb backtrace of the hung process?
See attachment bt_full.txt. I hope I've grabbed all the lines correctly.
Huh, I only set two options when I build, the prefix and --enable-posixmutexes.
--Quanah
--
Quanah Gibson-Mount Principal Software Engineer Zimbra, Inc -------------------- Zimbra :: the leader in open source messaging and collaboration
Quanah Gibson-Mount wrote:
--On Sunday, September 21, 2008 12:01 AM +0200 Michael Ströder michael@stroeder.com wrote:
Quanah Gibson-Mount wrote:
What flags were used to build BDB 4.7?
See my build script as attachment.
What about a gdb backtrace of the hung process?
See attachment bt_full.txt. I hope I've grabbed all the lines correctly.
Huh, I only set two options when I build, the prefix and --enable-posixmutexes.
Do you see any problem? This build script works since years...
BTW: Same problem with HEAD.
Ciao, Michael.
--On Sunday, September 21, 2008 12:21 AM +0200 Michael Ströder michael@stroeder.com wrote:
Do you see any problem? This build script works since years...
With very latest RE24, I have no issue with my BDB 4.7 build:
[quanah@freelancer tests]$ ./run test001 Running ./scripts/test001-slapadd... running defines.sh Running slapadd to build slapd database... Starting slapd on TCP/IP port 9011... Using ldapsearch to retrieve all the entries... Filtering ldapsearch results... Filtering original ldif used to create database... Comparing filter output...
Test succeeded
[quanah@freelancer .libs]$ ldd lt-slapd libldap_r-2.4-releng.so.2 => /home/quanah/q/openldap-2.4.12/libraries/libldap_r/.libs/libldap_r-2.4-releng.so.2 (0x00002b03b71a9000) liblber-2.4-releng.so.2 => /home/quanah/q/openldap-2.4.12/libraries/liblber/.libs/liblber-2.4-releng.so.2 (0x00002b03b7401000) libltdl.so.3 => /usr/lib64/libltdl.so.3 (0x00002b03b761e000) libdb-4.7.so => /opt/zimbra/bdb-4.7.25.1/lib/libdb-4.7.so (0x00002b03b7826000) libpthread.so.0 => /lib64/libpthread.so.0 (0x00000038dcc00000) libsasl2.so.2 => /opt/zimbra/cyrus-sasl-2.1.22.3z/lib/libsasl2.so.2 (0x00002b03b7b6f000) libdl.so.2 => /lib64/libdl.so.2 (0x00000038dc400000) libssl.so.0.9.8 => /opt/zimbra/openssl-0.9.8g/lib/libssl.so.0.9.8 (0x00002b03b7d88000) libcrypto.so.0.9.8 => /opt/zimbra/openssl-0.9.8g/lib/libcrypto.so.0.9.8 (0x00002b03b7fd0000) libresolv.so.2 => /lib64/libresolv.so.2 (0x00000038e0000000) libc.so.6 => /lib64/libc.so.6 (0x00000038dc000000) /lib64/ld-linux-x86-64.so.2 (0x00000038dbc00000)
--Quanah
--
Quanah Gibson-Mount Principal Software Engineer Zimbra, Inc -------------------- Zimbra :: the leader in open source messaging and collaboration
Quanah Gibson-Mount wrote:
With very latest RE24, I have no issue with my BDB 4.7 build:
Note that I always keep my RE24 source tree in sync. And same problem with HEAD anyway.
Any more information I can give additional to my last e-mail? Anything you can derive from the stack trace I provided?
ldd output (see below) also seems right to me. And yes, I already tried without SASL and Kerberos to avoid BDB lib mix. But it works with BDB 4.6 anyway.
Ciao, Michael.
michael@nb2:~/src/openldap/OPENLDAP_REL_ENG_2_4/openldap> ldd ./servers/slapd/.libs/lt-slapd linux-gate.so.1 => (0xffffe000) libldap_r-2.4-releng.so.2 => /home/michael/src/openldap/OPENLDAP_REL_ENG_2_4/openldap/libraries/libldap_r/.libs/libldap_r-2.4-releng.so.2 (0xb7f16000) liblber-2.4-releng.so.2 => /home/michael/src/openldap/OPENLDAP_REL_ENG_2_4/openldap/libraries/liblber/.libs/liblber-2.4-releng.so.2 (0xb7f06000) libdb-4.7.so => /opt/bdb-4.7/lib/libdb-4.7.so (0xb7d3e000) libodbc.so.1 => /usr/lib/libodbc.so.1 (0xb7ccf000) libpthread.so.0 => /lib/libpthread.so.0 (0xb7ca1000) libsasl2.so.2 => /usr/lib/libsasl2.so.2 (0xb7c88000) libdl.so.2 => /lib/libdl.so.2 (0xb7c84000) libssl.so.0.9.8 => /usr/lib/libssl.so.0.9.8 (0xb7c3f000) libcrypto.so.0.9.8 => /usr/lib/libcrypto.so.0.9.8 (0xb7afb000) libcrypt.so.1 => /lib/libcrypt.so.1 (0xb7ac5000) libresolv.so.2 => /lib/libresolv.so.2 (0xb7ab1000) libc.so.6 => /lib/libc.so.6 (0xb796e000) /lib/ld-linux.so.2 (0xb7f65000) libz.so.1 => /lib/libz.so.1 (0xb795a000)
Michael Ströder wrote:
Quanah Gibson-Mount wrote:
What flags were used to build BDB 4.7?
See my build script as attachment.
../dist/configure \ --prefix=/opt/bdb-${BDB_VERSION} \ --with-uniquenames \
The above is not a valid option
--enable-diagnostic \
This appears to be the only significant difference from a default config. Try without.
--enable-shared \ --enable-static \
--enable-rpc \ --disable-java \ --enable-posixmutexes \ --enable-largefile \ --enable-cxx \ --disable-compat185 \ i686-suse-linux make
What about a gdb backtrace of the hung process?
See attachment bt_full.txt. I hope I've grabbed all the lines correctly.
I've added -d in tests/scripts/test001-slapadd (see debug output in attachment). It always hangs adding entry ou=Alumni Association,ou=People,dc=example,dc=com.
Ciao, Michael.
On Mon, 22 Sep 2008, Howard Chu wrote: ...
--enable-diagnostic \
This appears to be the only significant difference from a default config. Try without.
Note that the layout of the shared-memory regions (__db.0*) is different for BDB compiles with and without the --enable-diagnostic option. They cannot be mixed for a given environment, so any db_* utilities you use along side slapd should be from the same compile. Hangs and crashes would be expected if that isn't true.
Philip Guenther
Howard Chu wrote:
Michael Ströder wrote:
Quanah Gibson-Mount wrote:
What flags were used to build BDB 4.7?
See my build script as attachment.
../dist/configure \ --prefix=/opt/bdb-${BDB_VERSION} \ --with-uniquenames \
The above is not a valid option
--enable-diagnostic \
This appears to be the only significant difference from a default config. Try without.
--enable-shared \ --enable-static \
--enable-rpc \ --disable-java \ --enable-posixmutexes \ --enable-largefile \ --enable-cxx \ --disable-compat185 \ i686-suse-linux make
Just to confirm, I built BDB 4.7.25 with the above options (except uniquenames and i686-suse-linux) on dual-core x86-64 and still see no hang.
Howard Chu wrote:
Howard Chu wrote:
Michael Ströder wrote:
Quanah Gibson-Mount wrote:
What flags were used to build BDB 4.7?
See my build script as attachment. ../dist/configure \ --prefix=/opt/bdb-${BDB_VERSION} \ --with-uniquenames \
The above is not a valid option
--enable-diagnostic \
This appears to be the only significant difference from a default config. Try without.
--enable-shared \ --enable-static \ --enable-rpc \ --disable-java \ --enable-posixmutexes \ --enable-largefile \ --enable-cxx \ --disable-compat185 \ i686-suse-linux
make
Just to confirm, I built BDB 4.7.25 with the above options (except uniquenames and i686-suse-linux) on dual-core x86-64 and still see no hang.
OK. On my single core x86 (32 bit) SuSE system (also i686-suse-linux) with all of the above options I see the same hang. It also occurs with just the defaults. It also occurs when configuring --with-mutex=POSIX/pthreads. This may be a BDB bug; probably should stick to 4.6.21 for single-core machines until we track down the problem.
Philip Guenther wrote:
On Mon, 22 Sep 2008, Howard Chu wrote: ...
--enable-diagnostic \
This appears to be the only significant difference from a default config. Try without.
Note that the layout of the shared-memory regions (__db.0*) is different for BDB compiles with and without the --enable-diagnostic option. They cannot be mixed for a given environment, so any db_* utilities you use along side slapd should be from the same compile. Hangs and crashes would be expected if that isn't true.
Off course I always use the db_* utils from the right build. But AFAIK db_* utils are not involved at all when running make test. Also note that the very same build script simply works with BDB 4.6.
Ciao, Michael.
--On September 23, 2008 11:25:16 AM +0200 Michael Ströder michael@stroeder.com wrote:
Off course I always use the db_* utils from the right build. But AFAIK db_* utils are not involved at all when running make test. Also note that the very same build script simply works with BDB 4.6.
Howard's already followed up on the ITS as to why this is occurring, it is a BDB 4.7 bug.
--Quanah
--
Quanah Gibson-Mount Principal Software Engineer Zimbra, Inc -------------------- Zimbra :: the leader in open source messaging and collaboration