Skip to main content

chronon::sender::CrashHandler

More...

#include <CrashHandler.hpp>

Public Functions

Name
voidinstall()
Idempotent. Throws std::runtime_error if signal registration fails.
voidemergencyFlush()

Detailed Description

class chronon::sender::CrashHandler;

Signal handler and emergency flush for simulation crashes.

Installs handlers for SIGSEGV/SIGBUS/SIGABRT/SIGFPE/SIGILL. On signal: reads the thread-local tick context, writes crash info to stderr via async-signal-safe write(), then _exit(128 + signo). emergencyFlush() can also run from non-signal catch paths.

Public Functions Documentation

function install

static void install()

Idempotent. Throws std::runtime_error if signal registration fails.

function emergencyFlush

static void emergencyFlush()

Best-effort flush of all observer data. NOT async-signal-safe — must be called only from normal catch paths.


Updated on 2026-05-26 at 05:42:32 +0000