<br><br><div class="gmail_quote">2010/8/25 Rich Megginson <span dir="ltr">&lt;<a href="mailto:rmeggins@redhat.com">rmeggins@redhat.com</a>&gt;</span><br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">

Andrey Ivanov wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<br>
<br>
2010/8/25 Rich Megginson &lt;<a href="mailto:rmeggins@redhat.com" target="_blank">rmeggins@redhat.com</a> &lt;mailto:<a href="mailto:rmeggins@redhat.com" target="_blank">rmeggins@redhat.com</a>&gt;&gt;<div><div></div><div class="h5">

<br>
<br>
    Andrey Ivanov wrote:<br>
<br>
        I wanted to configure the replication over SSL (both with SSL<br>
        mechanism which was available in previous versions) and by TLS<br>
        using<br>
        simple bind (both in multimaster or single master-dedicated<br>
        consumer models).<br>
<br>
        I&#39;ve tried to configure it with command line and with the<br>
        console. The<br>
        configuration and the initial initialisation are ok/<br>
<br>
        But  when i continue and try to make a change on a master the<br>
        consumer<br>
        server  crashes.  So the total replica initialisation is ok<br>
        but even a<br>
        single  incremental  update  crashes the consumer server. And<br>
        there is<br>
        nothing  helpful  in logs. I haven&#39;t tried the 1.2.6.rc7<br>
        version, i&#39;ve<br>
        tried  the latest code version (as of today). Don&#39;t know if it<br>
        matters<br>
        (there  seem  to  be  a  lot  of coverity defects that have<br>
        been fixed<br>
        between rc7 and a1).<br>
         <br>
    Can you get a core file and a stack trace?<br>
<br>
 Rich, just as i thought, this crash happens only with today&#39;s snapshot of 1.2.7.a1 version only. I&#39;ve compiled 1.2.6.rc7 and the replication works smoothly and without any problem. I didn&#39;t have a lot of time to generate a stack trace because i was migrating our production servers. I thought the latest build should be stable but it seems that the changes between 6rc7 and 7a1 introduce some problems with incremental replication as well as with apostrophs in DN (my second mail). So for now i will migrate to 1.2.6.rc7. I&#39;ll test the a1 version later when i will have time...<br>


</div></div></blockquote>
Thanks for the confirmation.  Yeah, the 1.2.7 (master) is unstable right now.  There have been a lot of changes going in that haven&#39;t been fully tested with our test suite (we&#39;re also having to update the test suite).<br>

</blockquote><div><br>I wanted to make a  debug build of the server to test the incremental replication crash i&#39;ve seen yesterday and used the following commands :<br>export CFLAGS=&quot;-g&quot;<br>export CXXFLAGS=&quot;-g&quot;<br>

export USE_64=1<br>./configure --prefix=/Local/dirsrv --enable-debug --enable-autobind<br><br>Are these parameters correct? Is there any other way to generate the debug info?<br><br>However the debug build i&#39;ve obtained (from the stable 1.2.6.rc7) in this way crashes during its startup if i activate USN plugin  with ldapmodify just after setup-ds-admin, then stop-start:<br>

<br>dn: cn=USN,cn=plugins,cn=config<br>changetype: modify<br>replace: nsslapd-pluginEnabled<br>nsslapd-pluginEnabled: on<br><br><br>Non-debug build does not crash, by the way... I think it&#39;s because of the assertion being executed only in debug builds?<br>

<br><br>Here is the stack trace :<br><br>[root@ldap-model Admin]#  gdb /Local/dirsrv/sbin/ns-slapd<br>GNU gdb (GDB) Red Hat Enterprise Linux (7.0.1-23.el5_5.2)<br>Copyright (C) 2009 Free Software Foundation, Inc.<br>License GPLv3+: GNU GPL version 3 or later &lt;<a href="http://gnu.org/licenses/gpl.html">http://gnu.org/licenses/gpl.html</a>&gt;<br>

This is free software: you are free to change and redistribute it.<br>There is NO WARRANTY, to the extent permitted by law.  Type &quot;show copying&quot;<br>and &quot;show warranty&quot; for details.<br>This GDB was configured as &quot;x86_64-redhat-linux-gnu&quot;.<br>

