Skip to content

Commit 33224c9

Browse files
committed
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.
1 parent 7f12ab9 commit 33224c9

File tree

1 file changed

+64
-0
lines changed

1 file changed

+64
-0
lines changed

script/valgrind.supp

Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,38 @@
4141
...
4242
}
4343

44+
{
45+
ignore-openssl-init-leak
46+
Memcheck:Leak
47+
...
48+
fun:git_openssl_stream_global_init
49+
...
50+
}
51+
52+
{
53+
ignore-openssl-legacy-init-leak
54+
Memcheck:Leak
55+
...
56+
fun:OPENSSL_init_ssl__legacy
57+
...
58+
}
59+
60+
{
61+
ignore-openssl-malloc-leak
62+
Memcheck:Leak
63+
...
64+
fun:git_openssl_malloc
65+
...
66+
}
67+
68+
{
69+
ignore-openssl-realloc-leak
70+
Memcheck:Leak
71+
...
72+
fun:git_openssl_realloc
73+
...
74+
}
75+
4476
{
4577
ignore-glibc-getaddrinfo-cache
4678
Memcheck:Leak
@@ -64,6 +96,22 @@
6496
...
6597
}
6698

99+
{
100+
ignore-libssh2-session-create
101+
Memcheck:Leak
102+
...
103+
fun:_git_ssh_session_create
104+
...
105+
}
106+
107+
{
108+
ignore-libssh2-setup-conn
109+
Memcheck:Leak
110+
...
111+
fun:_git_ssh_setup_conn
112+
...
113+
}
114+
67115
{
68116
ignore-libssh2-gcrypt-control-leak
69117
Memcheck:Leak
@@ -178,3 +226,19 @@
178226
obj:*libcrypto.so*
179227
...
180228
}
229+
230+
{
231+
ignore-dlopen-leak
232+
Memcheck:Leak
233+
...
234+
fun:dlopen
235+
...
236+
}
237+
238+
{
239+
ignore-dlopen-leak
240+
Memcheck:Leak
241+
...
242+
fun:_dlerror_run
243+
...
244+
}

0 commit comments

Comments
 (0)