Hi All, We are building router plugin with VPP 1704 branch. We used VPP stable/1704 branch and vppsb source code after (https://gerrit.fd.io/r/#/c/5881/ ) check in.
Router plugin is loaded properly. We are able to see the router plugin when "vppctl show plugin" command is issued. But, VPP daemon is getting crashed when we issue "vppctl show ip fib". Crash dump and the VPP configuration is given below. Please help me in resolving this issue. Crash Dump: (gdb) c Continuing. Program received signal SIGSEGV, Segmentation fault. 0x0000000000000000 in ?? () (gdb) bt #0 0x0000000000000000 in ?? () #1 0x0000ffff96b00034 in do_percent (va=<optimized out>, fmt=<optimized out>, _s=<synthetic pointer>) at /root/vpp-1704/build-data/../src/vppinfra/format.c:372 #2 va_format (s=0xffff57a9dfe8 "ipv4-VRF:0, fib_index 0, flow hash: ", s@entry=0x0, fmt=fmt@entry=0xffff96e72ca8 "%U, fib_index %d, flow hash: %U", va=0xffff568fd988, va@entry=0xffff568fd9a8) at /root/vpp-1704/build-data/../src/vppinfra/format.c:403 #3 0x0000ffff96ed3cb4 in vlib_cli_output (vm=vm@entry=0xffff96f28ed0 <vlib_global_main>, fmt=fmt@entry=0xffff96e72ca8 "%U, fib_index %d, flow hash: %U") at /root/vpp-1704/build-data/../src/vlib/cli.c:584 #4 0x0000ffff96dfa69c in ip4_show_fib (vm=0xffff96f28ed0 <vlib_global_main>, input=<optimized out>, cmd=<optimized out>) at /root/vpp-1704/build-data/../src/vnet/fib/ip4_fib.c:497 #5 0x0000ffff96ed3f58 in vlib_cli_dispatch_sub_commands (vm=vm@entry=0xffff96f28ed0 <vlib_global_main>, cm=cm@entry=0xffff96f291a8 <vlib_global_main+728>, input=input@entry=0xffff568fde00, parent_command_index=<optimized out>) at /root/vpp-1704/build-data/../src/vlib/cli.c:485 #6 0x0000ffff96ed43cc in vlib_cli_dispatch_sub_commands (vm=vm@entry=0xffff96f28ed0 <vlib_global_main>, cm=cm@entry=0xffff96f291a8 <vlib_global_main+728>, input=input@entry=0xffff568fde00, parent_command_index=<optimized out>) at /root/vpp-1704/build-data/../src/vlib/cli.c:463 #7 0x0000ffff96ed43cc in vlib_cli_dispatch_sub_commands (vm=0xffff96f28ed0 <vlib_global_main>, cm=0xffff96f291a8 <vlib_global_main+728>, input=0xffff568fde00, parent_command_index=<optimized out>) at /root/vpp-1704/build-data/../src/vlib/cli.c:463 #8 0x0000ffff96ed4700 in vlib_cli_input (vm=0xffff96f28ed0 <vlib_global_main>, input=0xffff568fde00, function=<optimized out>, function_arg=<optimized out>) at /root/vpp-1704/build-data/../src/vlib/cli.c:559 #9 0x0000000000414d04 in vl_api_cli_request_t_handler () #10 0x0000ffff96f4b434 in vl_msg_api_handler_with_vm_node (am=0xffff568fde00, the_msg=0x49b000, vm=0x305e7dc0, node=0xffff96f28ed0 <vlib_global_main>) at /root/vpp-1704/build-data/../src/vlibapi/api_shared.c:502 #11 0x0000ffff96f32a94 in memclnt_process (vm=<optimized out>, node=0x6d, f=<optimized out>) at /root/vpp-1704/build-data/../src/vlibmemory/memory_vlib.c:543 #12 0x0000ffff96eda090 in vlib_process_bootstrap (_a=<optimized out>) at /root/vpp-1704/build-data/../src/vlib/main.c:1226 #13 0x0000ffff96b07854 in clib_calljmp () at /root/vpp-1704/build-data/../src/vppinfra/longjmp.S:676 Backtrace stopped: previous frame identical to this frame (corrupt stack?) (gdb) VPP configuration: # vpp -c /etc/vpp/startup.conf & # vppctl create loopback interface # vppctl set interface state loop0 up # vppctl set interface state GigabitEthernet0/3/0 up # vppctl set interface state GigabitEthernet0/4/0 up # vppctl set interface ip address loop0 2.2.2.2/32 # vppctl set interface ip address GigabitEthernet0/3/0 10.0.10.2/24 # vppctl set interface ip address GigabitEthernet0/4/0 10.0.20.2/24 # vppctl enable tap-inject # vppctl show tap-inject # ip addr add 10.0.10.2/24 dev vpp0 # ip addr add 10.0.20.2/24 dev vpp1 # ip link set dev vpp0 up # ip link set dev vpp1 up # vppctl show ip fib Regards, Bhanu, HSDC, NXP India.
_______________________________________________ vpp-dev mailing list vpp-dev@lists.fd.io https://lists.fd.io/mailman/listinfo/vpp-dev