aboutsummaryrefslogtreecommitdiffstats
path: root/components
diff options
context:
space:
mode:
Diffstat (limited to 'components')
-rw-r--r--components/servo/main.rs5
1 files changed, 4 insertions, 1 deletions
diff --git a/components/servo/main.rs b/components/servo/main.rs
index a13c2ca8b5d..64112fde54b 100644
--- a/components/servo/main.rs
+++ b/components/servo/main.rs
@@ -70,7 +70,10 @@ fn install_crash_handler() {
}
}
- signal!(Sig::SEGV, handler);
+ signal!(Sig::SEGV, handler); // handle segfaults
+ signal!(Sig::ILL, handler); // handle stack overflow and unsupported CPUs
+ signal!(Sig::IOT, handler); // handle double panics
+ signal!(Sig::BUS, handler); // handle invalid memory access
}
#[cfg(target_os = "android")]