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

RE: core dump in test019-syncreplication-cascade (ITS#2806)



None of test017, 18, or 19 work for ldbm. You should see the same abort when
running test018 as you see here on test019.

The support for using ldbm as a consumer with {bdb,hdb} as the provider seems
to have been dropped from these scripts. I don't know if it's worthwhile to
restore that, perhaps they should just exit 0 when using ldbm.

  -- Howard Chu
  Chief Architect, Symas Corp.       Director, Highland Sun
  http://www.symas.com               http://highlandsun.com/hyc
  Symas: Premier OpenSource Development and Support

> -----Original Message-----
> From: owner-openldap-bugs@OpenLDAP.org
> [mailto:owner-openldap-bugs@OpenLDAP.org]On Behalf Of
> h.b.furuseth@usit.uio.no
> Sent: Friday, October 31, 2003 9:41 AM
> To: openldap-its@OpenLDAP.org
> Subject: core dump in test019-syncreplication-cascade (ITS#2806)
>
>
> Full_Name: Hallvard B Furuseth
> Version: HEAD
> OS: Solaris
> URL: ftp://ftp.openldap.org/incoming/Hallvard-Furuseth-2-031031.tgz
> Submission from: (NULL) (129.240.186.42)
> Submitted by: hallvard
>
>
> OpenLDAP configured with --quiet --prefix=/usit/bombur/tmp/ldap
>  --enable-aci --enable-crypt
>  --disable-bdb --enable-ldbm --enable-monitor
>
> dumps core in test019.  I've enclosed the testdata directory
> in the enclosed file.  I've saved teh coredump and can debug
> further on request, if someone tells me what to look for.
>
>
>
> Cleaning up test run directory leftover from previous run.
> Running ./scripts/test019-syncreplication-cascade...
> running defines.sh
> Starting master slapd on TCP/IP port 9011...
> Using ldapsearch to check that master slapd (pid=19585) is running...
> Waiting 5 seconds for slapd to start...
> Using ldapadd to create the context prefix entry in the master...
> Starting R1 slave slapd on TCP/IP port 9012...
> Using ldapsearch to check that R1 slave slapd(pid=19591) is running...
> Waiting 5 seconds for R1 slapd to start...
> Starting R2 slave slapd on TCP/IP port 9013...
> Using ldapsearch to check that R2 slave slapd(pid=19596) is running...
> Waiting 5 seconds for R2 slave slapd to start...
> Starting P1 slave slapd on TCP/IP port 9014...
> Using ldapsearch to check that P1 slave slapd(pid=19601) is running...
> Waiting 5 seconds for P1 slave slapd to start...
> 19601 Abort - core dumped
> (...)
>
>
> sh-2.05a$ gdb ../servers/slapd/slapd core
> Core was generated by `../servers/slapd/slapd -s0 -f
> ./testrun/slapd.4.conf -h
> ldap://localhost:9014/'.
> #0  0xfeed9764 in __sigprocmask () from /usr/lib/libthread.so.1
> (gdb) bt
> #0  0xfeed9764 in __sigprocmask () from /usr/lib/libthread.so.1
> #1  0xfeece978 in _resetsig () from /usr/lib/libthread.so.1
> #2  0xfeece118 in _sigon () from /usr/lib/libthread.so.1
> #3  0xfeed1158 in _thrp_kill () from /usr/lib/libthread.so.1
> #4  0xfef4ba24 in raise () from /usr/lib/libc.so.1
> #5  0xfef35944 in abort () from /usr/lib/libc.so.1
> #6  0xfef35be8 in _assert () from /usr/lib/libc.so.1
> #7  0x00033694 in connection_get (s=8) at connection.c:246
> #8  0x000353fc in connection_client_stop (s=8) at connection.c:1175
> #9  0x0006d924 in do_syncrepl (ctx=0xfd801b80, arg=0x264620)
> at syncrepl.c:719
> #10 0x000914c8 in ldap_int_thread_pool_wrapper
> (xpool=0x1f4380) at tpool.c:463
> (gdb) frame 7
> #7  0x00033694 in connection_get (s=8) at connection.c:246
> 246		assert( c->c_struct_state != SLAP_C_UNINITIALIZED );
> (gdb) print *c
> $1 = {c_struct_state = 0, c_conn_state = 0, c_mutex = {
>     __pthread_mutex_flags = {__pthread_mutex_flag1 = 0,
>       __pthread_mutex_flag2 = 0 '\0', __pthread_mutex_ceiling
> = 0 '\0',
>       __pthread_mutex_type = 0, __pthread_mutex_magic = 0},
>     __pthread_mutex_lock = {__pthread_mutex_lock64 = {
>         __pthread_mutex_pad = "\0\0\0\0\0\0\0"},
> __pthread_mutex_lock32 = {
>         __pthread_ownerpid = 0, __pthread_lockword = 0},
>       __pthread_mutex_owner64 = 0}, __pthread_mutex_data =
> 0}, c_sb = 0x0,
>   c_starttime = 0, c_activitytime = 0, c_connid = 0, c_peer_domain = {
>     bv_len = 0, bv_val = 0x0}, c_peer_name = {bv_len = 0,
> bv_val = 0x0},
>   c_listener = 0x0, c_sasl_bind_in_progress = 0, c_sasl_bind_mech = {
>     bv_len = 0, bv_val = 0x0}, c_sasl_dn = {bv_len = 0,
> bv_val = 0x0},
>   c_authz_backend = 0x0, c_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}, c_protocol = 0, c_ops = {
>     stqh_first = 0x0, stqh_last = 0x0}, c_pending_ops =
> {stqh_first = 0x0,
>     stqh_last = 0x0}, c_write_mutex = {__pthread_mutex_flags = {
>       __pthread_mutex_flag1 = 0, __pthread_mutex_flag2 = 0 '\0',
>       __pthread_mutex_ceiling = 0 '\0', __pthread_mutex_type = 0,
>       __pthread_mutex_magic = 0}, __pthread_mutex_lock = {
>       __pthread_mutex_lock64 = {__pthread_mutex_pad =
> "\0\0\0\0\0\0\0"},
>       __pthread_mutex_lock32 = {__pthread_ownerpid = 0,
>         __pthread_lockword = 0}, __pthread_mutex_owner64 = 0},
>     __pthread_mutex_data = 0}, c_write_cv = {__pthread_cond_flags = {
>       __pthread_cond_flag = "\0\0\0", __pthread_cond_type = 0,
>       __pthread_cond_magic = 0}, __pthread_cond_data = 0},
> c_currentber = 0x0,
>   c_writewaiter = 0, c_is_tls = 0, c_needs_tls_accept = 0,
> c_sasl_layers = 0,
>   c_sasl_done = 0, c_sasl_authctx = 0x0, c_sasl_sockctx = 0x0,
>   c_sasl_extra = 0x0, c_sasl_bindop = 0x0, c_pagedresults_state = {
>     ps_be = 0x0, ps_cookie = 0, ps_id = 0}, c_n_ops_received = 0,
>   c_n_ops_executing = 0, c_n_ops_pending = 0, c_n_ops_completed = 0,
>   c_n_get = 0, c_n_read = 0, c_n_write = 0, c_pb = 0x0,
> c_extensions = 0x0,
>   c_clientfunc = 0, c_clientarg = 0x0, c_send_ldap_result = 0,
>   c_send_search_entry = 0, c_send_search_reference = 0,
>   c_send_ldap_extended = 0, c_send_ldap_intermediate = 0}
> (gdb) print s
> $2 = 8
> (gdb) print connections
> $3 = (Connection *) 0x30c000
> (gdb) frame 9
> #9  0x0006d924 in do_syncrepl (ctx=0xfd801b80, arg=0x264620)
> at syncrepl.c:719
> 719			connection_client_stop( s );
> (gdb) print *rtask
> $4 = {next_sched = {tv_sec = 1067619384, tv_usec = 0}, interval = {
>     tv_sec = 60, tv_usec = 0}, tnext = {stqe_next = 0x0}, rnext = {
>     stqe_next = 0x0}, routine = 0x6d650 <do_syncrepl>, arg = 0x260300}
> (gdb) print *si
> $5 = {si_be = 0x260500, si_id = 1,
>   si_provideruri = 0x2654c0 "ldap://localhost:9011";,
>   si_provideruri_bv = 0x268810, si_tls = 0, si_updatedn =
> {bv_len = 40,
>     bv_val = 0x23d000 "cn=replica,o=university of michigan,c=us"},
>   si_bindmethod = 128,
>   si_binddn = 0x23cf80 "cn=Manager,o=University of Michigan,c=US",
>   si_passwd = 0x268870 "secret", si_saslmech = 0x0,
> si_secprops = 0x0,
>   si_realm = 0x0, si_authcId = 0x0, si_authzId = 0x0,
> si_schemachecking = 0,
>   si_filter = 0x0, si_filterstr = {bv_len = 15,
>     bv_val = 0x268850 "(objectClass=*)"}, si_base = {bv_len = 29,
>     bv_val = 0x265400 "o=university of michigan,c=us"}, si_scope = 2,
>   si_attrsonly = 0, si_attrs = 0x264660, si_type = 3,
> si_interval = 60,
>   si_syncCookie = {bv_len = 0, bv_val = 0x0}, si_manageDSAit = 0,
>   si_slimit = -1, si_tlimit = -1, si_syncUUID_ndn = {bv_len = 0,
>     bv_val = 0x0}, si_presentlist = 0x288670, si_sync_mode =
> 0, si_ld = 0x0,
>   si_nonpresentlist = {lh_first = 0x0}}
> (gdb) print conn
> $6 = {c_struct_state = 0, c_conn_state = 0, c_mutex = {
>     __pthread_mutex_flags = {__pthread_mutex_flag1 = 0,
>       __pthread_mutex_flag2 = 0 '\0', __pthread_mutex_ceiling
> = 0 '\0',
>       __pthread_mutex_type = 0, __pthread_mutex_magic = 0},
>     __pthread_mutex_lock = {__pthread_mutex_lock64 = {
>         __pthread_mutex_pad = "\0\0\0\0\0\0\0"},
> __pthread_mutex_lock32 = {
>         __pthread_ownerpid = 0, __pthread_lockword = 0},
>       __pthread_mutex_owner64 = 0}, __pthread_mutex_data =
> 0}, c_sb = 0x0,
>   c_starttime = 0, c_activitytime = 0, c_connid = 4294967295,
> c_peer_domain = {
>     bv_len = 0, bv_val = 0x0}, c_peer_name = {bv_len = 0,
>     bv_val = 0x14b520 ""}, c_listener = 0x15e558,
> c_sasl_bind_in_progress = 0,
>   c_sasl_bind_mech = {bv_len = 0, bv_val = 0x0}, c_sasl_dn =
> {bv_len = 0,
>     bv_val = 0x0}, c_authz_backend = 0x0, c_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}, c_protocol = 0,
>   c_ops = {stqh_first = 0x0, stqh_last = 0x0}, c_pending_ops = {
>     stqh_first = 0x0, stqh_last = 0x0}, c_write_mutex = {
>     __pthread_mutex_flags = {__pthread_mutex_flag1 = 0,
>       __pthread_mutex_flag2 = 0 '\0', __pthread_mutex_ceiling
> = 0 '\0',
>       __pthread_mutex_type = 0, __pthread_mutex_magic = 0},
>     __pthread_mutex_lock = {__pthread_mutex_lock64 = {
>         __pthread_mutex_pad = "\0\0\0\0\0\0\0"},
> __pthread_mutex_lock32 = {
>         __pthread_ownerpid = 0, __pthread_lockword = 0},
>       __pthread_mutex_owner64 = 0}, __pthread_mutex_data =
> 0}, c_write_cv = {
>     __pthread_cond_flags = {__pthread_cond_flag = "\0\0\0",
>       __pthread_cond_type = 0, __pthread_cond_magic = 0},
>     __pthread_cond_data = 0}, c_currentber = 0x0, c_writewaiter = 0,
>   c_is_tls = 0, c_needs_tls_accept = 0, c_sasl_layers = 0,
> c_sasl_done = 0,
>   c_sasl_authctx = 0x0, c_sasl_sockctx = 0x0, c_sasl_extra = 0x0,
>   c_sasl_bindop = 0x0, c_pagedresults_state = {ps_be = 0x0,
> ps_cookie = 0,
>     ps_id = 0}, c_n_ops_received = 0, c_n_ops_executing = 0,
>   c_n_ops_pending = 0, c_n_ops_completed = 0, c_n_get = 0,
> c_n_read = 0,
>   c_n_write = 0, c_pb = 0x0, c_extensions = 0x0, c_clientfunc = 0,
>   c_clientarg = 0x0, c_send_ldap_result = 0x40968
> <slap_send_ldap_result>,
>   c_send_search_entry = 0x41084 <slap_send_search_entry>,
>   c_send_search_reference = 0x423e8 <slap_send_search_reference>,
>   c_send_ldap_extended = 0, c_send_ldap_intermediate = 0}
> (gdb) print op
> $7 = {o_opid = 0, o_connid = 4294967295, o_conn = 0xfd8019c8,
> o_bd = 0x260500,
>   o_msgid = 0, o_protocol = 3, o_tag = 104, o_time =
> 1067619324, o_req_dn = {
>     bv_len = 29, bv_val = 0x2644c0 "o=University of Michigan,c=US"},
>   o_req_ndn = {bv_len = 29,
>     bv_val = 0x2644a0 "o=university of michigan,c=us"},
> o_request = {oq_add = {
>       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},
>     oq_compare = {rs_ava = 0x0}, oq_modify = {rs_modlist =
> 0x0}, oq_modrdn = {
>       rs_newrdn = {bv_len = 0, bv_val = 0x0}, rs_nnewrdn =
> {bv_len = 0,
>         bv_val = 0x0}, rs_newSup = 0x0, rs_nnewSup = 0x0,
>       rs_deleteoldrdn = 0}, oq_search = {rs_scope = 0, rs_deref = 0,
>       rs_slimit = 0, rs_tlimit = 0, 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_reqdata =
> 0x0}}, o_tid = 0,
>   o_abandon = 0, o_cancel = 0, o_groups = 0x0, o_do_not_cache
> = 0 '\0',
>   o_is_auth_check = 0 '\0', o_managedsait = 1 '\001', o_noop
> = 0 '\0',
>   o_proxy_authz = 0 '\0', o_subentries = 0 '\0',
>   o_subentries_visibility = 0 '\0', o_assert = 0 '\0',
>   o_valuesreturnfilter = 0 '\0', o_permissive_modify = 0 '\0',
>   o_domain_scope = 0 '\0', o_preread = 0 '\0', o_postread = 0 '\0',
>   o_preread_attrs = 0x0, o_postread_attrs = 0x0,
> o_pagedresults = 0 '\0',
>   o_pagedresults_size = 0, o_pagedresults_state = {ps_be =
> 0x0, ps_cookie = 0,
>     ps_id = 0}, o_sync = 0 '\0', o_sync_mode = 0 '\0',
> o_sync_state = {
>     bv_len = 0, bv_val = 0x0}, o_ps_entries = 0, o_ps_link =
> {le_next = 0x0,
>     le_prev = 0x0}, o_pm_list = {lh_first = 0x0}, o_authz =
> {sai_method = 0,
>     sai_mech = {bv_len = 0, bv_val = 0x0}, sai_dn = {bv_len = 40,
>       bv_val = 0x23d000 "cn=replica,o=university of michigan,c=us"},
>     sai_ndn = {bv_len = 40,
>       bv_val = 0x23d000 "cn=replica,o=university of michigan,c=us"},
>     sai_ssf = 0, sai_transport_ssf = 0, sai_tls_ssf = 0,
> sai_sasl_ssf = 0},
>   o_ber = 0x0, o_res_ber = 0x0, o_callback = 0xfd801728,
> o_ctrls = 0x0,
>   o_threadctx = 0xfd801b80, o_tmpmemctx = 0x2887a0,
> o_tmpmfuncs = 0x18fa70,
>   o_private = 0x0, o_next = {stqe_next = 0x0}, o_assertion = 0x0,
>   o_vrFilter = 0x0, o_nocaching = 0}
> (gdb) print rc
> $8 = -2
> (gdb) print first
> $9 = 1
> (gdb) print dostop
> $10 = 1
>
>
>