summaryrefslogtreecommitdiffstats
path: root/MCServer
diff options
context:
space:
mode:
authormadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2013-07-26 10:49:58 +0200
committermadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2013-07-26 10:49:58 +0200
commit1b825df6c2fbf8ef70ab02b59b2c41a5d6ac46c5 (patch)
treea2a50fe4ef6cba3a2d5312d6c13e78313b8d86de /MCServer
parentPlugins folder: ignoring everything not explicitly added (diff)
downloadcuberite-1b825df6c2fbf8ef70ab02b59b2c41a5d6ac46c5.tar
cuberite-1b825df6c2fbf8ef70ab02b59b2c41a5d6ac46c5.tar.gz
cuberite-1b825df6c2fbf8ef70ab02b59b2c41a5d6ac46c5.tar.bz2
cuberite-1b825df6c2fbf8ef70ab02b59b2c41a5d6ac46c5.tar.lz
cuberite-1b825df6c2fbf8ef70ab02b59b2c41a5d6ac46c5.tar.xz
cuberite-1b825df6c2fbf8ef70ab02b59b2c41a5d6ac46c5.tar.zst
cuberite-1b825df6c2fbf8ef70ab02b59b2c41a5d6ac46c5.zip
Diffstat (limited to '')
-rw-r--r--MCServer/hg7
-rw-r--r--MCServer/hg.supp22
2 files changed, 29 insertions, 0 deletions
diff --git a/MCServer/hg b/MCServer/hg
new file mode 100644
index 000000000..93593de8d
--- /dev/null
+++ b/MCServer/hg
@@ -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 \ No newline at end of file
diff --git a/MCServer/hg.supp b/MCServer/hg.supp
new file mode 100644
index 000000000..048f1382f
--- /dev/null
+++ b/MCServer/hg.supp
@@ -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
+}
+
+
+
+