From: Philippe Waroquiers Date: Sun, 7 Dec 2025 20:14:20 +0000 (+0100) Subject: If valgrind crashes (e.g. on SEGV) and debug log > 0, report aspacemgr status X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ba56e9dee171b92ef03168c2bb014de1962d1f0e;p=thirdparty%2Fvalgrind.git If valgrind crashes (e.g. on SEGV) and debug log > 0, report aspacemgr status Might help to see what goes wrong in bug 511717 gdbdserver read memory SIGSEGV --- diff --git a/coregrind/m_libcassert.c b/coregrind/m_libcassert.c index 585991249..35a988c65 100644 --- a/coregrind/m_libcassert.c +++ b/coregrind/m_libcassert.c @@ -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)("\n");