From bcb417fdbb824208633c29638e1d1e211cf85cc3 Mon Sep 17 00:00:00 2001 From: Jason Dellaluce Date: Fri, 13 Oct 2023 15:57:28 +0000 Subject: [PATCH] fix(userspace/sysdig): solve segfault when listing fields Signed-off-by: Jason Dellaluce --- userspace/sysdig/utils/supported_fields.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/userspace/sysdig/utils/supported_fields.cpp b/userspace/sysdig/utils/supported_fields.cpp index 4cd75cc3dd..650bb4a78e 100644 --- a/userspace/sysdig/utils/supported_fields.cpp +++ b/userspace/sysdig/utils/supported_fields.cpp @@ -63,11 +63,12 @@ void print_supported_fields(sinsp* inspector, plugin_utils& plugins, const std:: continue; } + sinsp_filter_check_list sinsp_filterchecks; std::vector filterchecks; if (src == s_syscall_source) { std::vector all_checks; - sinsp_filter_check_list().get_all_fields(all_checks); + sinsp_filterchecks.get_all_fields(all_checks); for (const auto& check : all_checks) { // todo: we need to polish this logic in libsinsp, it's not ok to