From 5e6727746367ba3f935dccb80109abf8e34fe74d Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Mon, 20 Aug 2012 16:46:09 +0100 Subject: run: Disable 'memory optimizations' in glib programs, for valgrind (thanks Dan Berrange). --- run.in | 3 +++ 1 file changed, 3 insertions(+) diff --git a/run.in b/run.in index c4ae7c7a..d6298313 100644 --- a/run.in +++ b/run.in @@ -94,6 +94,9 @@ else GI_TYPELIB_PATH="$b/gobject:$GI_TYPELIB_PATH" fi export GI_TYPELIB_PATH +# Be friendly to valgrind (https://live.gnome.org/Valgrind) +export G_SLICE=always-malloc +export G_DEBUG=gc-friendly # This is a cheap way to find some use-after-free and uninitialized # read problems when using glibc. -- cgit