Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions src/core/reactor.cc
Original file line number Diff line number Diff line change
Expand Up @@ -4442,6 +4442,11 @@ static void sigill_action(siginfo_t *info, ucontext_t* uc) noexcept {
reraise_signal(SIGILL);
}

static void sigfpe_action(siginfo_t *info, ucontext_t* uc) noexcept {
print_with_backtrace("Floating point exception");
reraise_signal(SIGFPE);
}

// We don't need to handle SIGSEGV when asan is enabled.
#ifdef SEASTAR_ASAN_ENABLED
template<>
Expand Down Expand Up @@ -4627,6 +4632,7 @@ void smp::configure(const smp_options& smp_opts, const reactor_options& reactor_
install_oneshot_signal_handler<SIGSEGV, sigsegv_action>();
install_oneshot_signal_handler<SIGABRT, sigabrt_action>();
install_oneshot_signal_handler<SIGILL, sigill_action>();
install_oneshot_signal_handler<SIGFPE, sigfpe_action>();

#ifdef SEASTAR_HAVE_DPDK
const auto* native_stack = dynamic_cast<const net::native_stack_options*>(reactor_opts.network_stack.get_selected_candidate_opts());
Expand Down
Loading