message: Add the debug assert back
diff: @@ -60,6 +60,13 @@ impl UnwindRegistry {
  #[allow(clippy::cast_ptr_alignment)]
  unsafe fn register_frames(&mut self, eh_frame: &[u8]) {
  if cfg!(all(target_os = "linux", target_env = "gnu")) {
  + // Registering an empty `eh_frame` (i.e. which
  + // contains empty FDEs) cause problems on Linux when
  + // deregistering it. We must avoid this
  + // scenario. Usually, this is handled upstream by the
  + // compilers.
  + debug_assert_ne!(eh_frame, &[0, 0, 0, 0], "`eh_frame` seems to contain empty FDEs");
  +
  // On gnu (libgcc), `__register_frame` will walk the FDEs until an entry of length 0
  let ptr = eh_frame.as_ptr();
  __register_frame(ptr);
  