Skip to content

Commit

Permalink
valgrind: suppress leaks in dlopen and newer libraries
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
ethomson committed Aug 24, 2021
1 parent 0903cac commit c9b80c2
Showing 1 changed file with 64 additions and 0 deletions.
64 changes: 64 additions & 0 deletions script/valgrind.supp
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,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
Expand All @@ -64,6 +96,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
Expand Down Expand Up @@ -178,3 +226,19 @@
obj:*libcrypto.so*
...
}

{
ignore-dlopen-leak
Memcheck:Leak
...
fun:dlopen
...
}

{
ignore-dlopen-leak
Memcheck:Leak
...
fun:_dlerror_run
...
}

0 comments on commit c9b80c2

Please sign in to comment.