Hi Florin,

Thanks for a quick response.
Looks like the WK pointer is invalid causing the segmentation fault. Sure,
I will try with a debug image and check the tcp_main data structure

On Tue, May 3, 2022 at 12:06 PM Florin Coras <fcoras.li...@gmail.com> wrote:

> Hi Vijay,
>
> Error seems unrelated to the patch. Hard to say from the trace what’s
> going on. If f5 is to be believed, wrk pointer looks corrupted. Hard to say
> why that happened given that tcp_get_worker should not fail. Maybe inspect
> &tcp_main.wrk_ctx[thread_index] or run a debug image.
>
> Regards,
> Florin
>
> On May 2, 2022, at 10:54 PM, Vijay Kumar <vjkumar2...@gmail.com> wrote:
>
> Hi experts,
>
> I am seeing the below pasted call stack. We are using vpp 21.06. The crash
> is in tcp_update_time_now() called inside tcp46_input_inline. I had not
> done any changes to *tcp46_input_inline *graph node. All I did was add
> this patch mentioned below. This patch was applied recently in the function*
> tcp46_listen_inline()* to increment error counters.
>
> https://gerrit.fd.io/r/c/vpp/+/35654/
>
> NOTE
> =======
> The VPP was working fine for a long time even after applying the above
> patch but recently we added more features and the crash may be happening as
> a side-effect of the new code we added.
>
> Pls let me know if you have seen this crash or if you may have some
> suggestions for this crash???
>
>
> Call stack
> =============
> #0 0x00007f59ccfc888c in __pthread_kill_implementation () from
> /lib64/libc.so.6
> #1 0x00007f59ccf7b6a6 in raise () from /lib64/libc.so.6
> #2 0x00007f59ccf65865 in abort () from /lib64/libc.so.6
> #3 0x000055bf7f28d30a in os_exit (code=<optimized out>) at
> /usr/src/debug/vpp-21.06.0-5~gfad0b64b3_dirty.x86_64/src/vpp/vnet/main.c:477
> #4 <signal handler called>
> #5 0x00007f59cdf7bb23 in tcp_update_time_now (wrk=0xa640) at
> /usr/src/debug/vpp-21.06.0-5~gfad0b64b3_dirty.x86_64/src/vnet/tcp/tcp_inlines.h:226
> #6 tcp46_input_inline (is_nolookup=0 '\000', is_ip4=0, frame=<optimized
> out>, node=<optimized out>, vm=0x7f58ab281e00)
> at
> /usr/src/debug/vpp-21.06.0-5~gfad0b64b3_dirty.x86_64/src/vnet/tcp/tcp_input.c:2876
> #7 tcp6_input_node_fn_skx (vm=0x7f58ab281e00, node=0x7f584e33c440,
> from_frame=0x7f58ab49e900)
> at
> /usr/src/debug/vpp-21.06.0-5~gfad0b64b3_dirty.x86_64/src/vnet/tcp/tcp_input.c:3051
> #8 0x00007f59cd30bc05 in dispatch_node (last_time_stamp=<optimized out>,
> frame=<optimized out>, dispatch_state=VLIB_NODE_STATE_POLLING,
> type=VLIB_NODE_TYPE_INTERNAL, node=0x7f584e33c440, vm=0x7f58ab281e00)
> at
> /usr/src/debug/vpp-21.06.0-5~gfad0b64b3_dirty.x86_64/src/vlib/main.c:1063
> #9 dispatch_pending_node (vm=vm@entry=0x7f58ab281e00,
> pending_frame_index=pending_frame_index@entry=6,
> last_time_stamp=<optimized out>)
> at
> /usr/src/debug/vpp-21.06.0-5~gfad0b64b3_dirty.x86_64/src/vlib/main.c:1243
> #10 0x00007f59cd30d9b7 in vlib_main_or_worker_loop (is_main=0,
> vm=0x7f58ab281e00)
> at
> /usr/src/debug/vpp-21.06.0-5~gfad0b64b3_dirty.x86_64/src/vlib/main.c:1832
> #11 vlib_worker_loop (vm=0x7f58ab281e00) at
> /usr/src/debug/vpp-21.06.0-5~gfad0b64b3_dirty.x86_64/src/vlib/main.c:1966
> #12 0x00007f59cd28261c in clib_calljmp () at
> /usr/src/debug/vpp-21.06.0-5~gfad0b64b3_dirty.x86_64/src/vppinfra/longjmp.S:123
> #13 0x00007f54837fdc80 in ?? ()
> #14 0x00007f584847b1e9 in eal_thread_loop.cold () from
> /usr/lib/vpp_plugins/dpdk_plugin.so
> #15 0x0000000000000000 in ?? ()
>
>
>
>
> Regards,
> Vijay Kumar N
>
> 
>
>
>
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#21339): https://lists.fd.io/g/vpp-dev/message/21339
Mute This Topic: https://lists.fd.io/mt/90853512/21656
Group Owner: vpp-dev+ow...@lists.fd.io
Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub [arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to