For bug reporting instructions, please see:<br>&lt;<a href="http://www.gnu.org/software/gdb/bugs/">http://www.gnu.org/software/gdb/bugs/</a>&gt;...<br>Reading symbols from /Local/dirsrv/sbin/ns-slapd...done.<br>(gdb) set follow-fork-mode child<br>

(gdb) set arg -D /Local/dirsrv/etc/dirsrv/slapd-dmz -i /Local/dirsrv/var/run/dirsrv/slapd-dmz.pid -w /Local/dirsrv/var/run/dirsrv/slapd-dmz.startpid         <br>(gdb) run<br>Starting program: /Local/dirsrv/sbin/ns-slapd -D /Local/dirsrv/etc/dirsrv/slapd-dmz -i /Local/dirsrv/var/run/dirsrv/slapd-dmz.pid -w /Local/dirsrv/var/run/dirsrv/slapd-dmz.startpid         <br>

[Thread debugging using libthread_db enabled]<br>[New process 32401]<br>[Thread debugging using libthread_db enabled]<br>[New Thread 0x40a00940 (LWP 32402)]<br>[New Thread 0x41401940 (LWP 32403)]<br>[New Thread 0x41e02940 (LWP 32404)]<br>

[New Thread 0x42803940 (LWP 32405)]<br>[New Thread 0x43204940 (LWP 32406)]<br>[New Thread 0x43c05940 (LWP 32407)]<br>[New Thread 0x44606940 (LWP 32408)]<br>[New Thread 0x45007940 (LWP 32409)]<br>[New Thread 0x45a08940 (LWP 32410)]<br>

<br>Program received signal SIGABRT, Aborted.<br>[Switching to Thread 0x2aaaabee5e00 (LWP 32401)]<br>0x000000389d430265 in raise () from /lib64/libc.so.6<br>(gdb) bt<br>#0  0x000000389d430265 in raise () from /lib64/libc.so.6<br>

#1  0x000000389d431d10 in abort () from /lib64/libc.so.6<br>#2  0x00002aaaab21d61c in PR_Assert () from /usr/lib64/libnspr4.so<br>#3  0x00002aaaaab33655 in slapi_mods_add_one_element (smods=0x7fffffff9ee0) at ldap/servers/slapd/modutil.c:178<br>

#4  0x00002aaaaab336de in slapi_mods_insert_at (smods=0x7fffffff9ee0, mod=0xacc100, pos=3) at ldap/servers/slapd/modutil.c:196<br>#5  0x00002aaaaab33974 in slapi_mods_add_ldapmod (smods=0x7fffffff9ee0, mod=0xacc100) at ldap/servers/slapd/modutil.c:270<br>

#6  0x00002aaaaab33aa2 in slapi_mods_add_modbvps (smods=0x7fffffff9ee0, modtype=130, type=0x2aaab1af998c &quot;entryusn&quot;, bvps=0x7fffffff9ed0) at ldap/servers/slapd/modutil.c:309<br>#7  0x00002aaab1af84f4 in _usn_mod_next_usn (mods=0x7fffffff9f30, be=0x909900) at ldap/servers/plugins/usn/usn.c:378<br>

#8  0x00002aaab1af8773 in usn_bepreop_modify (pb=0x7fffffffe3f0) at ldap/servers/plugins/usn/usn.c:478<br>#9  0x00002aaaaab41194 in plugin_call_func (list=0x7ce1c0, operation=451, pb=0x7fffffffe3f0, call_one=0) at ldap/servers/slapd/plugin.c:1424<br>

#10 0x00002aaaaab41075 in plugin_call_list (list=0x7a5660, operation=451, pb=0x7fffffffe3f0) at ldap/servers/slapd/plugin.c:1386<br>#11 0x00002aaaaab3f586 in plugin_call_plugins (pb=0x7fffffffe3f0, whichfunction=451) at ldap/servers/slapd/plugin.c:379<br>

