[Libguestfs] [PATCH nbdkit v2 2/2] wrapper: Remove GLIBC_TUNABLES when running under valgrind
Richard W.M. Jones
rjones at redhat.com
Sun Aug 22 12:57:16 UTC 2021
---
wrapper.c | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/wrapper.c b/wrapper.c
index ed77a0a1..42a0cd88 100644
--- a/wrapper.c
+++ b/wrapper.c
@@ -220,6 +220,15 @@ main (int argc, char *argv[])
* https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org/thread/57EYTAFQJVVG4APOV6AMM7C26H77IQEC/
*/
unsetenv ("DEBUGINFOD_URLS");
+
+ /* Temporary(?) workaround for:
+ * https://sourceware.org/bugzilla/show_bug.cgi?id=28256
+ *
+ * But should we actually use malloc checking etc when we are
+ * valgrinding? It seems to duplicate work done by valgrind and
+ * might even hide issues.
+ */
+ unsetenv ("GLIBC_TUNABLES");
}
else {
s = getenv ("NBDKIT_GDB");
--
2.32.0
More information about the Libguestfs
mailing list