From 48190b3195abece374b249f93a75242bbffe139c Mon Sep 17 00:00:00 2001 From: "deanm@chromium.org" Date: Wed, 18 Mar 2009 19:23:04 +0000 Subject: A few updates to the valgrind runner script. - Add G_DEBUG=fatal_warnings to abort on GTK assertions. - Find the suppressions file no matter where you run the script from. - Add +x on the script. Review URL: http://codereview.chromium.org/45011 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@12001 0039d316-1c4b-4281-b951-d872f2087c98 --- tools/valgrind/valgrind.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) mode change 100644 => 100755 tools/valgrind/valgrind.sh (limited to 'tools') diff --git a/tools/valgrind/valgrind.sh b/tools/valgrind/valgrind.sh old mode 100644 new mode 100755 index d0cff56..2aa06fc --- a/tools/valgrind/valgrind.sh +++ b/tools/valgrind/valgrind.sh @@ -27,16 +27,18 @@ if [ ! -x $VALGRIND ]; then VALGRIND="valgrind" fi -SUPPRESSIONS=`pwd`/tools/valgrind/suppressions.txt +SUPPRESSIONS="$(cd `dirname "$0"` && pwd)/suppressions.txt" set -v # Pass GTK glib allocations through to system malloc so valgrind sees them. +# Ask GTK to abort on any critical or warning assertions. # Overwrite newly allocated or freed objects with 0x41 to catch inproper use. # smc-check=all is required for valgrind to see v8's dynamic code generation. # trace-children to follow into the renderer processes. # Prompt to attach gdb when there was an error detected. G_SLICE=always-malloc \ +G_DEBUG=fatal_warnings \ "$VALGRIND" \ --trace-children=yes \ --db-command="$GDB -nw %f %p" \ -- cgit v1.1