Module rustc_driver_impl::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.
Functions§
- backtrace_stderr π
- backtrace_symbols_fd π β
- install πWhen SIGSEGV 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