• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Valgrind suppression file for NumPy & SciPy errors and leaks in pybind11 tests
2
3{
4   Leaks when importing NumPy
5   Memcheck:Leak
6   fun:malloc
7   fun:_PyMem_RawMalloc
8   fun:PyObject_Malloc
9   fun:_PyObject_GC_Alloc
10   fun:_PyObject_GC_Malloc
11   fun:_PyObject_GC_NewVar
12   fun:tuple_alloc
13   fun:PyTuple_Pack
14   ...
15   fun:__pyx_pymod_exec_*
16}
17
18{
19   Leaks when importing NumPy (bis)
20   Memcheck:Leak
21   fun:malloc
22   fun:_PyMem_RawMalloc
23   fun:PyObject_Malloc
24   fun:_PyObject_New
25   fun:PyCode_NewWithPosOnlyArgs
26   fun:PyCode_New
27   ...
28   fun:__pyx_pymod_exec_*
29}
30
31{
32   Leaks when importing NumPy (tris)
33   Memcheck:Leak
34   fun:malloc
35   fun:_PyMem_RawMalloc
36   fun:PyObject_Malloc
37   fun:_PyObject_GC_Alloc
38   fun:_PyObject_GC_Malloc
39   fun:_PyObject_GC_NewVar
40   fun:tuple_alloc
41   fun:_PyTuple_FromArray
42   fun:_PyObject_MakeTpCall
43   fun:_PyObject_VectorcallTstate
44   fun:PyObject_Vectorcall
45   fun:call_function
46   fun:_PyEval_EvalFrameDefault
47   fun:_PyEval_EvalFrame
48   fun:function_code_fastcall
49   fun:_PyFunction_Vectorcall
50}
51
52{
53   Leaks when importing NumPy (quater)
54   Memcheck:Leak
55   fun:malloc
56   fun:_PyMem_RawMalloc
57   fun:PyObject_Malloc
58   fun:_PyObject_GC_Alloc
59   fun:_PyObject_GC_Malloc
60   fun:_PyObject_GC_NewVar
61   fun:tuple_alloc
62   fun:PyTuple_New
63   fun:r_object
64   fun:r_object
65   fun:r_object
66   fun:r_object
67}
68
69{
70   Leaks when importing NumPy (quinquies)
71   Memcheck:Leak
72   fun:malloc
73   fun:_PyMem_RawMalloc
74   fun:PyObject_Malloc
75   fun:_PyObject_GC_Alloc
76   fun:_PyObject_GC_Malloc
77   fun:_PyObject_GC_NewVar
78   fun:tuple_alloc
79   fun:PyTuple_New
80   fun:dictiter_iternextitem
81   fun:list_extend
82   fun:_PyList_Extend
83   fun:PySequence_List
84}
85
86{
87   Leak when importing scipy.fft
88   Memcheck:Leak
89   fun:_Znwm
90   fun:PyInit_pypocketfft
91   fun:_PyImport_LoadDynamicModuleWithSpec
92   fun:_imp_create_dynamic_impl.constprop.3
93   fun:_imp_create_dynamic
94   fun:cfunction_vectorcall_FASTCALL
95   fun:PyVectorcall_Call
96   fun:_PyObject_Call
97   fun:PyObject_Call
98   fun:do_call_core
99   fun:_PyEval_EvalFrameDefault
100   fun:_PyEval_EvalFrame
101   fun:_PyEval_EvalCode
102}
103
104{
105   NumPy leaks when spawning a subprocess
106   Memcheck:Leak
107   fun:malloc
108   ...
109   fun:_buffer_get_info
110   fun:array_getbuffer
111   fun:PyObject_GetBuffer
112   fun:__Pyx__GetBufferAndValidate*
113   fun:__pyx_f_5numpy_6random_13bit_generator_12SeedSequence_mix_entropy
114   fun:__pyx_pw_5numpy_6random_13bit_generator_12SeedSequence_1__init__
115   fun:type_call
116   fun:__Pyx__PyObject_CallOneArg
117   fun:__pyx_pw_5numpy_6random_13bit_generator_12BitGenerator_1__init__
118}
119