Code

valgrind: ignore ldso and more libz errors
authorJeff King <peff@peff.net>
Tue, 3 Feb 2009 23:26:03 +0000 (00:26 +0100)
committerJunio C Hamano <gitster@pobox.com>
Wed, 4 Feb 2009 06:01:02 +0000 (22:01 -0800)
On some Linux systems, we get a host of Cond and Addr errors
from calls to dlopen that are caused by nss modules. We
should be able to safely ignore anything happening in
ld-*.so as "not our problem."

[Johannes: I added some more... unfortunately using valgrind 3.4.0 syntax]

Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/valgrind/default.supp

index 2482b3b06a7d49e9bc01545395df8095189d053a..5f341b85985bc096a6b5f49acce404a6f28855d5 100644 (file)
@@ -4,6 +4,12 @@
        obj:*libz.so*
 }
 
+{
+       ignore-zlib-errors-value8
+       Memcheck:Value8
+       obj:*libz.so*
+}
+
 {
        ignore-zlib-errors-value4
        Memcheck:Value4
 }
 
 {
-       writing-data-from-zlib-triggers-errors
+       ignore-ldso-cond
+       Memcheck:Cond
+       obj:*ld-*.so
+}
+
+{
+       ignore-ldso-addr8
+       Memcheck:Addr8
+       obj:*ld-*.so
+}
+
+{
+       ignore-ldso-addr4
+       Memcheck:Addr4
+       obj:*ld-*.so
+}
+
+{
+       writing-data-from-zlib-triggers-even-more-errors
        Memcheck:Param
        write(buf)
-       obj:/lib/ld-*.so
-       fun:write_in_full
-       fun:write_buffer
+       ...
        fun:write_loose_object
 }