From 02ac6f66b5dcb7a22983ef4274d365dd230a6c70 Mon Sep 17 00:00:00 2001 From: Luca Guerra Date: Mon, 20 Jan 2025 13:21:11 +0000 Subject: [PATCH] cleanup(libs): remove assert() that may trigger Signed-off-by: Luca Guerra --- userspace/libsinsp/threadinfo.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/userspace/libsinsp/threadinfo.cpp b/userspace/libsinsp/threadinfo.cpp index 4f0602a025..f6a933bce8 100644 --- a/userspace/libsinsp/threadinfo.cpp +++ b/userspace/libsinsp/threadinfo.cpp @@ -1551,8 +1551,9 @@ void sinsp_thread_manager::remove_main_thread_fdtable(sinsp_threadinfo* main_thr // // The canceled fd should always be deleted immediately, so if it appears // here it means we have a problem. + // Note: it looks like that the canceled FD may appear here in case of high drop + // and we need to recover. This was an assertion failure, now removed. // - ASSERT(eparams.m_fd != CANCELED_FD_NUMBER); eparams.m_fdinfo = &fdinfo; /* Here we are just calling the `on_erase` callback */