# Valgrind suppression file for NumPy & SciPy errors and leaks in pybind11 tests # # On updating a dependency, to get a list of "default" leaks in e.g. NumPy, run # `PYTHONMALLOC=malloc valgrind --leak-check=full --show-leak-kinds=definite,indirect python3.9-dbg -c "import numpy"` # To use these suppression files, add e.g. `--suppressions=valgrind-numpy-scipy.supp` { Leaks when importing NumPy Memcheck:Leak fun:malloc fun:_PyMem_RawMalloc fun:PyObject_Malloc fun:_PyObject_GC_Alloc fun:_PyObject_GC_Malloc fun:_PyObject_GC_NewVar fun:tuple_alloc fun:PyTuple_Pack ... fun:__pyx_pymod_exec_* } { Leaks when importing NumPy (bis) Memcheck:Leak fun:malloc fun:_PyMem_RawMalloc fun:PyObject_Malloc fun:_PyObject_New fun:PyCode_NewWithPosOnlyArgs fun:PyCode_New ... fun:__pyx_pymod_exec_* } { Leaks when importing NumPy (ter) Memcheck:Leak fun:malloc fun:_PyMem_RawMalloc fun:PyObject_Malloc fun:_PyObject_GC_Alloc fun:_PyObject_GC_Malloc fun:_PyObject_GC_NewVar fun:tuple_alloc fun:_PyTuple_FromArray fun:_PyObject_MakeTpCall fun:_PyObject_VectorcallTstate fun:PyObject_Vectorcall fun:call_function fun:_PyEval_EvalFrameDefault fun:_PyEval_EvalFrame fun:function_code_fastcall fun:_PyFunction_Vectorcall } { Leaks when importing NumPy (quater) Memcheck:Leak fun:malloc fun:_PyMem_RawMalloc fun:PyObject_Malloc fun:_PyObject_GC_Alloc fun:_PyObject_GC_Malloc fun:_PyObject_GC_NewVar fun:tuple_alloc fun:_PyTuple_FromArray fun:_PyObject_MakeTpCall fun:_PyObject_VectorcallTstate fun:_PyObject_CallFunctionVa fun:PyObject_CallFunction fun:PyImport_Import } { Leaks when importing NumPy (quinquies) Memcheck:Leak fun:malloc fun:_PyMem_RawMalloc fun:PyObject_Malloc fun:_PyObject_GC_Alloc fun:_PyObject_GC_Malloc fun:_PyObject_GC_NewVar fun:tuple_alloc fun:PyTuple_New fun:r_object fun:r_object fun:r_object fun:r_object } { Leaks when importing NumPy (sexies) Memcheck:Leak fun:malloc fun:_PyMem_RawMalloc fun:PyObject_Malloc fun:_PyObject_GC_Alloc fun:_PyObject_GC_Malloc fun:_PyObject_GC_NewVar fun:tuple_alloc fun:PyTuple_New fun:dictiter_iternextitem fun:list_extend fun:_PyList_Extend fun:PySequence_List } { Leak when importing scipy.fft Memcheck:Leak fun:_Znwm fun:PyInit_pypocketfft fun:_PyImport_LoadDynamicModuleWithSpec fun:_imp_create_dynamic_impl* fun:_imp_create_dynamic fun:cfunction_vectorcall_FASTCALL fun:PyVectorcall_Call fun:_PyObject_Call fun:PyObject_Call fun:do_call_core fun:_PyEval_EvalFrameDefault fun:_PyEval_EvalFrame fun:_PyEval_EvalCode } { NumPy leaks when spawning a subprocess Memcheck:Leak fun:malloc ... fun:_buffer_get_info fun:array_getbuffer fun:PyObject_GetBuffer fun:__Pyx__GetBufferAndValidate* fun:__pyx_f_5numpy_6random_13bit_generator_12SeedSequence_mix_entropy fun:__pyx_pw_5numpy_6random_13bit_generator_12SeedSequence_1__init__ fun:type_call fun:__Pyx__PyObject_CallOneArg fun:__pyx_pw_5numpy_6random_13bit_generator_12BitGenerator_1__init__ } 3b5dc1d0cb38b5a'>plain)
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
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241