Merge pull request #4980 from 0penBrain/coredump

[Core] exit() can prevent core dumping, use abort() instead on debug mode
This commit is contained in:
Yorik van Havre
2021-08-19 12:38:06 +02:00
committed by GitHub

View File

@@ -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: