I fixed my plugin counter code and the VPP generic counter code's crash below is fixed.
Hemant From: vpp-dev@lists.fd.io <vpp-dev@lists.fd.io> On Behalf Of hemant via lists.fd.io Sent: Wednesday, March 24, 2021 9:49 AM To: vpp-dev@lists.fd.io Subject: [vpp-dev] vpp crash in counter I did download latest vpp from gerrit today to check if the crash is reproduced and it is. I have used a debugged image to debug the issue. This crash happens during testing of my plugin which is running IPv6 and the plugin uses simple counters. See backtrace() below. DBGvpp# Thread 1 "vpp_main" received signal SIGSEGV, Segmentation fault. 0x00007ffff6c4b451 in vlib_increment_combined_counter (cm=0x7fffb4f3b740, thread_index=0, index=3, n_packets=256, n_bytes=36608) at /home/hemant/int2/vpp/src/vlib/counter.h:248 248 /home/hemant/int2/vpp/src/vlib/counter.h: No such file or directory. (gdb) bt #0 0x00007ffff6c4b451 in vlib_increment_combined_counter (cm=0x7fffb4f3b740, thread_index=0, index=3, n_packets=256, n_bytes=36608) at /home/hemant/int2/vpp/src/vlib/counter.h:248 #1 0x00007ffff6c4adab in vnet_interface_output_node_inline ( vm=0x7ffff62a0d40 <vlib_global_main>, node=0x7fffb7c7af40, frame=0x7fffb7d66f80, vnm=0x7ffff7b4b400 <vnet_main>, hi=0x7fffb4b6a980, do_tx_offloads=0) at /home/hemant/int2/vpp/src/vnet/interface_output.c:418 #2 0x00007ffff6c47064 in vnet_interface_output_node ( vm=0x7ffff62a0d40 <vlib_global_main>, node=0x7fffb7c7af40, frame=0x7fffb7d66f80) at /home/hemant/int2/vpp/src/vnet/interface_output.c:498 #3 0x00007ffff5fe2378 in dispatch_node (vm=0x7ffff62a0d40 <vlib_global_main>, node=0x7fffb7c7af40, type=VLIB_NODE_TYPE_INTERNAL, dispatch_state=VLIB_NODE_STATE_POLLING, frame=0x7fffb7d66f80, last_time_stamp=77539673133597) at /home/hemant/int2/vpp/src/vlib/main.c:1228 #4 0x00007ffff5fe2e07 in dispatch_pending_node (vm=0x7ffff62a0d40 <vlib_global_main>, pending_frame_index=2, last_time_stamp=77539673133597) at /home/hemant/int2/vpp/src/vlib/main.c:1389 #5 0x00007ffff5fdc661 in vlib_main_or_worker_loop (vm=0x7ffff62a0d40 <vlib_global_main>, is_main=1) at /home/hemant/int2/vpp/src/vlib/main.c:1877 #6 0x00007ffff5fde3aa in vlib_main_loop (vm=0x7ffff62a0d40 <vlib_global_main>) at /home/hemant/int2/vpp/src/vlib/main.c:2005 #7 0x00007ffff5fde192 in vlib_main (vm=0x7ffff62a0d40 <vlib_global_main>, input=0x7fffa799efa8) at /home/hemant/int2/vpp/src/vlib/main.c:2251 ---Type <return> to continue, or q <return> to quit--- #8 0x00007ffff60695de in thread0 (arg=140737323339072) at /home/hemant/int2/vpp/src/vlib/unix/main.c:670 #9 0x00007ffff53f8058 in clib_calljmp () at /home/hemant/int2/vpp/src/vppinfra/longjmp.S:123 #10 0x00007fffffffd1b0 in ?? () #11 0x00007ffff6069124 in vlib_unix_main (argc=3, argv=0x7fffffffe688) at /home/hemant/int2/vpp/src/vlib/unix/main.c:747 #12 0x0000000000406d2f in main (argc=3, argv=0x7fffffffe688) at /home/hemant/int2/vpp/src/vpp/vnet/main.c:338 (gdb) Thanks, Hemant
smime.p7s
Description: S/MIME cryptographic signature
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#19014): https://lists.fd.io/g/vpp-dev/message/19014 Mute This Topic: https://lists.fd.io/mt/81576847/21656 Group Owner: vpp-dev+ow...@lists.fd.io Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-