#12 0x00002aaaafab9b73 in ldbm_back_modify (pb=0x7fffffffe3f0) at ldap/servers/slapd/back-ldbm/ldbm_modify.c:300<br>#13 0x00002aaaaab312b4 in op_shared_modify (pb=0x7fffffffe3f0, pw_change=0, old_pw=0x0) at ldap/servers/slapd/modify.c:834<br>

#14 0x00002aaaaab3090f in modify_internal_pb (pb=0x7fffffffe3f0) at ldap/servers/slapd/modify.c:554<br>#15 0x00002aaaaab305f9 in slapi_modify_internal_pb (pb=0x7fffffffe3f0) at ldap/servers/slapd/modify.c:443<br>#16 0x00002aaaaab4b917 in pw_mod_allowchange_aci (pw_prohibit_change=0) at ldap/servers/slapd/pw.c:1297<br>

#17 0x0000000000427195 in pw_init () at ldap/servers/slapd/pw_mgmt.c:301<br>#18 0x000000000041e514 in main (argc=7, argv=0x7fffffffe8d8) at ldap/servers/slapd/main.c:1218<br><br><br><br>(gdb) bt full<br>#0  0x000000389d430265 in raise () from /lib64/libc.so.6<br>

No symbol table info available.<br>#1  0x000000389d431d10 in abort () from /lib64/libc.so.6<br>No symbol table info available.<br>#2  0x00002aaaab21d61c in PR_Assert () from /usr/lib64/libnspr4.so<br>No symbol table info available.<br>

#3  0x00002aaaaab33655 in slapi_mods_add_one_element (smods=0x7fffffff9ee0) at ldap/servers/slapd/modutil.c:178<br>        need = 5<br>#4  0x00002aaaaab336de in slapi_mods_insert_at (smods=0x7fffffff9ee0, mod=0xacc100, pos=3) at ldap/servers/slapd/modutil.c:196<br>

        i = -24896<br>        a = {a_type = 0x0, a_present_values = {va = 0x0}, a_flags = 0, a_plugin = 0x0, a_deleted_values = {va = 0x0}, a_listtofree = 0x0, a_next = 0x0, a_deletioncsn = 0x0, a_mr_eq_plugin = 0x0, <br>

          a_mr_ord_plugin = 0x0, a_mr_sub_plugin = 0x0}<br>#5  0x00002aaaaab33974 in slapi_mods_add_ldapmod (smods=0x7fffffff9ee0, mod=0xacc100) at ldap/servers/slapd/modutil.c:270<br>No locals.<br>#6  0x00002aaaaab33aa2 in slapi_mods_add_modbvps (smods=0x7fffffff9ee0, modtype=130, type=0x2aaab1af998c &quot;entryusn&quot;, bvps=0x7fffffff9ed0) at ldap/servers/slapd/modutil.c:309<br>

        mod = 0xacc100<br>#7  0x00002aaab1af84f4 in _usn_mod_next_usn (mods=0x7fffffff9f30, be=0x909900) at ldap/servers/plugins/usn/usn.c:378<br>        smods = {mods = 0xadbd90, num_elements = 4, num_mods = 3, iterator = 0, free_mods = 0}<br>

        bvals = {0x7fffffff9ec0, 0x0}<br>        usn_berval = {bv_len = 1, bv_val = 0x7fffffff9e80 &quot;0&quot;}<br>        counter_buf = &quot;0\000\377\377\377\177\000\000f0\264\252\252*\000\000\000\237\377\377\377\177\000\000\300\001\000\000\001\000\000\000 \266\254\000\000\000\000\000\360\343\377\377\377\177\000\000\000\237\377\377\303\001\000\000\300\341|\000\000\000\000&quot;<br>

#8  0x00002aaab1af8773 in usn_bepreop_modify (pb=0x7fffffffe3f0) at ldap/servers/plugins/usn/usn.c:478<br>        mods = 0xadbd90<br>        be = 0x909900<br>        rc = 0<br>#9  0x00002aaaaab41194 in plugin_call_func (list=0x7ce1c0, operation=451, pb=0x7fffffffe3f0, call_one=0) at ldap/servers/slapd/plugin.c:1424<br>

        n = 0x7cbfb0 &quot;USN bepreoperation plugin&quot;<br>        func = 0x2aaab1af86f0 &lt;usn_bepreop_modify&gt;<br>        rc = 0<br>        return_value = 0<br>        count = 1<br>#10 0x00002aaaaab41075 in plugin_call_list (list=0x7a5660, operation=451, pb=0x7fffffffe3f0) at ldap/servers/slapd/plugin.c:1386<br>

