File tree 1 file changed +4
-3
lines changed
1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change 5
5
//
6
6
//
7
7
8
- // Call this after initialising the `log` package. Instruments SIGBUS and
9
- // SIGSEGV to generate a backtrace with `info` verbosity (lowest level so
10
- // it's always reported).
8
+ // Call this after initialising the `log` package. Instruments SIGBUS,
9
+ // SIGSEGV, and SIGILL to generate a backtrace with `info` verbosity
10
+ // (lowest level so it's always reported).
11
11
//
12
12
// This uses `signal()` instead of `sigaction()` for Windows support
13
13
// (SIGSEGV is one of the rare supported signals)
@@ -24,6 +24,7 @@ pub fn register_trap_handlers() {
24
24
unsafe {
25
25
libc:: signal ( libc:: SIGBUS , backtrace_handler as libc:: sighandler_t ) ;
26
26
libc:: signal ( libc:: SIGSEGV , backtrace_handler as libc:: sighandler_t ) ;
27
+ libc:: signal ( libc:: SIGILL , backtrace_handler as libc:: sighandler_t ) ;
27
28
}
28
29
}
29
30
You can’t perform that action at this time.
0 commit comments