https://sourceware.org/cgit/valgrind/commit/?id=ba56e9dee171b92ef03168c2bb014de1962d1f0e
commit ba56e9dee171b92ef03168c2bb014de1962d1f0e
Author: Philippe Waroquiers <phi...@sk...>
Date: Sun Dec 7 21:14:20 2025 +0100
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:
---
coregrind/m_libcassert.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/coregrind/m_libcassert.c b/coregrind/m_libcassert.c
index 5859912496..35a988c65d 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)("</valgrindoutput>\n");
|