Skip to content

Commit 8c6e9ff

Browse files
committed
Expand Valgrind suppression file for additional leaks
Added new leak suppressions to `valgrind.supp`, covering libraries like `libucs` and `libomp`, as well as `dlopen`-related functions. Improves memory check output by reducing false positives.
1 parent 0da828b commit 8c6e9ff

1 file changed

Lines changed: 73 additions & 9 deletions

File tree

valgrind.supp

Lines changed: 73 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,79 @@
11
{
2-
suppress mpi init internal leaks
2+
libucs_strdup_leak
33
Memcheck:Leak
4-
...
5-
fun:MPI_Init
6-
...
4+
match-leak-kinds: reachable
5+
fun:malloc
6+
fun:strdup
7+
fun:ucs_strdup
8+
fun:ucs_config_sscanf_string
79
}
810

911
{
10-
suppress mpi finalize internal leaks
12+
libucs_array_leak
1113
Memcheck:Leak
12-
...
13-
fun:MPI_Finalize
14-
...
15-
}
14+
match-leak-kinds: reachable
15+
fun:calloc
16+
fun:ucs_calloc
17+
fun:ucs_config_sscanf_array
18+
}
19+
20+
{
21+
libomp_set_num_threads_leak1
22+
Memcheck:Leak
23+
match-leak-kinds: reachable
24+
fun:malloc
25+
obj:/usr/lib/llvm-20/lib/libomp.so.5
26+
fun:omp_set_num_threads
27+
}
28+
29+
{
30+
libomp_set_num_threads_leak2
31+
Memcheck:Leak
32+
match-leak-kinds: possible
33+
fun:malloc
34+
obj:/usr/lib/llvm-20/lib/libomp.so.5
35+
fun:omp_set_num_threads
36+
}
37+
38+
{
39+
libomp_internal_alloc1
40+
Memcheck:Leak
41+
match-leak-kinds: possible
42+
fun:malloc
43+
fun:___kmp_allocate
44+
obj:/usr/lib/llvm-20/lib/libomp.so.5
45+
}
46+
47+
{
48+
dlopen_strdup_leak
49+
Memcheck:Leak
50+
match-leak-kinds: reachable
51+
fun:malloc
52+
fun:strdup
53+
fun:_dl_map_object
54+
}
55+
56+
{
57+
dlopen_dl_new_object
58+
Memcheck:Leak
59+
match-leak-kinds: reachable
60+
fun:malloc
61+
fun:_dl_new_object
62+
fun:_dl_map_object_from_fd
63+
}
64+
65+
{
66+
dlopen_global_resize
67+
Memcheck:Leak
68+
match-leak-kinds: reachable
69+
fun:malloc
70+
fun:add_to_global_resize
71+
}
72+
73+
{
74+
dlopen_check_map_versions
75+
Memcheck:Leak
76+
match-leak-kinds: reachable
77+
fun:calloc
78+
fun:_dl_check_map_versions
79+
}

0 commit comments

Comments
 (0)