Unless you fully communicate your configuration, you’ll have to debug the issue
yourself. Are you using the standard handoff mechanism, or a mechanism of your
own design?
The handoff demo plugin seems to work fine... See
../src/examples/handoffdemo/{README.md, node.c} etc.
DBGvpp# sh trace
--- Start of thread 0 vpp_main ---
No packets in trace buffer
--- Start of thread 1 vpp_wk_0 ---
Packet 1
00:00:19:259770: pg-input
stream x, 128 bytes, sw_if_index 0
current data 0, length 128, buffer-pool 0, ref-count 1, trace handle 0x100
: 000102030405060708090a0b0c0d0e0f101112131415161718191a1b1c1d
0020:
0040:
0060:
00:00:19:259851: handoffdemo-1
HANDOFFDEMO: current thread 1
Packet 2
00:00:19:259770: pg-input
stream x, 128 bytes, sw_if_index 0
current data 0, length 128, buffer-pool 0, ref-count 1, trace handle 0x101
: 000102030405060708090a0b0c0d0e0f101112131415161718191a1b1c1d
0020:
0040:
0060:
00:00:19:259851: handoffdemo-1
HANDOFFDEMO: current thread 1
Packet 3
00:00:19:259770: pg-input
stream x, 128 bytes, sw_if_index 0
current data 0, length 128, buffer-pool 0, ref-count 1, trace handle 0x102
: 000102030405060708090a0b0c0d0e0f101112131415161718191a1b1c1d
0020:
0040:
0060:
00:00:19:259851: handoffdemo-1
HANDOFFDEMO: current thread 1
Packet 4
00:00:19:259770: pg-input
stream x, 128 bytes, sw_if_index 0
current data 0, length 128, buffer-pool 0, ref-count 1, trace handle 0x103
: 000102030405060708090a0b0c0d0e0f101112131415161718191a1b1c1d
0020:
0040:
0060:
00:00:19:259851: handoffdemo-1
HANDOFFDEMO: current thread 1
Packet 5
00:00:19:259770: pg-input
stream x, 128 bytes, sw_if_index 0
current data 0, length 128, buffer-pool 0, ref-count 1, trace handle 0x104
: 000102030405060708090a0b0c0d0e0f101112131415161718191a1b1c1d
0020:
0040:
0060:
00:00:19:259851: handoffdemo-1
HANDOFFDEMO: current thread 1
--- Start of thread 2 vpp_wk_1 ---
Packet 1
00:00:19:259879: handoff_trace
HANDED-OFF: from thread 1 trace index 0
00:00:19:259879: handoffdemo-2
HANDOFFDEMO: current thread 2
00:00:19:259930: error-drop
rx:local0
00:00:19:259967: drop
handoffdemo-2: completed packets
Packet 2
00:00:19:259879: handoff_trace
HANDED-OFF: from thread 1 trace index 1
00:00:19:259879: handoffdemo-2
HANDOFFDEMO: current thread 2
00:00:19:259930: error-drop
rx:local0
00:00:19:259967: drop
handoffdemo-2: completed packets
Packet 3
00:00:19:259879: handoff_trace
HANDED-OFF: from thread 1 trace index 2
00:00:19:259879: handoffdemo-2
HANDOFFDEMO: current thread 2
00:00:19:259930: error-drop
rx:local0
00:00:19:259967: drop
handoffdemo-2: completed packets
Packet 4
00:00:19:259879: handoff_trace
HANDED-OFF: from thread 1 trace index 3
00:00:19:259879: handoffdemo-2
HANDOFFDEMO: current thread 2
00:00:19:259930: error-drop
rx:local0
00:00:19:259967: drop
handoffdemo-2: completed packets
Packet 5
00:00:19:259879: handoff_trace
HANDED-OFF: from thread 1 trace index 4
00:00:19:259879: handoffdemo-2
HANDOFFDEMO: current thread 2
00:00:19:259930: error-drop
rx:local0
00:00:19:259967: drop
handoffdemo-2: completed packets
DBGvpp#
From: vpp-dev@lists.fd.io On Behalf Of Satya Murthy
Sent: Tuesday, June 2, 2020 7:11 AM
To: vpp-dev@lists.fd.io
Subject: [vpp-dev] Crash in vlib_add_trace with multi worker mode
Hi ,
We are seeing a crash while doing add_trace for a vlib_buffer in our graph node.
#0 0x74ee0feb in raise () from /lib64/libc.so.6
#1 0x74ecb5c1 in abort () from /lib64/libc.so.6
#2 0x0040831c in os_panic () at
/fdio/src/fdio.1810/src/vpp/vnet/main.c:368
#3 0x75f28f2f in debugger () at
/fdio/src/fdio.1810/src/vppinfra/error.c:84
#4 0x75f2936a in _clib_error (how_to_die=2