summaryrefslogtreecommitdiffstats
path: root/run.in
diff options
context:
space:
mode:
authorRichard W.M. Jones <rjones@redhat.com>2012-08-20 16:46:09 +0100
committerRichard W.M. Jones <rjones@redhat.com>2012-08-20 16:46:09 +0100
commit5e6727746367ba3f935dccb80109abf8e34fe74d (patch)
treeb739f3b7c8ec254fe4bc71c28a4c127f0efc8b64 /run.in
parentcd1627e8041ffa06764ef82b984f4291660edcc9 (diff)
downloadlibguestfs-5e6727746367ba3f935dccb80109abf8e34fe74d.tar.gz
libguestfs-5e6727746367ba3f935dccb80109abf8e34fe74d.tar.xz
libguestfs-5e6727746367ba3f935dccb80109abf8e34fe74d.zip
run: Disable 'memory optimizations' in glib programs, for valgrind (thanks Dan Berrange).
Diffstat (limited to 'run.in')
-rw-r--r--run.in3
1 files changed, 3 insertions, 0 deletions
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.