lib: dump memory stats on core
diff --git a/lib/sigevent.c b/lib/sigevent.c
index c80a729..a120028 100644
--- a/lib/sigevent.c
+++ b/lib/sigevent.c
@@ -237,6 +237,8 @@
 	      , siginfo, program_counter(context)
 #endif
 	     );
+  /* dump memory stats on core */
+  log_memstats_stderr ("core_handler");
   abort();
 }