43 memset(&act, 0,
sizeof(act));
45 act.sa_flags = SA_RESTART;
46 if (sigaction(SIGFPE, &act, 0) != 0) {
47 perror(
"sigaction failed");
48 throw runtime_error(
"cannot install sigaction signal handler");
55 sigaddset(&newset, SIGFPE);
56 pthread_sigmask(SIG_BLOCK, &newset, 0);
63 double const y{DBL_MAX};
68 sigaddset(&newset, SIGFPE);
69 pthread_sigmask(SIG_UNBLOCK, &newset, 0);
74 mf::LogVerbatim(
"FPExceptions") <<
"\t\tForce DivideByZero: a = x/zero";
79 double const b{log(-1.0)};
def analyze(root, level, gtrees, gbranches, doprint)
MaybeLogger_< ELseverityLevel::ELsev_info, true > LogVerbatim
void analyze(Event const &)
double multit(double x, double y)
#define DEFINE_ART_MODULE(klass)
void handle_sigfpe(int, siginfo_t *, void *)
EventNumber_t event() const
double divit(double x, double y)