]> xenbits.xensource.com Git - people/dariof/libvirt.git/commitdiff
valgrind.supp: Add more valgrind suppression paths
authorJohn Ferlan <jferlan@redhat.com>
Tue, 23 Jul 2013 14:29:10 +0000 (10:29 -0400)
committerJohn Ferlan <jferlan@redhat.com>
Tue, 23 Jul 2013 23:04:48 +0000 (19:04 -0400)
Update based on recent run/failures seen

tests/.valgrind.supp

index 10cc3c0dc79f970e22766edd1bd27bc15007643f..f04912d0a20714710bfb4f11943c970ce0d457ce 100644 (file)
     ...
     obj:*/lib*/libc-2.*so*
 }
+#
+# commandtest validates the various threaded commands. The
+# virThreadCreate() routine allocates and passes args to the
+# new thread which now owns the 'args' and thus cannot be free'd
+#
+{
+    commandtestLeak1
+    Memcheck:Leak
+    fun:calloc
+    fun:virAlloc
+    fun:virThreadCreate
+    fun:mymain
+    fun:virtTestMain
+}
+#
+# The Error code requires static memory that is never free'd
+# for thread local storage to store error message/data
+#
+{
+    commandtestLeak2
+    Memcheck:Leak
+    fun:calloc
+    fun:virAlloc
+    ...
+    fun:vir*LastError*
+    fun:virEventRunDefaultImpl
+    fun:virCommandThreadWorker
+    fun:virThreadHelper
+    fun:start_thread
+    fun:clone
+}
+#
+# Some of the commandtests (test0, test1, test4, & test18) cause the
+# following traceback although it appears the memory is properly freed
+#
+{
+    commandtestLeak3
+    Memcheck:Leak
+    fun:calloc
+    fun:virAllocN
+    fun:virEventPollRunOnce
+    fun:virEventRunDefaultImpl
+    fun:virCommandThreadWorker
+    fun:virThreadHelper
+    fun:start_thread
+    fun:clone
+}
+#
+# seclabeltest relies on 'selabel_close' which is not in libvirt
+#
+{
+    seclabeltestcond1
+    Memcheck:Cond
+    obj:/usr/lib64/libselinux.so.1
+    fun:selabel_close
+    fun:virSecuritySELinuxSecurityDriverClose
+    fun:virSecurityManagerDispose
+    fun:virObjectUnref
+    fun:main
+}