Skip to content

Commit 235a3e1

Browse files
Merge pull request #10416 from Icinga/jschmidt/sigabrt-handler-fix
Fix SIGABRT not causing a core dump
2 parents 520aed6 + f492337 commit 235a3e1

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

AUTHORS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,7 @@ Jesse Morgan <morgajel@gmail.com>
135135
Jo Goossens <jo.goossens@hosted-power.com>
136136
Jochen Friedrich <j.friedrich@nwe.de>
137137
Johannes Meyer <johannes.meyer@icinga.com>
138+
Johannes Schmidt <johannes.schmidt@icinga.com>
138139
Jonas Meurer <jonas@freesources.org>
139140
Jordi van Scheijen <jordi.vanscheijen@solvinity.com>
140141
Josef Friedrich <josef@friedrich.rocks>

lib/base/application.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -776,6 +776,12 @@ void Application::SigAbrtHandler(int)
776776
}
777777

778778
AttachDebugger(fname, interactive_debugger);
779+
780+
#ifdef __linux__
781+
prctl(PR_SET_DUMPABLE, 1);
782+
#endif /* __linux __ */
783+
784+
abort();
779785
}
780786

781787
#ifdef _WIN32

0 commit comments

Comments
 (0)