File pacemaker-logging-blackbox-on-arithmetic-error.patch of Package pacemaker.14737
commit 18f5ef524ca852a51d4ff553835272ee24e9c04d
Author: Jan Pokorný <jpokorny@redhat.com>
Date: Thu Jul 27 15:42:56 2017 +0200
Low: logging: ensure blackbox gets generated on arithmetic error
...typically division by zero, that cannot be excluded in some boundary
conditions, neither in pacemaker proper nor in libqb. In shortage of
coredumps, it may still help a little bit to figure out the events
preceding the crash.
diff --git a/lib/common/logging.c b/lib/common/logging.c
index b9a1c805b..6e8d67b5f 100644
--- a/lib/common/logging.c
+++ b/lib/common/logging.c
@@ -387,6 +387,7 @@ crm_control_blackbox(int nsig, bool enable)
crm_signal(SIGABRT, crm_trigger_blackbox);
crm_signal(SIGILL, crm_trigger_blackbox);
crm_signal(SIGBUS, crm_trigger_blackbox);
+ crm_signal(SIGFPE, crm_trigger_blackbox);
crm_update_callsites();