[valgrind] [Bug 393146] Memcheck fails assert "is_DebugInfo_active(di)" even though code built with -g

2018-06-26 Thread Ellis Breen
https://bugs.kde.org/show_bug.cgi?id=393146

Ellis Breen  changed:

   What|Removed |Added

 CC||ellis.br...@gmail.com

--- Comment #1 from Ellis Breen  ---
Have seen the same. A quick workaround seems to shortcut is_DebugInfo_active:

>From be6aba76267a1302fb72db8836e83023e4971203 Mon Sep 17 00:00:00 2001
From: Ellis Breen 
Date: Tue, 26 Jun 2018 17:32:54 +0100
Subject: [PATCH] 393146: Temporary workaround for Darwin

---
 coregrind/m_debuginfo/debuginfo.c | 5 +
 1 file changed, 5 insertions(+)

diff --git a/coregrind/m_debuginfo/debuginfo.c
b/coregrind/m_debuginfo/debuginfo.c
index 13991b69a..ab05330b4 100644
--- a/coregrind/m_debuginfo/debuginfo.c
+++ b/coregrind/m_debuginfo/debuginfo.c
@@ -162,6 +162,8 @@ static inline Bool is_DebugInfo_allocated ( const
DebugInfo* di )
 // Is this DebugInfo currently "active" (valid for the current epoch) ?
 static inline Bool is_DebugInfo_active ( const DebugInfo* di )
 {
+// Temporary workaround for 393146
+#ifndef VGO_darwin
if (!is_DiEpoch_INVALID(di->first_epoch)
&& is_DiEpoch_INVALID(di->last_epoch)) {
   // Yes it is active.  Sanity check ..
@@ -170,6 +172,9 @@ static inline Bool is_DebugInfo_active ( const DebugInfo*
di )
} else {
   return False;
}
+#else
+   return True;
+#endif
 }

 // Is this DebugInfo currently "archived" ?
-- 
2.17.1

-- 
You are receiving this mail because:
You are watching all bug changes.

[valgrind] [Bug 393146] Memcheck fails assert "is_DebugInfo_active(di)" even though code built with -g

2018-06-26 Thread Ellis Breen
https://bugs.kde.org/show_bug.cgi?id=393146

Ellis Breen  changed:

   What|Removed |Added

 Ever confirmed|0   |1
 Status|UNCONFIRMED |CONFIRMED

-- 
You are receiving this mail because:
You are watching all bug changes.