Module signal_handler

Source
Expand description

Signal handler for rustc Primarily used to extract a backtrace from stack overflow

MacrosΒ§

raw_errln πŸ”’
We don’t really care how many bytes we actually get out. SIGSEGV comes for our head. Splash stderr with letters of our own blood to warn our friends about the monster.

StructsΒ§

RawStderr πŸ”’
Unbuffered, unsynchronized writer to stderr.

ConstantsΒ§

KILL_SIGNALS πŸ”’
Signals that represent that we have a bug, and our prompt termination has been ordered.

FunctionsΒ§

backtrace_stderr πŸ”’
backtrace_symbols_fd πŸ”’ ⚠
install πŸ”’
When one of the KILL signals is delivered to the process, print a stack trace and then exit.
min_sigstack_size πŸ”’
Modern kernels on modern hardware can have dynamic signal stack sizes.
print_stack_trace πŸ”’ ⚠
Signal handler installed for SIGSEGV