Dear VPP Folks, I found vpp assertion failed when nat44 forward is enabled. I'm using vpp version on master branch.
I configured a simple nat scenario with nat44. My startup.conf : unix { interactive nodaemon cli-listen /run/vpp/cli.sock cli-no-pager poll-sleep-usec 100 } api-trace { on } api-segment { gid vpp } socksvr { default } cpu { main-core 1 corelist-workers 2,3 } dpdk { uio-driver vfio-pci vdev crypto_aesni_mb0,max_nb_queue_pairs=2,socket_id=0 dev 0000:02:05.0 { name G0} } plugins { plugin ikev2_plugin.so { disable } } nat { endpoint-dependent } My config is shown below: set int state G0 up set dhcp client intfc G0 set interface nat44 out G0 output-feature nat44 add interface address G0 *nat44 forwarding enable* assertion error is below: DBGvpp# 1: /root/work/vpp-master/src/plugins/nat/out2in_ed.c:451 (create_bypass_for_fwd) assertion `thread_index == ed_value_get_thread_index (&value)' fails Program received signal SIGABRT, Aborted. [Switching to Thread 0x7fff3bfff700 (LWP 51834)] 0x00007ffff546c387 in __GI_raise (sig=sig@entry=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:55 55 return INLINE_SYSCALL (tgkill, 3, pid, selftid, sig); Missing separate debuginfos, use: debuginfo-install krb5-libs-1.15.1-37.el7_7.2.x86_64 libcom_err-1.42.9-16.el7.x86_64 mbedtls-2.7.16-2.el7.x86_64 pkcs11-helper-1.11-3.el7.x86_64 (gdb) bt #0 0x00007ffff546c387 in __GI_raise (sig=sig@entry=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:55 #1 0x00007ffff546da78 in __GI_abort () at abort.c:90 #2 0x000000000040858e in os_panic () at /root/work/vpp-master/src/vpp/vnet/main.c:371 #3 0x00007ffff620daa6 in debugger () at /root/work/vpp-master/src/vppinfra/error.c:84 #4 0x00007ffff620de91 in _clib_error (how_to_die=2, function_name=0x0, line_number=0, fmt=0x7fffaff07040 "%s:%d (%s) assertion `%s' fails") at /root/work/vpp-master/src/vppinfra/error.c:143 #5 0x00007fffafdb058d in create_bypass_for_fwd (sm=0x7fffaff68ec0 <snat_main>, b=0x10026d68c0, ip=0x10026d69ce, rx_fib_index=0, thread_index=1) at /root/work/vpp-master/src/plugins/nat/out2in_ed.c:451 #6 0x00007fffafdb0a54 in create_bypass_for_fwd_worker (sm=0x7fffaff68ec0 <snat_main>, b=0x10026d68c0, ip=0x10026d69ce, rx_fib_index=0) at /root/work/vpp-master/src/plugins/nat/out2in_ed.c:521 #7 0x00007fffafdb2ca2 in nat44_ed_out2in_slow_path_node_fn_inline (vm=0x7fffb7312cc0, node=0x7fffb76618c0, frame=0x7fffb75a07c0) at /root/work/vpp-master/src/plugins/nat/out2in_ed.c:1205 #8 0x00007fffafdb36c1 in nat44_ed_out2in_slowpath_node_fn_hsw (vm=0x7fffb7312cc0, node=0x7fffb76618c0, frame=0x7fffb75a07c0) at /root/work/vpp-master/src/plugins/nat/out2in_ed.c:1407 #9 0x00007ffff7edec68 in dispatch_node (vm=0x7fffb7312cc0, node=0x7fffb76618c0, type=VLIB_NODE_TYPE_INTERNAL, dispatch_state=VLIB_NODE_STATE_POLLING, frame=0x7fffb75a07c0, last_time_stamp=2247957037122854) at /root/work/vpp-master/src/vlib/main.c:1194 #10 0x00007ffff7edf372 in dispatch_pending_node (vm=0x7fffb7312cc0, pending_frame_index=1, last_time_stamp=2247957037122854) at /root/work/vpp-master/src/vlib/main.c:1353 #11 0x00007ffff7ee13be in vlib_main_or_worker_loop (vm=0x7fffb7312cc0, is_main=0) at /root/work/vpp-master/src/vlib/main.c:1848 #12 0x00007ffff7ee1e40 in vlib_worker_loop (vm=0x7fffb7312cc0) at /root/work/vpp-master/src/vlib/main.c:1982 #13 0x00007ffff7f22e62 in vlib_worker_thread_fn (arg=0x7fffb4124e00) at /root/work/vpp-master/src/vlib/threads.c:1861 #14 0x00007ffff622c870 in clib_calljmp () at /root/work/vpp-master/src/vppinfra/longjmp.S:123 #15 0x00007fff3bffebb0 in ?? () #16 0x00007ffff7f1ca52 in vlib_worker_thread_bootstrap_fn (arg=0x7fffb4124e00) at /root/work/vpp-master/src/vlib/threads.c:585 Backtrace stopped: previous frame inner to this frame (corrupt stack?) (gdb) without " nat44 forwarding enable ", no above assertion failed. or without "corelist-workers 2,3" in startup.conf, no above assertion failed
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#17348): https://lists.fd.io/g/vpp-dev/message/17348 Mute This Topic: https://lists.fd.io/mt/76724560/21656 Group Owner: vpp-dev+ow...@lists.fd.io Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-