Bug 631841 - Move Valgrind suppression files into mozilla-central, r=ted, a=test
authorPhil Ringnalda <philringnalda@gmail.com>
Mon, 07 Feb 2011 19:21:52 -0800
changeset 62331 935706ff9e55464d340ec438d42a858a23078097
parent 62330 71d5d43ff9efad479d09ac75ac9e667079fd0c8c
child 62339 8d2ed27ac04a23199e1226f6575a1c3e178f5e92
push idunknown
push userunknown
push dateunknown
reviewersted, test
bugs631841
milestone2.0b12pre
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 631841 - Move Valgrind suppression files into mozilla-central, r=ted, a=test
build/Makefile.in
build/valgrind/i686-redhat-linux-gnu.sup
build/valgrind/x86_64-redhat-linux-gnu.sup
--- a/build/Makefile.in
+++ b/build/Makefile.in
@@ -107,16 +107,27 @@ GARBAGE_DIRS += $(_LEAKTEST_DIR)
 leaktest.py: leaktest.py.in
 	$(PYTHON) $(topsrcdir)/config/Preprocessor.py $^ > $@
 	chmod +x $@
 GARBAGE += leaktest.py
 
 libs:: $(_LEAKTEST_FILES)
 	$(INSTALL) $^ $(_LEAKTEST_DIR)
 
+_VALGRIND_DIR = $(DEPTH)/_valgrind
+GARBAGE_DIRS += $(_VALGRIND_DIR)
+
+_VALGRIND_FILES = \
+		$(topsrcdir)/build/valgrind/i686-redhat-linux-gnu.sup \
+		$(topsrcdir)/build/valgrind/x86_64-redhat-linux-gnu.sup \
+		$(NULL)
+
+libs:: $(_VALGRIND_FILES)
+	$(INSTALL) $^ $(_VALGRIND_DIR)
+
 ifdef ENABLE_TESTS
 libs:: $(topsrcdir)/tools/rb/fix_stack_using_bpsyms.py
 	$(INSTALL) $< $(DIST)/bin
 
 ifeq ($(OS_ARCH),Darwin)
 libs:: $(topsrcdir)/tools/rb/fix-macosx-stack.pl
 	$(INSTALL) $< $(DIST)/bin
 libs:: $(topsrcdir)/tools/rb/fix_macosx_stack.py
new file mode 100644
--- /dev/null
+++ b/build/valgrind/i686-redhat-linux-gnu.sup
@@ -0,0 +1,30 @@
+{
+   writev-XQueryExtension
+   Memcheck:Param
+   writev(vector[...])
+   fun:writev
+   fun:_X11TransSocketWritev
+   fun:_X11TransWritev
+   fun:_XSend
+   fun:XQueryExtension
+}
+{
+   write-gdk_x11_drawable_get_picture
+   Memcheck:Param
+   write(buf)
+   obj:/lib/libpthread-2.5.so
+   fun:_X11TransWrite
+   fun:_XFlushInt
+   fun:XRenderCreatePicture
+   fun:gdk_x11_drawable_get_picture
+}
+{
+   writev-XChangeProperty
+   Memcheck:Param
+   writev(vector[...])
+   fun:writev
+   fun:_X11TransSocketWritev
+   fun:_X11TransWritev
+   fun:_XSend
+   fun:XChangeProperty
+}
new file mode 100644
--- /dev/null
+++ b/build/valgrind/x86_64-redhat-linux-gnu.sup
@@ -0,0 +1,30 @@
+{
+    inflateReset2
+    Memcheck:Cond
+    fun:inflateReset2
+    fun:inflateInit2_
+}
+{
+   write-XQueryExtension
+   Memcheck:Param
+   writev(vector[...])
+   fun:writev
+   fun:_X11TransSocketWritev
+   fun:_XSend
+   fun:XQueryExtension
+}
+{
+   write-pthread
+   Memcheck:Param
+   write(buf)
+   obj:/lib64/libpthread-2.5.so
+}
+{
+   write-XChangeProperty
+   Memcheck:Param
+   writev(vector[...])
+   fun:writev
+   fun:_X11TransSocketWritev
+   fun:_XSend
+   fun:XChangeProperty
+}