mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-20 20:24:33 +02:00
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:
parent
520aed6049
commit
43f78a4b86
@ -776,6 +776,12 @@ void Application::SigAbrtHandler(int)
|
||||
}
|
||||
|
||||
AttachDebugger(fname, interactive_debugger);
|
||||
|
||||
#ifdef __linux__
|
||||
prctl(PR_SET_DUMPABLE, 1);
|
||||
#endif /* __linux __ */
|
||||
|
||||
abort();
|
||||
}
|
||||
|
||||
#ifdef _WIN32
|
||||
|
Loading…
x
Reference in New Issue
Block a user