From 1ead159f3fcd9a9a2885c14c221beeb7eb1e15ac Mon Sep 17 00:00:00 2001 From: Andre Puschmann Date: Wed, 3 Nov 2021 15:21:38 +0100 Subject: [PATCH] backward: make signalhandler object static having the sh a normal stack variable made the backtrace disappear in some runs. --- lib/src/common/crash_handler.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/src/common/crash_handler.cc b/lib/src/common/crash_handler.cc index 432e0e9d5..0941daba8 100644 --- a/lib/src/common/crash_handler.cc +++ b/lib/src/common/crash_handler.cc @@ -22,7 +22,7 @@ using namespace backward; void srsran_debug_handle_crash(int argc, char** argv) { - backward::SignalHandling sh; + static backward::SignalHandling sh; } #else // HAVE_BACKWARD #include "srsran/common/backtrace.h"