crash-handler 0.7.0

Allows running of user code during crash events
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
//! Not tested for windows/macos since the point of testing this is to ensure
//! an alternate stack is always installed when anything Rust or otherwise does
//! a `pthread_create`. Windows doesn't use pthreads, and macos sends stack overflow
//! exceptions to a completely separate thread from the one that overflowed,
//! avoiding the problem altogether
#![cfg(all(unix, not(target_os = "macos")))]

mod shared;

#[test]
fn handles_stack_overflow_in_c_thread() {
    shared::handles_crash(shared::SadnessFlavor::StackOverflow {
        non_rust_thread: true,
        long_jumps: false,
    });
}