Full_Name: Rein Tollevik
Version: CVS HEAD/RE_24
OS: Irrelevant
URL:
Submission from: (NULL) (81.93.160.250)
I had a couple of seg. faults when resync'ing my servers after upgrading to the
upcoming 2.4.16 release. Looks as if a copy of the backend must be used when
testing the filter in syncprov_matchops. See the gdb output at the end. Note,
some function names are incorrect due to optimization. A fix is coming.
Rein Tollevik
Basefarm AS
Program terminated with signal 11, Segmentation fault.
#0 0x080989a1 in access_allowed_mask (op=0x8c98dc54, e=0x83f827c,
desc=0x81f2008, val=0x0, access=ACL_SEARCH, state=0x0, maskp=0x0)
at acl.c:454
454 if ( op->o_bd->bd_info->bi_access_allowed ) {
(gdb) where
#0 0x080989a1 in access_allowed_mask (op=0x8c98dc54, e=0x83f827c,
desc=0x81f2008, val=0x0, access=ACL_SEARCH, state=0x0, maskp=0x0)
at acl.c:454
#1 0x0809603b in test_filter (op=0x8c98dc54, e=0x83f827c, f=0x82ffb0ac)
at filterentry.c:821
#2 0xb7a3d740 in syncprov_matchops (op=0x8c98edc8, opc=0x7ae2d620, saveit=0)
at syncprov.c:1257
#3 0xb7a3e5cd in syncprov_op_response (op=0x8c98edc8, rs=0x8c98e890)
at syncprov.c:1801
#4 0x08084e5d in slap_response_play (op=0x8c98edc8, rs=0x8c98e890)
at result.c:350
#5 0x0808821c in send_ldap_response (op=0x8c98edc8, rs=0x8c98e890)
at result.c:424
#6 0x080893b3 in slap_send_ldap_result (op=0x8c98edc8, rs=0x8c98e890)
at result.c:693
#7 0x08109928 in bdb_add (op=0x8c98edc8, rs=0x8c98e890) at add.c:494
#8 0x080e13cf in overlay_op_walk (op=0x8c98edc8, rs=0x8c98e890, which=op_add,
oi=0x829a000, on=0x829b2b0) at backover.c:669
#9 0x080e19b5 in over_op_func (op=0x8c98edc8, rs=0x8c98e890, which=op_add)
at backover.c:721
#10 0x080e1a95 in over_op_add (op=0x8c98edc8, rs=0x8c98e890) at backover.c:767
#11 0x080df61f in glue_op_func (op=0x8c98edc8, rs=0x8c98e890) at backglue.c:238
#12 0x080e1379 in overlay_op_walk (op=0x8c98edc8, rs=0x8c98e890, which=op_add,
oi=0x82a3098, on=0x82a3298) at backover.c:659
#13 0x080e19b5 in over_op_func (op=0x8c98edc8, rs=0x8c98e890, which=op_add)
at backover.c:721
#14 0x080e1a95 in over_op_add (op=0x8c98edc8, rs=0x8c98e890) at backover.c:767
#15 0x080d962f in syncrepl_entry (si=0x829b140, op=0x8c98edc8,
entry=0x83f827c, modlist=0x8c98ebf8, syncstate=1, syncUUID=0x8c98ec50,
syncCSN=0x0) at syncrepl.c:2187
#16 0x080dca39 in do_syncrep2 (op=0x8c98edc8, si=0x829b140) at syncrepl.c:892
#17 0x080de907 in do_syncrepl (ctx=0x8c98f2b8, arg=0x829a760)
at syncrepl.c:1361
#18 0x08075d59 in connection_read_thread (ctx=0x8c98f2b8, argv=0x4d)
at connection.c:1225
#19 0xb7fb3a20 in ldap_int_thread_pool_wrapper (xpool=0x81f8cf0) at tpool.c:663
#20 0xb7c53371 in start_thread () from /lib/tls/libpthread.so.0
#21 0xb7beaffe in clone () from /lib/tls/libc.so.6
(gdb) print op->o_bd->bd_info
$1 = (BackendInfo *) 0x0
(gdb) print op->o_bd
$2 = (BackendDB *) 0x8a4c4814
(gdb) frame 2
#2 0xb7a3d740 in syncprov_matchops (op=0x8c98edc8, opc=0x7ae2d620, saveit=0)
at syncprov.c:1257
1257 rc = test_filter( &op2, e, ss->s_op->ors_filter );
(gdb) print op2.o_bd
$3 = (BackendDB *) 0x8a4c4814
(gdb) print *op2.o_bd
$4 = {bd_info = 0x0, bd_self = 0x0,
be_ctrls = "\000\000\000\000\214\221\030\b�\001�\204\210HL\212\201�\f\b
", '\0' <repeats 11 times>, be_flags = 0, be_restrictops = 0, be_requires = 0,
be_ssf_set = {sss_ssf = 0, sss_transport = 0, sss_tls = 0, sss_sasl = 1,
sss_update_ssf = 3086609409, sss_update_transport = 2142916662,
sss_update_tls = 2320255160, sss_update_sasl = 1, sss_simple_bind = 0},
be_suffix = 0x0, be_nsuffix = 0x1, be_schemadn = {bv_len = 32,
bv_val = 0xb7fa418c "\204�"}, be_schemandn = {bv_len = 0,
bv_val = 0x8a4c4a0c "\002"}, be_rootdn = {bv_len = 2320255176,
bv_val = 0xb7f9c44b
"\203�,[^_]�U\211�\203�8\211]�\211u�\211}��w���\201�%}"},
be_rootndn = {bv_len = 2320255500,
bv_val = 0x8a4c48b8
"\004\001�\204\214A��\fJL\212\fJL\212�HL\212?���\001"},
be_rootpw = {bv_len = 1, bv_val = 0x0}, be_max_deref_depth = 2229404096,
be_def_limit = {lms_t_soft = 1, lms_t_hard = 0, lms_s_soft = -1208355505,
lms_s_hard = 1, lms_s_unchecked = 24, lms_s_pr = -2065563388,
lms_s_pr_hide = -1208335988, lms_s_pr_total = -1974711796},
be_limits = 0x8a4c4a0c, be_acl = 0x8a4c48f8, be_dfltaccess = -1208367041,
be_update_ndn = {bv_len = 1, bv_val = 0x18 ""}, be_update_refs = 0x84e201c0,
be_pending_csn_list = 0x818918c, be_pcl_mutex = {__m_reserved = 0,
__m_count = 48, __m_owner = 0x7fba5030, __m_kind = -1208335988,
__m_lock = {__status = -1, __spinlock = -1974711796}},
be_syncinfo = 0x8a4c4918, be_pb = 0xb7f9c961, be_cf_ocs = 0x8a4c4a0c,
be_private = 0x81f24f8, be_next = {stqe_next = 0xf}}