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-gdb runs a target binary under GDB, intercepts the crash, and produces a
structured .casrep JSON report. Unlike casr-san, it works with binaries that are
not instrumented with sanitizers, making it useful for estimating crash severity in
production-like builds. The report includes severity classification (exploitable /
probably exploitable / not exploitable), full stack trace, register values, disassembly
around the faulting instruction, memory mappings, and source context where available.
Synopsis
Options
Path to save the generated
.casrep report. If the path points to an existing
directory, the report filename is generated automatically from the crash hash.Print the CASR report as JSON to stdout rather than 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 for the target binary. 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. Can also be
set via the
CASR_STRIP_PATH environment variable.Examples
Analyse a crash with a command-line argument
Run the pre-builttest_destAv binary with a 200-byte A payload and save the report:
Print report to stdout
Pass input via stdin
Save report to a directory
When--output is a directory, casr-gdb generates the filename automatically:
Use a timeout
Strip build prefixes from paths
Notes
Required for casr-afl —
casr-gdb (along with casr-san) must be present in
your PATH for casr-afl to work correctly. casr-afl invokes casr-gdb to
generate additional crash reports for uninstrumented binaries alongside ASAN reports.Supported architectures —
casr-gdb reads the ELF header of the target binary
and supports x86, x86-64, ARM, AArch64, and RISC-V targets. The binary must be an
ELF executable or shared object (ET_EXEC / ET_DYN).