Logo AND Algorithmique Numérique Distribuée

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