Comment
Comment by hegelstoleit
1. As far as i'm aware there's no way to reliably catch all panics. catch_unwind does not catch all panics.
2. The whole point is that consequences of a panic are worse than the consequences of memory corruption. That's how the kernel was designed. There was an explicit design decision not to kernel panic in every situation where a logic error occurs.