mirror of
https://github.com/libguestfs/libguestfs.git
synced 2026-03-22 07:03:38 +00:00
run: Disable 'memory optimizations' in glib programs, for valgrind (thanks Dan Berrange).
This commit is contained in:
3
run.in
3
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.
|
||||
|
||||
Reference in New Issue
Block a user