diff options
author | Edward Thomson <ethomson@edwardthomson.com> | 2021-08-21 15:28:45 -0400 |
---|---|---|
committer | Edward Thomson <ethomson@edwardthomson.com> | 2021-08-24 16:23:46 -0400 |
commit | c9b80c257309c68bcb66476dee42134d80975072 (patch) | |
tree | 91812ed409ec0d98c151c9dc9e8eea5daf762bbc | |
parent | 0903cac1d08817e87c556f5a3e6ec881be86c7f2 (diff) | |
download | libgit2-c9b80c257309c68bcb66476dee42134d80975072.tar.gz |
valgrind: suppress leaks in dlopen and newer libraries
dlopen sets up some thread-local state that isn't cleaned up by
`dlclose`. Additionally, now that we're linking against different
versions of libssh2 and OpenSSL, we're seeing different leak signatures.
-rw-r--r-- | script/valgrind.supp | 64 |
1 files changed, 64 insertions, 0 deletions
diff --git a/script/valgrind.supp b/script/valgrind.supp index d938aa9c9..8c4549f62 100644 --- a/script/valgrind.supp +++ b/script/valgrind.supp @@ -42,6 +42,38 @@ } { + ignore-openssl-init-leak + Memcheck:Leak + ... + fun:git_openssl_stream_global_init + ... +} + +{ + ignore-openssl-legacy-init-leak + Memcheck:Leak + ... + fun:OPENSSL_init_ssl__legacy + ... +} + +{ + ignore-openssl-malloc-leak + Memcheck:Leak + ... + fun:git_openssl_malloc + ... +} + +{ + ignore-openssl-realloc-leak + Memcheck:Leak + ... + fun:git_openssl_realloc + ... +} + +{ ignore-glibc-getaddrinfo-cache Memcheck:Leak ... @@ -65,6 +97,22 @@ } { + ignore-libssh2-session-create + Memcheck:Leak + ... + fun:_git_ssh_session_create + ... +} + +{ + ignore-libssh2-setup-conn + Memcheck:Leak + ... + fun:_git_ssh_setup_conn + ... +} + +{ ignore-libssh2-gcrypt-control-leak Memcheck:Leak ... @@ -178,3 +226,19 @@ obj:*libcrypto.so* ... } + +{ + ignore-dlopen-leak + Memcheck:Leak + ... + fun:dlopen + ... +} + +{ + ignore-dlopen-leak + Memcheck:Leak + ... + fun:_dlerror_run + ... +} |