Hi , We are seeing a crash when we are trying to do ACL rulematch within a lookup context.
#0 0x00007f7786498ca0 in multi_acl_match_get_applied_ace_index (am=0x7f77866caa00 <acl_main>, is_ip6=0, match=0x7f7791fff610) at src/plugins/acl/public_inlines.h:625 #1 0x00007f7786498f27 in hash_multi_acl_match_5tuple (p_acl_main=0x7f77866caa00 <acl_main>, lc_index=6463, pkt_5tuple=0x7f7791fff610, is_ip6=0, action=0x7f7791fff6b4 "", acl_pos_p=0x7f7791fff6a0, acl_match_p=0x7f7791fff6a4, rule_match_p=0x7f7791fff6a8, trace_bitmap=0x7f7791fff6ac) at src/plugins/acl/public_inlines.h:652 #2 0x00007f778649912a in acl_plugin_match_5tuple_inline (p_acl_main=0x7f77866caa00 <acl_main>, lc_index=6463, pkt_5tuple=0x7f7791fff610, is_ip6=0, r_action=0x7f7791fff6b4 "", r_acl_pos_p=0x7f7791fff6a0, r_acl_match_p=0x7f7791fff6a4, r_rule_match_p=0x7f7791fff6a8, trace_bitmap=0x7f7791fff6ac) at src/plugins/acl/public_inlines.h:690 The code in public_inlines.h:625 corresponds to applied_hash_ace_entry_t *pae = vec_elt_at_index ((*applied_hash_aces), curr_index); Here the curr_index is 0 and (*applied_hash_aces)[0] is 0x0. Due to this, we are getting SIGSEGV. The lookup context and the ACL rules within that seems to be fine. What could be the reason this *applied_hash_aces can go wrong. One more thing is this crash is happening only when we add acl rules and lookup contexts from multiple workers. When we move to single worker, this crash is not happening. Though we are adding/deleting the ACLs/lookup contexts from different workers, we are protecting them using sping locks. Any help on this please. We are struggling to find what's the reason for this crash as this is happening only at high number of ACLs / calls. The acl rules are around 10K. Please let us know of any hints to look around. -- Thanks & Regards, Murthy
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#16973): https://lists.fd.io/g/vpp-dev/message/16973 Mute This Topic: https://lists.fd.io/mt/75527176/21656 Group Owner: vpp-dev+ow...@lists.fd.io Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-