]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
If valgrind crashes (e.g. on SEGV) and debug log > 0, report aspacemgr status
authorPhilippe Waroquiers <philippe.waroquiers@skynet.be>
Sun, 7 Dec 2025 20:14:20 +0000 (21:14 +0100)
committerPhilippe Waroquiers <philippe.waroquiers@skynet.be>
Sun, 7 Dec 2025 20:14:20 +0000 (21:14 +0100)
Might help to see what goes wrong in bug 511717 gdbdserver read memory SIGSEGV

coregrind/m_libcassert.c

index 585991249603801dd06ff54220ca33dc68c51c97..35a988c65dbe4c4eb1f6318f750b8ac0e3bc67f9 100644 (file)
@@ -27,6 +27,7 @@
 */
 
 #include "pub_core_basics.h"
+#include "pub_core_debuglog.h"
 #include "pub_core_vki.h"
 #include "pub_core_vkiscnums.h"
 #include "pub_core_threadstate.h"
@@ -499,6 +500,10 @@ static void report_and_quit ( const HChar* report,
                           False, // exited_threads
                           startRegsIN);
 
+   if (VG_(debugLog_getLevel) > 0) {
+      VG_(am_show_nsegments) (1, "report_and_quit");
+      (void) VG_(am_do_sync_check) ("report_and_quit", __FILE__, __LINE__);
+   }
    if (VG_(clo_xml)) // After flushing outputs
       VG_(printf_xml)("</valgrindoutput>\n");