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-san runs a target binary instrumented with AddressSanitizer (or MemorySanitizer) and
produces a structured .casrep JSON report. The report includes severity classification,
stack trace, crash line, source context, OS info, and the raw sanitizer output. It also
handles Go panics and Rust backtraces when those are present in the sanitizer output.
Synopsis
Options
Path to save the generated
.casrep report. If the path points to an existing directory,
a report filename is generated automatically based on the crash hash.Print the CASR report as JSON to stdout instead of writing to a file. Mutually exclusive
with
--output; exactly one of the two must be provided.Path to a file that will be redirected to the target program’s standard input.
Execution timeout in seconds. A value of
0 disables the timeout entirely.Path to a file containing regular expressions for function names and file paths that
should be excluded from stack trace analysis. See the ignore file format in
casr-cluster.
A path prefix to strip from all stack trace entries and the crash line in the report.
Can also be set via the
CASR_STRIP_PATH environment variable.One or more shared library paths to inject into the target process via
LD_PRELOAD,
without affecting the casr-san process itself. Space ( ) and colon (:) are both
valid delimiters. Can also be set via the CASR_PRELOAD environment variable.Examples
Compile with AddressSanitizer and generate a report
Save report to a directory
When--output points to an existing directory, casr-san derives the filename from
the crash hash automatically:
Print report to stdout
Pass input via stdin
Set a timeout
Notes
Rust fuzz targets — When
casr-san is used to analyse a Rust fuzz target you can
choose whether the report is built from the ASAN stack trace or from the Rust backtrace.
Set RUST_BACKTRACE=1 (or RUST_BACKTRACE=full) before running casr-san to use the
Rust backtrace instead.MemorySanitizer — The generated report will contain an
casr-san also supports targets compiled with
-fsanitize=memory (MSAN). Compile with:MsanReport field instead of AsanReport.