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: