Struct libcasr::report::CrashReport
source · pub struct CrashReport {Show 32 fields
pub pid: i32,
pub date: String,
pub uname: String,
pub os: String,
pub os_release: String,
pub architecture: String,
pub executable_path: String,
pub proc_environ: Vec<String>,
pub proc_cmdline: String,
pub stdin: String,
pub proc_status: Vec<String>,
pub proc_maps: Vec<String>,
pub proc_fd: Vec<String>,
pub network_connections: Vec<String>,
pub execution_class: ExecutionClass,
pub stacktrace: Vec<String>,
pub registers: Registers,
pub disassembly: Vec<String>,
pub package: String,
pub package_version: String,
pub package_architecture: String,
pub package_description: String,
pub asan_report: Vec<String>,
pub ubsan_report: Vec<String>,
pub python_report: Vec<String>,
pub go_report: Vec<String>,
pub java_report: Vec<String>,
pub rust_report: Vec<String>,
pub js_report: Vec<String>,
pub csharp_report: Vec<String>,
pub crashline: String,
pub source: Vec<String>,
}
Expand description
Represents the information about program termination.
Fields§
§pid: i32
Pid of crashed process.
date: String
Date and time of the problem report in ISO format. (see asctime(3)).
uname: String
Output of uname -a.
os: String
Name of the operating system. On LSB compliant systems, this can be determined with lsb_release -si.
os_release: String
Release version of the operating system. On LSB compliant systems, this can be determined with lsb_release -sr.
architecture: String
OS specific notation of processor/system architecture (e. g. i386).
executable_path: String
Contents of /proc/pid/exe for ELF files; if the process is an interpreted script, this is the script path instead.
proc_environ: Vec<String>
Subset of the process’ environment, from /proc/pid/env; this should only show some standard variables that.
proc_cmdline: String
Contents of /proc/pid/cmdline.
stdin: String
Path to stdin for target
proc_status: Vec<String>
Contents of /proc/pid/status.
proc_maps: Vec<String>
Contents of /proc/pid/maps.
proc_fd: Vec<String>
Opend files at crash : ls -lah /proc/<pid>/fd.
network_connections: Vec<String>
Opened network connections.
execution_class: ExecutionClass
Crash classification.
stacktrace: Vec<String>
Stack trace for crashed thread.
registers: Registers
Registers state for crashed thread.
disassembly: Vec<String>
Disassembly for crashed state (16 instructions).
package: String
Package name.
package_version: String
Package version.
package_architecture: String
Package architecture.
package_description: String
Package description.
asan_report: Vec<String>
Asan report.
ubsan_report: Vec<String>
Ubsan report.
python_report: Vec<String>
Python report.
go_report: Vec<String>
Go report.
java_report: Vec<String>
Java report.
rust_report: Vec<String>
Rust report.
js_report: Vec<String>
JS report.
csharp_report: Vec<String>
C# report.
crashline: String
Crash line from stack trace: source:line or binary+offset.
source: Vec<String>
Source code fragment.
Implementations§
source§impl CrashReport
impl CrashReport
sourcepub fn add_network_connections(&mut self) -> Result<()>
pub fn add_network_connections(&mut self) -> Result<()>
Add information about opened network connections
sourcepub fn add_os_info(&mut self) -> Result<()>
pub fn add_os_info(&mut self) -> Result<()>
Add information about operation system
sourcepub fn add_proc_info(&mut self) -> Result<()>
pub fn add_proc_info(&mut self) -> Result<()>
Add information about running process
sourcepub fn add_proc_environ(&mut self) -> Result<()>
pub fn add_proc_environ(&mut self) -> Result<()>
Add current process environment variables
sourcepub fn add_package_info(&mut self) -> Result<()>
pub fn add_package_info(&mut self) -> Result<()>
Add package information.
sourcepub fn set_disassembly(&mut self, gdb_asm: &str)
pub fn set_disassembly(&mut self, gdb_asm: &str)
sourcepub fn filtered_stacktrace(&self) -> Result<Stacktrace>
pub fn filtered_stacktrace(&self) -> Result<Stacktrace>
Filter frames from the stack trace that are not related to analyzed code containing crash
and return it as Stacktrace
struct
Trait Implementations§
source§impl Clone for CrashReport
impl Clone for CrashReport
source§fn clone(&self) -> CrashReport
fn clone(&self) -> CrashReport
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more