Documentation Index
Fetch the complete documentation index at: https://mintlify.com/ispras/casr/llms.txt
Use this file to discover all available pages before exploring further.
casr-core analyses ELF coredump files and produces structured .casrep JSON reports
with severity estimation, stack traces, register values, disassembly, and memory
mappings. It operates in two modes:
- Offline — analyse an already-collected coredump file. This is the default.
- Online — intercept crashes in real time by registering
casr-coreas the kernel’score_patternhandler, so reports and cores are saved automatically to/var/crashwhenever any process crashes.
Synopsis
Options
Operating mode. Use
offline (default) to analyse an existing coredump file, or
online to act as a core_pattern handler that intercepts crashes as they happen.Possible values: online, offlinePath to the coredump file to analyse. Required in offline mode.
Path where the generated
.casrep JSON report will be saved. Required in offline mode
unless --stdout is specified.Print the CASR report as JSON to stdout. Can be combined with
--output or used alone
in offline mode.Path to the executable that produced the coredump. Providing this allows
casr-core
to resolve symbol names and improve severity analysis.Offline Mode
Offline mode is the default. Provide a coredump file with-f and optionally the
corresponding executable with -e.
Example
Online Mode
In online modecasr-core registers itself as the kernel coredump handler via
core_pattern. Whenever any process crashes, the kernel pipes the coredump directly to
casr-core, which saves both the coredump and the .casrep report to /var/crash.
Create the /var/crash directory
Create the output directory and make it world-writable so that processes running as
any user can have their crashes captured:
Register casr-core as the core_pattern handler
Replace the kernel’s core pattern with a pipe to The kernel format specifiers used here:
casr-core. Substitute
<path_to_casr_core_binary> with the absolute path to your casr-core binary:| Specifier | Meaning |
|---|---|
%c | Core file size soft resource limit of the crashing process |
%p | PID of the dumped process (in its PID namespace) |
%P | PID of the dumped process (in the initial PID namespace) |
%u | Real UID of the dumped process |
%g | Real GID of the dumped process |
%E | Pathname of the executable (slashes replaced with !) |
Enable coredumps with ulimit
Ensure the shell (and any child processes) are allowed to produce coredumps:
Notes
Supported architectures —
casr-core supports x86 (32-bit), x86-64, ARM, AArch64,
and RISC-V coredumps. The core file must be a valid ELF file of type ET_CORE.Online mode logs — In online mode,
casr-core appends diagnostic messages to
/var/log/casr.log. Check this file if reports are not appearing in /var/crash.