absl::InstallFailureSignalHandler

Installs a signal handler for the common failure signals SIGSEGV, SIGILL, SIGFPE, SIGABRT, SIGTERM, SIGBUG, and SIGTRAP (provided they exist on the given platform). The failure signal handler dumps program failure data useful for debugging in an unspecified format to stderr. This data may include the program counter, a stacktrace, and register information on some systems; do not rely on an exact format for the output, as it is subject to change.

Synopsis

Declared in <absl/debugging/failure_signal_handler.h>

void
InstallFailureSignalHandler(FailureSignalHandlerOptions const& options);

Parameters

NameDescription
optionsConfiguration controlling how the handler behaves.