diff options
author | Mikhail Sokolovskiy <sokolmish@gmail.com> | 2023-03-30 13:27:33 +0300 |
---|---|---|
committer | Mikhail Sokolovskiy <sokolmish@gmail.com> | 2023-03-30 13:27:33 +0300 |
commit | 8309517f23b314e588bf3ad623250f1440908bd3 (patch) | |
tree | 8b8a26389c4bdc7de48e2e0c27d6ad67b1aba102 /src/vnet/hash/hash.c | |
parent | 2844aa186f7d33bc35b99509bfd8e405e998df0b (diff) |
vlib: fix segfault on panic in worker
Vlib panic uses longjmp to exit main loop, but workers don't set main_loop_exit
field on initialization, so this jump corrupts registers and causes segfault.
There I add clib_warning and abort if longjmp context hasn't been set.
Type: fix
Signed-off-by: Mikhail Sokolovskiy <sokolmish@gmail.com>
Change-Id: I0d705f1f139c4083af75066aeb525964ed0aa202
Diffstat (limited to 'src/vnet/hash/hash.c')
0 files changed, 0 insertions, 0 deletions