Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Option was removed by commit 16ba43eb3e96c1e430734f866a4316e7e8a229ae.
[simgrid.git] / tools / simgrid.supp
1 # Valgrind suppressions for stuff that we cannot control
2
3 # Memory leaks in standard tools (e.g. dash, tail, or sort)
4 {
5    Memory leak in /bin tools
6    Memcheck:Leak
7    ...
8    obj:/bin/*
9 }
10
11 {
12    Memory leak in /usr/bin tools
13    Memcheck:Leak
14    ...
15    obj:/usr/bin/*
16 }
17
18 # There's a constant leak of 56 bytes in the depths of libc which
19 # manifests, for example, when using backtrace()
20 {
21    Memory leak in libc/dlopen with -pthread
22    Memcheck:Leak
23    fun:malloc
24    fun:_dl_map_object_deps
25    fun:dl_open_worker
26    fun:_dl_catch_error
27    fun:_dl_open
28    fun:do_dlopen
29    fun:_dl_catch_error
30    fun:dlerror_run
31    fun:__libc_dlopen_mode
32 }
33
34 # Another problem in glibc, where makecontext does not reset the EBP register,
35 # and backtrace goes too far when walking up the stack frames
36 {
37    Invalid read in backtrace, called after makecontext
38    Memcheck:Addr4
39    fun:backtrace
40    ...
41    fun:makecontext
42 }
43
44 #There seems to be an issue with libc using an uninitialized value somewhere in dlopen
45 {
46    Invalid read in dl_start
47    Memcheck:Cond
48    fun:index
49    fun:expand_dynamic_string_token
50    ...
51    fun:_dl_start
52 }
53
54 # 72704 bytes leak from GCC >5.1 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64535
55 {
56    Memory leak in dl_init
57    Memcheck:Leak
58    match-leak-kinds:reachable
59    fun:malloc
60    obj:/usr/lib/*/libstdc++.so.*
61    fun:call_init.part.0
62    ...
63    fun:_dl_init
64 }
65
66 #Ignore leaks in SMPI sample codes
67 {
68    Leaks in SMPI sample codes
69    Memcheck:Leak
70    match-leak-kinds: all
71    fun:malloc
72    fun:smpi_simulated_main_
73 }
74
75 #SMPI leaks the dlopen handle used to load the program
76 {
77    dlopen handle leaks (1/2)
78    Memcheck:Leak
79    match-leak-kinds:reachable
80    fun:malloc
81    ...
82    fun:dlopen@@GLIBC_*
83 }
84
85 {
86    dlopen handle leaks (2/2)
87    Memcheck:Leak
88    match-leak-kinds:reachable
89    fun:calloc
90    ...
91    fun:dlopen@@GLIBC_*
92 }
93
94 # Memory leaks appearing to be in libcgraph.  They can be seen with the
95 # following simple program:
96 # ,----
97 # | #include <stdio.h>
98 # | #include <graphviz/cgraph.h>
99 # | int main(int argc, char *argv[])
100 # | {
101 # |     if (argc == 1) {
102 # |         printf("Usage: %s <dotfile>\n", argv[0]);
103 # |         return 1;
104 # |     }
105 # |     Agraph_t *g;
106 # |     FILE *inf = fopen(argv[1], "r");
107 # |     g = agread(inf, 0);
108 # |     fclose(inf);
109 # |     agclose(g);
110 # |     return 0;
111 # | }
112 # `----
113 {
114    Memory leak in libcgraph (1/2)
115    Memcheck:Leak
116    fun:malloc
117    ...
118    obj:/usr/lib/libcgraph.so*
119    fun:aaglex
120    fun:aagparse
121    fun:agconcat
122 }
123 {
124    Memory leak in libcgraph (1/2)
125    Memcheck:Leak
126    fun:calloc
127    ...
128    obj:/usr/lib/libcgraph.so*
129    fun:aagparse
130    fun:agconcat
131 }
132 {
133    Memory leak in libcgraph (2/2)
134    Memcheck:Leak
135    fun:malloc
136    ...
137    fun:agnode
138    obj:/usr/lib/libcgraph.so*
139    fun:aagparse
140    fun:agconcat
141 }
142
143 # We're not interested by memory leaks in the Lua interpreter
144 {
145    Memory leak in lua
146    Memcheck:Leak
147    ...
148    fun:luaD_precall
149 }
150
151 # libunwind seems to be using msync poorly, thus triggering these
152 # https://github.com/JuliaLang/julia/issues/4533
153 {
154    msync unwind
155    Memcheck:Param
156    msync(start)
157    ...
158    obj:*/libpthread*.so
159    ...
160 }
161
162 {
163    ignore unwind cruft 
164    Memcheck:Param
165    rt_sigprocmask(set)
166    ...
167    obj:/usr/lib/x86_64-linux-gnu/libunwind.so.*
168    ...
169 }
170 {
171    ignore unwind cruft 
172    Memcheck:Param
173    msync(start)
174    ...
175    obj:/usr/lib/x86_64-linux-gnu/libunwind.so.*
176    ...
177 }
178  
179 {
180    ignore unwind invalid reads 
181    Memcheck:Addr8
182    fun:_Ux86_64_setcontext
183 }
184
185 # Java cruft
186 {
187   JavaCruft 1
188   Memcheck:Addr4
189   ...
190   fun:_ZN9JavaCalls11call_helperEP9JavaValueP12methodHandleP17JavaCallArgumentsP6Thread
191   fun:JVM_DoPrivileged
192   ...
193 }
194 {
195    JavaCruft 2
196    Memcheck:Cond
197    ...
198    fun:_ZN13CompileBroker25invoke_compiler_on_methodEP11CompileTask
199    ...
200 }
201
202 {
203    Somewhere within the Java conditions and monitors
204    Memcheck:Cond
205    fun:MarsagliaXORV
206    ...
207 }