gplugin/gplugin

Add a valgrind suppression file
bugfix/valgrind-catchup
2020-02-27, Gary Kramlich
e96a77b70793
Parents 125979dd0777
Children a73f8b831ec1
Add a valgrind suppression file
--- a/gplugin/meson.build Thu Feb 27 03:26:05 2020 -0600
+++ b/gplugin/meson.build Thu Feb 27 03:56:31 2020 -0600
@@ -248,6 +248,7 @@
###############################################################################
# subdirectories
###############################################################################
+subdir('share')
subdir('tests')
if ENABLE_DOC
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/gplugin/share/meson.build Thu Feb 27 03:56:31 2020 -0600
@@ -0,0 +1,2 @@
+subdir('valgrind')
+
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/gplugin/share/valgrind/gplugin.supp Thu Feb 27 03:56:31 2020 -0600
@@ -0,0 +1,31 @@
+# GPlugin Valgrind suppressions file
+#
+# This file provides a list of suppressions for all of GPlugin (including
+# GPluginGTK), for all Valgrind tools (memcheck, drd, helgrind, etc.) for the
+# false positives and deliberate one-time leaks which GPlugin causes to be
+# reported when running under Valgrind. Some of these are actually from Glib,
+# but we handle them here because it takes time for them to filter into
+# distribution versions of glib.
+#
+# When running an application which links to GPlugin under Valgrind, you can
+# pass this suppression file to Valgrind using
+# --suppressions=/path/to/gplugin.supp.
+#
+# http://valgrind.org/docs/manual/manual-core.html#manual-core.suppress
+#
+# Note that there is currently no way for Valgrind to load this automatically
+# (https://bugs.kde.org/show_bug.cgi?id=160905), so the best GPlugin can
+# currently do is to install this file as part of its development package.
+#
+# This file should be updated if GPlugin introduces a new deliberate one-time
+# leak, or another false positive in Valgrind: please file bugs at:
+# https://issues.imfreedom.org/issues/GPLUGIN
+
+{
+ gplugin-register-plugin-state
+ Memcheck:Leak
+ match-leak-kinds: possible
+ ...
+ fun:gplugin_plugin_state_get_type
+}
+
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/gplugin/share/valgrind/meson.build Thu Feb 27 03:56:31 2020 -0600
@@ -0,0 +1,2 @@
+install_data('gplugin.supp',
+ install_dir : join_paths(get_option('datadir'), 'gplugin', 'valgrind'))
--- a/packaging/debian/libgplugin-dev.install Thu Feb 27 03:26:05 2020 -0600
+++ b/packaging/debian/libgplugin-dev.install Thu Feb 27 03:56:31 2020 -0600
@@ -3,6 +3,7 @@
debian/tmp/usr/include/gplugin-1.0/gplugin-native.h
debian/tmp/usr/lib/*/libgplugin.so
debian/tmp/usr/lib/*/pkgconfig/gplugin.pc
+debian/tmp/usr/share/gplugin/valgrind/gplugin.supp
debian/tmp/usr/share/vala/vapi/gplugin.deps
debian/tmp/usr/share/vala/vapi/gplugin.vapi
--- a/packaging/gplugin.spec.in Thu Feb 27 03:26:05 2020 -0600
+++ b/packaging/gplugin.spec.in Thu Feb 27 03:56:31 2020 -0600
@@ -182,6 +182,7 @@
%defattr(-,root,root)
%doc HACKING.md README.md
%license COPYING
+%{_datadir}/gplugin/
%{_datadir}/gir-1.0/GPlugin-0.0.gir
%{_datadir}/gtk-doc/html/gplugin/
%{_includedir}/gplugin-1.0/