]> git.apps.os.sepia.ceph.com Git - teuthology.git/commitdiff
install: extend python-related valgrind rules 1145/head
authorJohn Spray <john.spray@redhat.com>
Mon, 15 Jan 2018 10:20:28 +0000 (10:20 +0000)
committerJohn Spray <john.spray@redhat.com>
Mon, 15 Jan 2018 10:20:28 +0000 (10:20 +0000)
These were set for kind 'possible' which was failing
to suppress Leak_DefinitelyLost errors.

Also add several suppressions related to module
initialization.

Signed-off-by: John Spray <john.spray@redhat.com>
teuthology/task/install/valgrind.supp

index c9b461f928a2143e022a3a8c3b040b9b199d1271..58c07e21e8dd5d01f163366e7a790f8398cf6a57 100644 (file)
 {
     python does not reset the member field when dealloc an object
     Memcheck:Leak
-    match-leak-kinds: possible
+    match-leak-kinds: all
     ...
     fun:Py_InitializeEx
     ...
 }
+{
+    statically allocated python types don't get members freed
+    Memcheck:Leak
+    match-leak-kinds: all
+    ...
+    fun:PyType_Ready
+    ...
+}
+{
+    manually constructed python module members don't get freed
+    Memcheck:Leak
+    match-leak-kinds: all
+    ...
+    fun:Py_InitModule4_64
+    ...
+}
+{
+    manually constructed python module members don't get freed
+    Memcheck:Leak
+    match-leak-kinds: all
+    ...
+    fun:PyModule_AddObject
+    ...
+}
+{
+    python subinterpreters may not clean up properly
+    Memcheck:Leak
+    match-leak-kinds: all
+    ...
+    fun:Py_NewInterpreter
+    ...
+}
 {
     python should be able to take care of itself
     Memcheck:Leak
-    match-leak-kinds: possible
+    match-leak-kinds: all
     ...
     fun:PyEval_EvalCode
 }
 {
     python should be able to take care of itself
     Memcheck:Leak
-    match-leak-kinds: possible
+    match-leak-kinds: all
     ...
     fun:PyImport_ImportModuleLevel
 }
 {
-    python should be able to take care of itself
+    python-owned threads may not full clean up after themselves
     Memcheck:Leak
-    match-leak-kinds: possible
+    match-leak-kinds: all
     ...
     fun:PyEval_CallObjectWithKeywords
 }
 {
     python should be able to take care of itself
     Memcheck:Leak
-    match-leak-kinds: possible
+    match-leak-kinds: all
     ...
     fun:PyEval_EvalFrameEx
     ...
 {
     python should be able to take care of itself
     Memcheck:Leak
-    match-leak-kinds: possible
+    match-leak-kinds: all
     ...
     fun:PyObject_Call
 }
   ...
   fun:_dlerror_run
   fun:dlopen@@GLIBC_2.2.5
-}
\ No newline at end of file
+}