run: Disable 'memory optimizations' in glib programs, for valgrind (thanks Dan Berrange).

This commit is contained in:
Richard W.M. Jones
2012-08-20 16:46:09 +01:00
parent cd1627e804
commit 5e67277463

3
run.in
View File

@@ -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.