Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
[s4u] More support for C++-style time and durations
[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 # SG3.13 : We will remove NetCards soon, so ignore these ones 
67 {
68    Memory leak in Netcards
69    Memcheck:Leak
70    ...
71    fun:sg_platf_new_router
72    fun:STag_surfxml_router
73    fun:surf_parse_lex
74    ...
75    fun:parse_platform_file
76    fun:SIMIX_create_environment
77 }
78
79 {
80    Memory leak in Netcards
81    Memcheck:Leak
82    match-leak-kinds: indirect
83    fun:malloc
84    fun:strdup
85    fun:xbt_strdup
86    ...
87    fun:sg_platf_new_router
88    fun:STag_surfxml_router
89    fun:surf_parse_lex
90    ...
91    fun:parse_platform_file
92    fun:SIMIX_create_environment
93    fun:smpi_main
94    fun:main
95 }
96
97 #Ignore leaks in SMPI sample codes
98 {
99    Leaks in SMPI sample codes
100    Memcheck:Leak
101    match-leak-kinds: all
102    fun:malloc
103    fun:smpi_simulated_main_
104 }
105
106 # Memory leaks appearing to be in libcgraph.  They can be seen with the
107 # following simple program:
108 # ,----
109 # | #include <stdio.h>
110 # | #include <graphviz/cgraph.h>
111 # | int main(int argc, char *argv[])
112 # | {
113 # |     if (argc == 1) {
114 # |         printf("Usage: %s <dotfile>\n", argv[0]);
115 # |         return 1;
116 # |     }
117 # |     Agraph_t *g;
118 # |     FILE *inf = fopen(argv[1], "r");
119 # |     g = agread(inf, 0);
120 # |     fclose(inf);
121 # |     agclose(g);
122 # |     return 0;
123 # | }
124 # `----
125 {
126    Memory leak in libcgraph (1/2)
127    Memcheck:Leak
128    fun:malloc
129    ...
130    obj:/usr/lib/libcgraph.so*
131    fun:aaglex
132    fun:aagparse
133    fun:agconcat
134 }
135 {
136    Memory leak in libcgraph (1/2)
137    Memcheck:Leak
138    fun:calloc
139    ...
140    obj:/usr/lib/libcgraph.so*
141    fun:aagparse
142    fun:agconcat
143 }
144 {
145    Memory leak in libcgraph (2/2)
146    Memcheck:Leak
147    fun:malloc
148    ...
149    fun:agnode
150    obj:/usr/lib/libcgraph.so*
151    fun:aagparse
152    fun:agconcat
153 }
154
155 # We're not interested by memory leaks in the Lua interpreter
156 {
157    Memory leak in lua
158    Memcheck:Leak
159    ...
160    fun:luaD_precall
161 }