Hi guys, I’m testing the static arp. When I configured one hundred thousand static arp ,and delete to 34467th, there is a SIGABRT. More info is shown below:
VPP# set ip arp host-eth1 1.1.69.234 00:01:00:00:45:ea del /home/vpp/build-data/../src/vnet/fib/ip4_fib.c:230 (ip4_fib_table_destroy) assertion `0 == fib_table->ft_total_route_counts' fails Program received signal SIGABRT, Aborted. 0x00007ffff6168c37 in __GI_raise (sig=sig@entry=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:56 56 ../nptl/sysdeps/unix/sysv/linux/raise.c: (gdb) bt #0 0x00007ffff6168c37 in __GI_raise (sig=sig@entry=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:56 #1 0x00007ffff616c028 in __GI_abort () at abort.c:89 #2 0x00000000004061ef in os_panic () at /home/vpp/build-data/../src/vpp/vnet/main.c:302 #3 0x00007ffff693eb88 in debugger () at /home/vpp/build-data/../src/vppinfra/error.c:84 #4 0x00007ffff693ef8f in _clib_error (how_to_die=2, function_name=0x0, line_number=0, fmt=0x7ffff72f4758 "%s:%d (%s) assertion `%s' fails") at /home/vpp/build-data/../src/vppinfra/error.c:143 #5 0x00007ffff7176289 in ip4_fib_table_destroy (fib_index=0) at /home/vpp/build-data/../src/vnet/fib/ip4_fib.c:230 #6 0x00007ffff718346d in fib_table_destroy (fib_table=0x7fffb5a9cf00) at /home/vpp/build-data/../src/vnet/fib/fib_table.c:1209 #7 0x00007ffff71835f2 in fib_table_unlock (fib_index=0, proto=FIB_PROTOCOL_IP4, source=FIB_SOURCE_ADJ) at /home/vpp/build-data/../src/vnet/fib/fib_table.c:1265 #8 0x00007ffff6cc64a9 in arp_adj_fib_remove (e=0x7fffb77cb170, fib_index=0) at /home/vpp/build-data/../src/vnet/ethernet/arp.c:1777 #9 0x00007ffff6cc75df in arp_entry_free (eai=0x7fffb5d268f4, e=0x7fffb77cb170) at /home/vpp/build-data/../src/vnet/ethernet/arp.c:1877 #10 0x00007ffff6cc797f in vnet_arp_unset_ip4_over_ethernet_internal (vnm=0x7ffff7647dc0 <vnet_main>, args=0x7fffb5d209d0) at /home/vpp/build-data/../src/vnet/ethernet/arp.c:1902 #11 0x00007ffff6cc7d20 in set_ip4_over_ethernet_rpc_callback (a=0x7fffb5d209d0) at /home/vpp/build-data/../src/vnet/ethernet/arp.c:1981 #12 0x00007ffff794b297 in vl_api_rpc_call_main_thread_inline (fp=0x7ffff6cc7c8d <set_ip4_over_ethernet_rpc_callback>, data=0x7fffb5d209d0 "\001", data_length=28, force_rpc=0 '\000') at /home/vpp/build-data/../src/vlibmemory/memory_vlib.c:2061 #13 0x00007ffff794b3ea in vl_api_rpc_call_main_thread (fp=0x7ffff6cc7c8d <set_ip4_over_ethernet_rpc_callback>, data=0x7fffb5d209d0 "\001", data_length=28) at /home/vpp/build-data/../src/vlibmemory/memory_vlib.c:2107 #14 0x00007ffff6cc5aaf in vnet_arp_unset_ip4_over_ethernet (vnm=0x7ffff7647dc0 <vnet_main>, sw_if_index=1, a_arg=0x7fffb5d20ac0) at /home/vpp/build-data/../src/vnet/ethernet/arp.c:1594 #15 0x00007ffff6cc8f48 in ip_arp_add_del_command_fn (vm=0x7ffff792abe0 <vlib_global_main>, is_del=1, input=0x7fffb5d20ec0, cmd=0x7fffb5c9295c) at /home/vpp/build-data/../src/vnet/ethernet/arp.c:2254 #16 0x00007ffff767d217 in cli_no_one_cmd (vm=0x7ffff792abe0 <vlib_global_main>, is_del=0, in=0x7fffb5d20ec0, no=0x7fffb5c96b5c) at /home/vpp/build-data/../src/vlib/cli/cli_help.c:494 #17 0x00007ffff76746fe in vlib_cli_dispatch_sub_commands (vm=0x7ffff792abe0 <vlib_global_main>, cm=0x64f098, input=0x7fffb5d20ec0, parent_command_index=0, poss_cmds=0x7fffb5d20da8, poss_helps=0x7fffb5d20db0) at /home/vpp/build-data/../src/vlib/cli.c:878 #18 0x00007ffff7674be3 in vlib_cli_input (vm=0x7ffff792abe0 <vlib_global_main>, input=0x7fffb5d20ec0, function=0x7ffff76e164d <unix_vlib_cli_output>, function_arg=0) at /home/vpp/build-data/../src/vlib/cli.c:970 #19 0x00007ffff76e77ee in unix_cli_process_input (cm=0x7ffff792a920 <unix_cli_main>, cli_file_index=0) at /home/vpp/build-data/../src/vlib/unix/cli.c:2511 #20 0x00007ffff76e8358 in unix_cli_process (vm=0x7ffff792abe0 <vlib_global_main>, rt=0x7fffb5d10000, f=0x0) at /home/vpp/build-data/../src/vlib/unix/cli.c:2623 #21 0x00007ffff76aba61 in vlib_process_bootstrap (_a=140736237603344) at /home/vpp/build-data/../src/vlib/main.c:1253 #22 0x00007ffff6953560 in clib_calljmp () at /home/vpp/build-data/../src/vppinfra/longjmp.S:128 #23 0x00007fffb57309e0 in ?? () #24 0x00007ffff76abb96 in vlib_process_startup (vm=0x2c, p=0x8, f=0x7fffb8e179c4) at /home/vpp/build-data/../src/vlib/main.c:1278 Backtrace stopped: previous frame inner to this frame (corrupt stack?) (gdb) f 5 #5 0x00007ffff7176289 in ip4_fib_table_destroy (fib_index=0) at /home/vpp/build-data/../src/vnet/fib/ip4_fib.c:230 230 ASSERT(0 == fib_table->ft_total_route_counts); (gdb) p fib_table->ft_total_route_counts $1 = 9 (gdb) I doubt whether there is something remains in fib_table_entry, when we delete the static arp. for (ii = ARRAY_LEN(ip4_specials) - 1; ii >= 0; ii--) { fib_prefix_t prefix = ip4_specials[ii].ift_prefix; prefix.fp_addr.ip4.data_u32 = clib_host_to_net_u32(prefix.fp_addr.ip4.data_u32); fib_table_entry_special_remove(fib_table->ft_index, &prefix, ip4_specials[ii].ift_source); } Is there any problem of the process? Thanks, Xyxue