forked from OSGeo/gdal
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvalgrind-gdal.supp
101 lines (84 loc) · 1.55 KB
/
valgrind-gdal.supp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
### This file contains Valgrind suppressions to use when running GDAL unit tests.
###
### It should be used alongside the suppressions provided by Python at https://github.com/python/cpython/blob/main/Misc/valgrind-python.supp
### (possibly modified according to the instructions found within that file)
### Suppress errors generated by tests of VSIMalloc error handling
{
memalign/fishy
Memcheck:FishyValue
memalign(size)
...
fun:*VSIMalloc*_Test*
}
{
memalign/fishy
Memcheck:FishyValue
calloc(nmemb)
...
fun:*VSIMalloc_Test*
}
{
memalign/fishy
Memcheck:FishyValue
malloc(size)
...
fun:*VSIMalloc_Test*
}
{
memalign/fishy
Memcheck:FishyValue
malloc(size)
...
fun:*VSIMalloc_Test*
}
### Suppress leaks in SWIG
{
SWIG leak: https://github.com/swig/swig/issues/1985
Memcheck:Leak
match-leak-kinds: definite
fun:malloc
fun:SwigPyClientData_New
}
### Suppress errors in getenv
{
getenv/Invalid read of size 2
Memcheck:Addr2
fun:getenv
}
{
getenv/jump
Memcheck:Cond
fun:getenv
}
### Suppress errors in dlopen
{
dlopen
Memcheck:Addr8
...
fun:dl_open_worker
}
{
dlopen leak
Memcheck:Leak
match-leak-kinds: all
fun:malloc
...
fun:dl_open_worker
}
### Suppress leak warnings from allocations done within Python
{
python
Memcheck:Leak
match-leak-kinds: all
fun:*alloc
obj:/usr/bin/python3.10
...
}
{
numpy
Memcheck:Leak
match-leak-kinds: all
fun:*alloc
...
fun:PyInit__multiarray_umath
}