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

Re: RE24 testing (pre-testing on 2.4.27)



Michael StrÃder wrote:
> Howard Chu wrote:
>> Need backtrace from SEGV, steps to reproduce. Not seeing it here.
> 
> Note the very same action works with OpenLDAP 2.4.26.
> 
> (gdb) info threads
>   2 Thread 14284  0x00007f7ef725638c in pthread_cond_wait@@GLIBC_2.3.2 () from
> /lib64/libpthread.so.0
> * 1 Thread 14283  0x00007f7ef62e5a4b in memset () from /lib64/libc.so.6
> (gdb) thread apply all bt
> 
> Thread 2 (Thread 14284):
> #0  0x00007f7ef725638c in pthread_cond_wait@@GLIBC_2.3.2 () from
> /lib64/libpthread.so.0
> #1  0x00007f7ef828bf33 in ldap_pvt_thread_cond_wait (cond=0x7f7ef44e33e0,
> mutex=0x7f7ef44e33a0) at thr_posix.c:277
> #2  0x00007f7ef429c215 in bdb_tool_trickle_task (ctx=0x7f7ef06deb60,
> ptr=0x8a34a0) at tools.c:1280
> #3  0x00007f7ef828aa50 in ldap_int_thread_pool_wrapper (xpool=0x7c4cd0) at
> tpool.c:685
> #4  0x00007f7ef7251a3f in start_thread () from /lib64/libpthread.so.0
> #5  0x00007f7ef633866d in clone () from /lib64/libc.so.6
> #6  0x0000000000000000 in ?? ()
> 
> Thread 1 (Thread 14283):
> #0  0x00007f7ef62e5a4b in memset () from /lib64/libc.so.6
> #1  0x00007f7ef429a806 in bdb_tool_index_add (op=0x7fff3bdb5720, txn=0x0,
> e=0x8a6858) at tools.c:596
> #2  0x00007f7ef429ade2 in hdb_tool_entry_put (be=0x869510, e=0x8a6858,
> text=0x7fff3bdb5980) at tools.c:695
> #3  0x00000000004d27a4 in slapadd (argc=9, argv=0x7fff3bdb5cf8) at slapadd.c:428
> #4  0x000000000041597e in main (argc=9, argv=0x7fff3bdb5cf8) at main.c:410

It's a simple "slapadd -q". Without -q it works fine. git master and RE24 seg
faults with -q.

More from gdb:

(gdb) thread 1
[Switching to thread 1 (Thread 14659)]#3  0x00000000004d27a4 in slapadd
(argc=9, argv=0x7fffaeed3468) at slapadd.c:428
428				id = be->be_entry_put( be, erec.e, &bvtext );
(gdb) bt full
#0  0x00007f0c18638a4b in memset () from /lib64/libc.so.6
No symbol table info available.
#1  0x00007f0c165ed806 in bdb_tool_index_add (op=0x7fffaeed2e90, txn=0x0,
e=0x8a6858) at tools.c:596
        ir = 0x0
        i = 0
        rc = 425324080
        a = 0x7fffaeed2e70
        bdb = 0x8696b0
#2  0x00007f0c165edde2 in hdb_tool_entry_put (be=0x869510, e=0x8a6858,
text=0x7fffaeed30f0) at tools.c:695
        rc = 0
        bdb = 0x8696b0
        tid = 0x0
        op = {o_hdr = 0x7fffaeed2d40, o_tag = 0, o_time = 0, o_tincr = 0, o_bd
= 0x869510, 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 '\000'}, rs_increment =
0}, oq_modrdn = {rs_mods = {rs_modlist = 0x0, rs_no_opattrs = 0 '\000'},
              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
'\000', o_is_auth_check = 0 '\000', o_dont_replicate = 0 '\000',
          o_acl_priv = ACL_NONE, o_nocaching = 0 '\000', o_delete_glue_parent
= 0 '\000', o_no_schema_check = 0 '\000', o_no_subordinate_glue = 0 '\000',
          o_ctrlflag = '\000' <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 = 0x755080, oh_counters = 0x0, oh_log_prefix = '\000'
<repeats 255 times>}
        __PRETTY_FUNCTION__ = "hdb_tool_entry_put"
#3  0x00000000004d27a4 in slapadd (argc=9, argv=0x7fffaeed3468) at slapadd.c:428
        textbuf = '\000' <repeats 255 times>
        textlen = 256
        erec = {e = 0x8a6858, lineno = 1, nextline = 20}
        bvtext = {bv_len = 256, bv_val = 0x7fffaeed3110 ""}
        thr = 139689963340960
        id = 4
        ldifrc = 1
        rc = 0
        stat_buf = {st_dev = 8, st_ino = 84778, st_nlink = 1, st_mode = 4480,
st_uid = 500, st_gid = 100, __pad0 = 0, st_rdev = 0, st_size = 0,
          st_blksize = 4096, st_blocks = 0, st_atim = {tv_sec = 1320667075,
tv_nsec = 601664002}, st_mtim = {tv_sec = 1320667075, tv_nsec = 625664002},
          st_ctim = {tv_sec = 1320667075, tv_nsec = 625664002}, __unused = {0,
0, 0}}
#4  0x000000000041597e in main (argc=9, argv=0x7fffaeed3468) at main.c:410
        i = 0
        no_detach = 0
        rc = 1
        urls = 0x0
        username = 0x0
        groupname = 0x0
        sandbox = 0x0
        syslogUser = 160
        pid = 32767
        waitfds = {1, 32524}
        g_argc = 9
        g_argv = 0x7fffaeed3468
        configfile = 0x0
        configdir = 0x0
        serverName = 0x7fffaeed4305 "slapadd"
        serverMode = 1
        scp = 0x0
        scp_entry = 0x0
        debug_unknowns = 0x0
        syslog_unknowns = 0x0
        serverNamePrefix = 0x4f3ae8 ""
        l = 0
        slapd_pid_file_unlink = 0
        slapd_args_file_unlink = 0
        firstopt = 1
        __PRETTY_FUNCTION__ = "main"
