1
0

Added a shortcut for running under helgrind with the most common parameters and suppressions

git-svn-id: http://mc-server.googlecode.com/svn/trunk@1682 0a769ca7-a7f5-676a-18bf-c427514a06d6
This commit is contained in:
madmaxoft@gmail.com 2013-07-26 08:49:58 +00:00
parent cd007c2908
commit 1b825df6c2
2 changed files with 29 additions and 0 deletions

7
MCServer/hg Normal file
View File

@ -0,0 +1,7 @@
#! /bin/bash
# This script runs MCServer under helgrind
# It expects valgrind to be normally installed and available
# Note that this is for Linux only and debug-only, since it slows down MCS way too much
valgrind --log-file=helgrind.log --suppressions=hg.supp --gen-suppressions=all --tool=helgrind -v ./MCServer

22
MCServer/hg.supp Normal file
View File

@ -0,0 +1,22 @@
# This is a valgrind suppressions file for running helgrind on MCServer
# Use by adding "--suppressions=hg.supp" to the helgrind commandline
# This covers GCC bug 40518, http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40518
# "Erasing an empty string causes a global value write / race condition warning in helgrind"
# Original suppression authored by Jonathan Wakely: http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40518#c20
# Modified by Mattes to match the mangled function name used on Ubuntu
{
libstdcxx_std_string_race_pr40518
Helgrind:Race
fun:_ZNSs9_M_mutateEjjj
}