Skip to main content

Module crash

Module crash 

Source
Expand description

Default-on crash interception and fixed-size pre-registration spool. Default-on crash capture (#636).

Calling [install] is the only arming point. Linking this crate installs no constructor and touches no signal or exception state. Once armed, a normal sampler thread keeps a bounded all-thread snapshot ready. The fatal callback copies only the raw platform context into that preallocated record and emits it with one OS write before returning Handled(false) so the previously installed application handler still runs.

Modules§

spool
Fixed-layout crash records shared by the signal handler and daemon.

Structs§

CrashGuard
Keeps the native handler and sampler armed.

Enums§

CrashPolicy
Crash interception policy. Calling install arms it by default.
InstallError
Local failure while arming crash capture.

Constants§

NO_CRASH_HANDLER_ENV
Environment opt-out checked before any crash state is created.

Functions§

install
Arm native crash capture unless policy or environment opts out.
with_handler_suspended
Run a normal-context handler installation beneath the native crash layer.