(gdb) thread 2
[Switching to thread 2 (Thread 14660)]#0  0x00007f0c195a938c in
pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
(gdb) bt full
#0  0x00007f0c195a938c in pthread_cond_wait@@GLIBC_2.3.2 () from
/lib64/libpthread.so.0
No symbol table info available.
#1  0x00007f0c1a5def33 in ldap_pvt_thread_cond_wait (cond=0x7f0c168363e0,
mutex=0x7f0c168363a0) at thr_posix.c:277
No locals.
#2  0x00007f0c165ef215 in bdb_tool_trickle_task (ctx=0x7f0c12a31b60,
ptr=0x8a34a0) at tools.c:1280
        env = 0x8a34a0
        wrote = 32524
#3  0x00007f0c1a5dda50 in ldap_int_thread_pool_wrapper (xpool=0x7c4cd0) at
tpool.c:685
        pool = 0x7c4cd0
        task = 0x8baad0
        work_list = 0x7c4d68
        ctx = {ltu_id = 139689829017344, ltu_key = {{ltk_key = 0x0, ltk_data =
0x0, ltk_free = 0}, {ltk_key = 0x0, ltk_data = 0x0, ltk_free = 0}, {
              ltk_key = 0x0, ltk_data = 0x0, ltk_free = 0}, {ltk_key = 0x0,
ltk_data = 0x0, ltk_free = 0}, {ltk_key = 0x0, ltk_data = 0x0,
              ltk_free = 0x7f0c12a31c60}, {ltk_key = 0x0, ltk_data =
0x7f0c12a31c60, ltk_free = 0xe}, {ltk_key = 0x0, ltk_data = 0xa8428197,
              ltk_free = 0x7f0c1a8361a1 <do_lookup_x+1537>}, {ltk_key = 0x0,
ltk_data = 0x17, ltk_free = 0x2a10a06}, {ltk_key = 0x0,
              ltk_data = 0x7f0c12a31db0, ltk_free = 0x7f0c185bbc40}, {ltk_key
= 0x0, ltk_data = 0x0, ltk_free = 0}, {ltk_key = 0x0,
              ltk_data = 0x7f0c1aa29000, ltk_free = 0}, {ltk_key = 0x0,
ltk_data = 0x7f0c1aa27000, ltk_free = 0x7f0c195a0d0f}, {ltk_key = 0x0,
              ltk_data = 0x7f0c1959ef68, ltk_free = 0x500000000}, {ltk_key =
0x0, ltk_data = 0x0, ltk_free = 0}, {ltk_key = 0x0, ltk_data = 0x7f0c12a31e00,
              ltk_free = 0x7f0c1aa26600}, {ltk_key = 0x0, ltk_data =
0x7f0c1aa29000, ltk_free = 0xa8428197}, {ltk_key = 0x0, ltk_data = 0x0,
              ltk_free = 0x7f0c1aa26600}, {ltk_key = 0x0, ltk_data = 0x0,
ltk_free = 0x1}, {ltk_key = 0x0, ltk_data = 0x0, ltk_free = 0}, {ltk_key = 0x0,
              ltk_data = 0x0, ltk_free = 0}, {ltk_key = 0x0, ltk_data =
0x7f0c12a31db0, ltk_free = 0x7f0c12a31dc8}, {ltk_key = 0x0,
              ltk_data = 0x7f0c195a0d0f, ltk_free = 0}, {ltk_key = 0x0,
ltk_data = 0x0, ltk_free = 0}, {ltk_key = 0x0, ltk_data = 0x0, ltk_free = 0}, {
              ltk_key = 0x0, ltk_data = 0x7f0c185c15c8, ltk_free =
0x7f0c1aa27000}, {ltk_key = 0x0, ltk_data = 0xffffffff, ltk_free = 0},
{ltk_key = 0x0,
              ltk_data = 0x218050, ltk_free = 0}, {ltk_key = 0x0, ltk_data =
0x3, ltk_free = 0x7f0c1959e000}, {ltk_key = 0x0, ltk_data = 0x5, ltk_free = 0}, {
              ltk_key = 0x0, ltk_data = 0x7f0c185c15c8, ltk_free = 0},
{ltk_key = 0x0, ltk_data = 0x0, ltk_free = 0x7fffaeed2f30}, {ltk_key = 0x0,
              ltk_data = 0x7f0c1a8401e5, ltk_free = 0x7f0c12a32700}}}
        kctx = 0x0
        i = 32
        keyslot = 135
        hash = 1295237255
        __PRETTY_FUNCTION__ = "ldap_int_thread_pool_wrapper"
#4  0x00007f0c195a4a3f in start_thread () from /lib64/libpthread.so.0
No symbol table info available.
#5  0x00007f0c1868b66d in clone () from /lib64/libc.so.6
No symbol table info available.
#6  0x0000000000000000 in ?? ()
No symbol table info available.