No locals.<br>#11 0x00002aaaaab3f586 in plugin_call_plugins (pb=0x7fffffffe3f0, whichfunction=451) at ldap/servers/slapd/plugin.c:379<br>        p = 0x792340<br>        plugin_list_number = 3<br>        rc = 0<br>        do_op = 1<br>

#12 0x00002aaaafab9b73 in ldbm_back_modify (pb=0x7fffffffe3f0) at ldap/servers/slapd/back-ldbm/ldbm_modify.c:300<br>        be = 0x909900<br>        inst = 0x9069c0<br>        li = 0x793140<br>        e = 0x7678d0<br>        ec = 0xb11470<br>

        postentry = 0x0<br>        mods = 0xadbd90<br>        smods = {mods = 0x0, num_elements = 0, num_mods = 0, iterator = 0, free_mods = 0}<br>        txn = {back_txn_txn = 0x0}<br>        parent_txn = 0x0<br>        retval = -1<br>

        msg = 0xd700acf4c0 &lt;Address 0xd700acf4c0 out of bounds&gt;<br>---Type &lt;return&gt; to continue, or q &lt;return&gt; to quit---<br>        errbuf = 0x0<br>        retry_count = 0<br>        disk_full = 0<br>        ldap_result_code = 0<br>

        ldap_result_message = 0x0<br>        rc = 0<br>        operation = 0xad7a00<br>        dblock_acquired = 1<br>        addr = 0xad7ac8<br>        change_entry = 0<br>        ec_in_cache = 0<br>        is_fixup_operation = 0<br>

        is_ruv = 0<br>        opcsn = 0x0<br>        i = 0<br>#13 0x00002aaaaab312b4 in op_shared_modify (pb=0x7fffffffe3f0, pw_change=0, old_pw=0x0) at ldap/servers/slapd/modify.c:834<br>        rc = -1<br>        be = 0x909900<br>

        pse = 0x2aaaaaafcc7d<br>        referral = 0x0<br>        ecopy = 0x0<br>        e = 0x0<br>        ebuf = &quot;\300\302\377\377\377\177\000\000L:\257\252\252*\000\000\320zz\000\000\000\000\000\000\303\377\377\377\177\000\000\340\345\377\377\377\177\000\000*+\264\252\252*\000\000\000\000\000\000\000\000\000\000\300FB&quot;, &#39;\000&#39; &lt;repeats 13 times&gt;&quot;\220, \263v\000\000\000\000\000\016\000\000\000\000\000\000\000\022\252t&quot;, &#39;\000&#39; &lt;repeats 13 times&gt;, &quot;$\220\000\235\001\000\000\000p\257Я\252*\000\000\220*y&quot;, &#39;\000&#39; &lt;repeats 13 times&gt;&quot;\377, \377\377\377&quot;, &#39;\000&#39; &lt;repeats 12 times&gt;, &quot;(8\357\235\070&quot;, &#39;\000&#39; &lt;repeats 11 times&gt;&quot;\360, b\220\000\000\000\000\000\020\304\377\377\377\177\000\000\340\310\377\377\377\177\000\000\000`\020\022r*\000\000U\315\000\235\070\000\000\000\005&quot;, &#39;\000&#39; &lt;repeats 31 times&gt;, &quot;p\257Я\252*\000\000\300\310\377\377\377\177\000\000\260\006\221\000\000\000\000\000\342(\001\235\070\000\000\000\330\226د\252*\000\000\260\006\221&quot;, &#39;\000&#39; &lt;repeats 13 times&gt;, &quot;\020\304\377\377\377\177\000\000\360b\220\000\000\000\000\000\300&quot;...<br>

        dn = 0x90e980 &quot;o=netscaperoot&quot;<br>        sdn = {flag = 4 &#39;\004&#39;, dn = 0x90e980 &quot;o=netscaperoot&quot;, ndn = 0x766af0 &quot;o=netscaperoot&quot;, ndn_len = 14}<br>        mods = 0x86d920<br>

        pw_mod = 0x7fffffffe310<br>        tmpmods = 0x86d920<br>        smods = {mods = 0x0, num_elements = 0, num_mods = 0, iterator = 0, free_mods = 0}<br>        unhashed_pw_smod = {mods = 0x0, num_elements = 0, num_mods = 0, iterator = 0, free_mods = 1}<br>

        repl_op = 0<br>        internal_op = 32<br>        lastmod = 1<br>        skip_modified_attrs = 0<br>        unhashed_pw_attr = 0x0<br>        operation = 0xad7a00<br>        errorbuf = &quot;\000\372N\261\252*\000\000Ȣ\377\377\016\000\000\000\000\000\000\000\001\000\000\000\360\r}\000\000\000\000\000\234dž\000\000\000\000\000\026\264I\260\377\377\377\377`\242\377\377\377\177\000\000\325\067\267\252\252*\000\000Ȣ\377\377\377\177\000\000Ȣ\377\377\000\000\000\000p\242\377\377\001\000\000\000\b\275\255\000\000\000\000\000\340\242\377\377\377\177\000\000p\274\255\000\000\000\000\000\000\000\000\000\377\177&quot;, &#39;\000&#39; &lt;repeats 18 times&gt;, &quot;k&#39;G\235\070\000\000\000\000\000\000\000e\000\000\000n\000\000\000\377\377\377\377\000\243\377\377\377\177\000\000e\324N\261\252*\000\000\060\251\254\000\000\000\000\000\b\275\255\000\000\000\000\000@\243\377\377\377\177\000\000p\274\255\000\000\000\000\000\320\350\377\377\377\177\000\000\b\275\255\000\000\000\000\000`\243\377\377\377\177\000\000p\274\255\000\000\000\000\000\320\350\377\377\377\177&quot;, &#39;\000&#39; &lt;repeats 18 times&gt;, &quot;k&#39;G\235\070\000\000\000P\215y\000\b\002\000\000\b\275\255\000\000\000\000\000\000\000\000\000\001\000\000\000L:\257\252\252*\000\000\060\340t&quot;...<br>

        err = 0<br>        lc_mod = 0x0<br>        p = 0x0<br>        numattr = 11334848<br>        i = 0<br>#14 0x00002aaaaab3090f in modify_internal_pb (pb=0x7fffffffe3f0) at ldap/servers/slapd/modify.c:554<br>---Type &lt;return&gt; to continue, or q &lt;return&gt; to quit---<br>

        controls = 0x0<br>        pwpolicy_ctrl = 0<br>        op = 0xad7a00<br>        opresult = 0<br>        normalized_mods = 0x86d920<br>        mods = 0x7fffffffe670<br>        mod = 0x86d928<br>        smods = {mods = 0x100acf4c0, num_elements = -7184, num_mods = 32767, iterator = -7184, free_mods = 32767}<br>

        pw_change = 0<br>        old_pw = 0x0<br>#15 0x00002aaaaab305f9 in slapi_modify_internal_pb (pb=0x7fffffffe3f0) at ldap/servers/slapd/modify.c:443<br>No locals.<br>#16 0x00002aaaaab4b917 in pw_mod_allowchange_aci (pw_prohibit_change=0) at ldap/servers/slapd/pw.c:1297<br>

        pb = {pb_backend = 0x909900, pb_conn = 0x0, pb_op = 0xad7a00, pb_plugin = 0x7ce1c0, pb_opreturn = 0, pb_object = 0x0, pb_destroy_fn = 0, pb_requestor_isroot = 1, pb_config_fname = 0x0, <br>          pb_config_lineno = 0, pb_config_argc = 0, pb_config_argv = 0x0, pb_target_entry = 0x0, pb_existing_dn_entry = 0xadc210, pb_existing_uniqueid_entry = 0x0, pb_parent_entry = 0x0, <br>

          pb_newparent_entry = 0x0, pb_pre_op_entry = 0xadbed0, pb_post_op_entry = 0x0, pb_seq_type = 0, pb_seq_attrname = 0x0, pb_seq_val = 0x0, pb_ldif_file = 0x0, pb_removedupvals = 0, <br>          pb_db2index_attrs = 0x0, pb_ldif2db_noattrindexes = 0, pb_ldif_printkey = 0, pb_instance_name = 0x0, pb_task = 0x0, pb_task_flags = 0, pb_mr_filter_match_fn = 0, pb_mr_filter_index_fn = 0, <br>

          pb_mr_filter_reset_fn = 0, pb_mr_index_fn = 0, pb_mr_oid = 0x0, pb_mr_type = 0x0, pb_mr_value = 0x0, pb_mr_values = 0x0, pb_mr_keys = 0x0, pb_mr_filter_reusable = 0, <br>          pb_mr_query_operator = 0, pb_mr_usage = 0, pb_pwd_storage_scheme_user_passwd = 0x0, pb_pwd_storage_scheme_db_passwd = 0x0, pb_managedsait = 0, pb_internal_op_result = 0, <br>

          pb_plugin_internal_search_op_entries = 0x0, pb_plugin_internal_search_op_referrals = 0x0, pb_plugin_identity = 0xacf4c0, pb_parent_txn = 0x0, pb_txn = 0x0, pb_dbsize = 0, <br>          pb_ldif_files = 0x0, pb_ldif_include = 0x0, pb_ldif_exclude = 0x0, pb_ldif_dump_replica = 0, pb_ldif_dump_uniqueid = 0, pb_ldif_generate_uniqueid = 0, pb_ldif_namespaceid = 0x0, <br>

          pb_ldif_encrypt = 0, pb_operation_notes = 0, pb_slapd_argc = 0, pb_slapd_argv = 0x0, pb_slapd_configdir = 0x0, pb_ctrls_arg = 0x0, pb_dse_dont_add_write = 0, pb_dse_add_merge = 0, <br>          pb_dse_dont_check_dups = 0, pb_dse_is_primary_file = 0, pb_schema_flags = 0, pb_result_code = 0, pb_result_text = 0x0, pb_result_matched = 0x0, pb_nentries = 0, urls = 0x0, <br>

          pb_import_entry = 0x0, pb_import_state = 0, pb_destroy_content = 0, pb_dse_reapply_mods = 0, pb_urp_naming_collision_dn = 0x0, pb_urp_tombstone_uniqueid = 0x0, pb_server_running = 0, <br>          pb_backend_count = 1, pb_pwpolicy_ctrl = 0, pb_vattr_context = 0x0, pb_substrlens = 0x0, pb_plugin_enabled = 0, pb_search_ctrls = 0x0, pb_mr_index_sv_fn = 0}<br>

        rc = 32<br>        base = 0x90feb0<br>        values_mod = {0x2aaaaab8f898 &quot;(targetattr = \&quot;userPassword\&quot;) ( version 3.0; acl \&quot;disallow_pw_change_aci\&quot;; deny (write ) userdn = \&quot;ldap:///self\&quot;;)&quot;, 0x0}<br>

        mod = {mod_op = 1, mod_type = 0x2aaaaab8f88d &quot;aci&quot;, mod_vals = {modv_strvals = 0x7fffffffe6a0, modv_bvals = 0x7fffffffe6a0}}<br>        mods = {0x7fffffffe680, 0x0}<br>        be = 0x909900<br>        cookie = 0xacf830 &quot;\004&quot;<br>

#17 0x0000000000427195 in pw_init () at ldap/servers/slapd/pw_mgmt.c:301<br>        slapdFrontendConfig = 0x2aaaaadbcc00<br>#18 0x000000000041e514 in main (argc=7, argv=0x7fffffffe8d8) at ldap/servers/slapd/main.c:1218<br>

        return_value = 0<br>        slapdFrontendConfig = 0x2aaaaadbcc00<br>        ports_info = {n_port = 389, s_port = 636, n_listenaddr = 0x753590, s_listenaddr = 0x74f9a0, n_socket = 0x751610, i_listenaddr = 0x0, i_port = 0, i_socket = 0x0, s_socket = 0x0}<br>

<br><br><br></div></div><br>