From f976699bdf8932fa8498f9b689097f9ca23eb6eb Mon Sep 17 00:00:00 2001 From: 0penBrain <48731257+0penBrain@users.noreply.github.com> Date: Wed, 18 Aug 2021 18:12:31 +0200 Subject: [PATCH] [Core] exit() can prevent core dumping, use abort() instead on debug mode --- src/App/Application.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/App/Application.cpp b/src/App/Application.cpp index abf721fcf8..b061cc5c5c 100644 --- a/src/App/Application.cpp +++ b/src/App/Application.cpp @@ -1631,7 +1631,11 @@ void segmentation_fault_handler(int sig) (void)sig; std::cerr << "Program received signal SIGSEGV, Segmentation fault.\n"; printBacktrace(2); +#if defined(FC_DEBUG) + abort(); +#else exit(1); +#endif #else switch (sig) { case SIGSEGV: