Fix SIGABRT not causing a core dump

A second abort() is needed at the end of `SigAbrtHandler()` to trigger the SIG_DFL action (in this case the core dump).

Also since `AttachDebugger()` disables the ability to dump core, so
it gets reenabled after returning from it.
This commit is contained in:
Johannes Schmidt 2025-04-23 09:13:04 +02:00
parent 520aed6049
commit 43f78a4b86

View File

@ -776,6 +776,12 @@ void Application::SigAbrtHandler(int)
}
AttachDebugger(fname, interactive_debugger);
#ifdef __linux__
prctl(PR_SET_DUMPABLE, 1);
#endif /* __linux __ */
abort();
}
#ifdef _WIN32