[−][src]Function coredump::register_panic_handler
pub fn register_panic_handler() -> Result<(), (Cow<'static, str>, Error)>
Register a panic handler that will cause the program to dump core.
Note that creating a coredump is best effort, as the process largely
depends on system configuration. For example, on a Linux system the
kernel needs to have coredump support and coredump must not have
been prohibited (e.g., caused by a zero core file size rlimit).
Furthermore, the name of the resulting core file may be generic and
not reflect the program that crashed. On Linux it can be inquired
via /proc/sys/kernel/core_pattern
.