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:
parent
cd007c2908
commit
1b825df6c2
7
MCServer/hg
Normal file
7
MCServer/hg
Normal 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
22
MCServer/hg.supp
Normal 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
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user