Merge pull request #10416 from Icinga/jschmidt/sigabrt-handler-fix

Fix SIGABRT not causing a core dump
This commit is contained in:
Johannes Schmidt 2025-04-23 16:08:13 +02:00 committed by GitHub
commit 235a3e1aa5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 7 additions and 0 deletions

View File

@ -135,6 +135,7 @@ Jesse Morgan <morgajel@gmail.com>
Jo Goossens <jo.goossens@hosted-power.com>
Jochen Friedrich <j.friedrich@nwe.de>
Johannes Meyer <johannes.meyer@icinga.com>
Johannes Schmidt <johannes.schmidt@icinga.com>
Jonas Meurer <jonas@freesources.org>
Jordi van Scheijen <jordi.vanscheijen@solvinity.com>
Josef Friedrich <josef@friedrich.rocks>

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