]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
Add suppression file for valgrind, and turn it on 961/head
authorChristian Hofstaedtler <christian@hofstaedtler.name>
Wed, 21 Aug 2013 13:13:49 +0000 (15:13 +0200)
committerChristian Hofstaedtler <christian@hofstaedtler.name>
Wed, 21 Aug 2013 13:13:49 +0000 (15:13 +0200)
This is tuned for pdns_server, not the recursor.

.valgrindrc [new file with mode: 0644]
pdns.supp [new file with mode: 0644]

diff --git a/.valgrindrc b/.valgrindrc
new file mode 100644 (file)
index 0000000..a0f6873
--- /dev/null
@@ -0,0 +1 @@
+--suppressions=pdns.supp
diff --git a/pdns.supp b/pdns.supp
new file mode 100644 (file)
index 0000000..0f0f2e3
--- /dev/null
+++ b/pdns.supp
@@ -0,0 +1,89 @@
+# internal SQLite stuff
+{
+   sqlite_sb
+   Memcheck:Leak
+   fun:malloc
+   obj:/usr/lib/x86_64-linux-gnu/libsqlite3.so.0.8.6
+   ...
+   obj:/usr/lib/x86_64-linux-gnu/libsqlite3.so.0.8.6
+   fun:_ZN8SSQLite3C1ERKSsb
+   ...
+}
+{
+   sqlite_create_function
+   Memcheck:Leak
+   fun:malloc
+   obj:/usr/lib/x86_64-linux-gnu/libsqlite3.so.0.8.6
+   ...
+   obj:/usr/lib/x86_64-linux-gnu/libsqlite3.so.0.8.6
+   fun:sqlite3_create_function_v2
+   ...
+}
+
+# Backend constructors, which might never get cleaned up.
+{
+   backendmaker_launch
+   Memcheck:Leak
+   ...
+   fun:_ZN17BackendMakerClass6launchERKSs
+   fun:main
+}
+{
+   backendfactory_makemetadataonly
+   Memcheck:Leak
+   ...
+   fun:_ZN14BackendFactory16makeMetadataOnlyERKSs
+   fun:_ZN17BackendMakerClass3allEb
+   fun:_ZN12UeberBackendC1ERKSs
+}
+{
+   packethandler_makebackend
+   Memcheck:Leak
+   ...
+   fun:_ZN17BackendMakerClass3allEb
+   fun:_ZN12UeberBackendC1ERKSs
+   fun:_ZN13PacketHandlerC1Ev
+}
+
+# Dynlistener, arguments and stats are never cleaned up.
+{
+   main_declarearguments
+   Memcheck:Leak
+   ...
+   fun:_Z16declareArgumentsv
+   fun:main
+}
+{
+   main_declarestats
+   Memcheck:Leak
+   ...
+   fun:_Z12declareStatsv
+   fun:main
+}
+{
+   dynlistener
+   Memcheck:Leak
+   ...
+   fun:_ZN11DynListenerC1ERKSs
+   fun:main
+}
+
+# Global objects.
+{
+   cxx_globals
+   Memcheck:Leak
+   ...
+   fun:__libc_csu_init
+   fun:(below main)
+}
+
+# TLS
+{
+   thread_local_state
+   Memcheck:Leak
+   ...
+   fun:allocate_dtv
+   fun:_dl_allocate_tls
+   ...
+}
+