aboutsummaryrefslogtreecommitdiffstats
path: root/tests/valgrind-python.supp
blob: 1dd04fa7b89f06dc142b394f5b06aa5171d84ba2 (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
# Valgrind suppression file for CPython errors and leaks in pybind11 tests

# Taken verbatim from https://github.com/python/cpython/blob/3.9/Misc/valgrind-python.supp#L266-L272
{
   Uninitialised byte(s) false alarm, see bpo-35561
   Memcheck:Param
   epoll_ctl(event)
   fun:epoll_ctl
   fun:pyepoll_internal_ctl
}

{
   Python leaks when spawning a subprocess
   Memcheck:Leak
   fun:malloc
   fun:_PyMem_RawMalloc
   fun:PyMem_RawMalloc
   fun:PyThread_allocate_lock
   fun:_PyEval_InitState
   fun:PyInterpreterState_New
   ...
   fun:pyinit_core*
   fun:Py_InitializeFromConfig
   fun:pymain_init
   fun:pymain_main
}

{
   Python leaks when spawning a subprocess
   Memcheck:Leak
   fun:malloc
   fun:_PyMem_RawMalloc
   fun:_PyMem_DebugRawAlloc
   fun:_PyMem_DebugRawMalloc
   fun:PyMem_RawMalloc
   fun:PyThread_allocate_lock
   fun:_PyRuntimeState_Init_impl
   fun:_PyRuntimeState_Init
   fun:_PyRuntime_Initialize
   fun:pymain_init
   fun:pymain_main
   fun:Py_BytesMain
}

{
   Python leaks when spawning a subprocess
   Memcheck:Leak
   fun:malloc
   fun:_PyMem_RawMalloc
   fun:PyMem_RawMalloc
   fun:PyThread_allocate_lock
   fun:_PyImport_AcquireLock
   fun:_imp_acquire_lock_impl*
   fun:_imp_acquire_lock
   fun:cfunction_vectorcall_NOARGS
   fun:_PyObject_VectorcallTstate
   fun:PyObject_Vectorcall
   fun:call_function
   fun:_PyEval_EvalFrameDefault
   fun:_PyEval_EvalFrame
   fun:function_code_fastcall
}

{
   Python leaks when spawning a subprocess
   Memcheck:Leak
   fun:malloc
   fun:_PyMem_RawMalloc
   fun:PyMem_RawMalloc
   fun:PyThread_allocate_lock
   fun:newlockobject
   ...
   fun:cfunction_vectorcall_NOARGS
   fun:_PyObject_VectorcallTstate
   fun:PyObject_Vectorcall
   fun:call_function
   fun:_PyEval_EvalFrameDefault
   fun:_PyEval_EvalFrame
   fun:function_code_fastcall
   fun:_PyFunction_Vectorcall
}

{
   Python leaks when spawning a subprocess
   Memcheck:Leak
   fun:malloc
   fun:_PyMem_RawMalloc
   fun:PyMem_RawMalloc
   fun:PyThread_allocate_lock
   fun:rlock_new
   fun:type_call
   fun:_PyObject_Call
   fun:PyObject_Call
   fun:do_call_core
   fun:_PyEval_EvalFrameDefault
   fun:_PyEval_EvalFrame
   fun:_PyEval_EvalCode
   fun:_PyFunction_Vectorcall
}

# Not really CPython-specific, see link
{
   dlopen leak (https://stackoverflow.com/questions/1542457/memory-leak-reported-by-valgrind-in-dlopen)
   Memcheck:Leak
   fun:malloc
   ...
   fun:dl_open_worker
   fun:_dl_catch_exception
   fun:_dl_open
   fun:dlopen_doit
   fun:_dl_catch_exception
   fun:_dl_catch_error
   fun:_dlerror_run
   fun:dlopen@@GLIBC_2.2.5
   fun:_PyImport_FindSharedFuncptr
   fun:_PyImport_LoadDynamicModuleWithSpec
}

# Not really CPython-specific, see link
{
   dlopen leak (https://stackoverflow.com/questions/1542457/memory-leak-reported-by-valgrind-in-dlopen)
   Memcheck:Leak
   fun:malloc
   ...
   fun:dl_open_worker
   fun:_dl_catch_exception
   fun:_dl_open
   fun:dlopen_doit
   fun:_dl_catch_exception
   fun:_dl_catch_error
   fun:_dlerror_run
   fun:dlopen@@GLIBC_2.2.5
   fun:_PyImport_FindSharedFuncptr
   fun:_PyImport_LoadDynamicModuleWithSpec
}