Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
1876d3dc8d7586c9acaba32140572aa038b1349a
[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 backtrace, called after makecontext
47    Memcheck:Cond
48    fun:index
49    fun:expand_dynamic_string_token
50    ...
51    fun:_dl_start
52 }
53
54 # Memory leaks appearing to be in libcgraph.  They can be seen with the
55 # following simple program:
56 # ,----
57 # | #include <stdio.h>
58 # | #include <graphviz/cgraph.h>
59 # | int main(int argc, char *argv[])
60 # | {
61 # |     if (argc == 1) {
62 # |         printf("Usage: %s <dotfile>\n", argv[0]);
63 # |         return 1;
64 # |     }
65 # |     Agraph_t *g;
66 # |     FILE *inf = fopen(argv[1], "r");
67 # |     g = agread(inf, 0);
68 # |     fclose(inf);
69 # |     agclose(g);
70 # |     return 0;
71 # | }
72 # `----
73 {
74    Memory leak in libcgraph (1/2)
75    Memcheck:Leak
76    fun:malloc
77    ...
78    obj:/usr/lib/libcgraph.so*
79    fun:aaglex
80    fun:aagparse
81    fun:agconcat
82 }
83 {
84    Memory leak in libcgraph (2/2)
85    Memcheck:Leak
86    fun:malloc
87    ...
88    fun:agnode
89    obj:/usr/lib/libcgraph.so*
90    fun:aagparse
91    fun:agconcat
92 }
93
94 # We're not interested by memory leaks in the Lua interpreter
95 {
96    Memory leak in lua
97    Memcheck:Leak
98    ...
99    fun:luaD_precall
100 }