Logo AND Algorithmique Numérique Distribuée

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