Skip to content

Commit 1c093ea

Browse files
committed
Suppress multiprocessing errors
1 parent 15f40d2 commit 1c093ea

File tree

2 files changed

+128
-1
lines changed

2 files changed

+128
-1
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,9 +223,10 @@ jobs:
223223
--suppressions=tests/valgrind-python.supp
224224
--suppressions=tests/valgrind-numpy-scipy.supp
225225
--suppressions=tests/valgrind-misc.supp
226+
--suppressions=tests/valgrind-multiprocessing.supp
226227
--gen-suppressions=all
227228
python -m pytest
228-
tests/test_[abcdefhijklmnopqrstuwxyz]*.py
229+
tests/test_[^v]*.py
229230
230231
231232
# # Testing on clang using the excellent silkeh clang docker images

tests/valgrind-multiprocessing.supp

Lines changed: 126 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,126 @@
1+
###
2+
### Python
3+
###
4+
5+
{
6+
Python leaks when spawning a subprocess
7+
Memcheck:Leak
8+
fun:malloc
9+
fun:_PyMem_RawMalloc
10+
fun:PyMem_RawMalloc
11+
fun:PyThread_allocate_lock
12+
fun:_PyEval_InitState
13+
fun:PyInterpreterState_New
14+
...
15+
fun:pyinit_core*
16+
fun:Py_InitializeFromConfig
17+
fun:pymain_init
18+
fun:pymain_main
19+
}
20+
{
21+
Python leaks when spawning a subprocess
22+
Memcheck:Leak
23+
fun:malloc
24+
fun:_PyMem_RawMalloc
25+
fun:_PyMem_DebugRawAlloc
26+
fun:_PyMem_DebugRawMalloc
27+
fun:PyMem_RawMalloc
28+
fun:PyThread_allocate_lock
29+
fun:_PyRuntimeState_Init_impl
30+
fun:_PyRuntimeState_Init
31+
fun:_PyRuntime_Initialize
32+
fun:pymain_init
33+
fun:pymain_main
34+
fun:Py_BytesMain
35+
}
36+
{
37+
Python leaks when spawning a subprocess
38+
Memcheck:Leak
39+
fun:malloc
40+
fun:_PyMem_RawMalloc
41+
fun:PyMem_RawMalloc
42+
fun:PyThread_allocate_lock
43+
fun:_PyImport_AcquireLock
44+
fun:_imp_acquire_lock_impl*
45+
fun:_imp_acquire_lock
46+
fun:cfunction_vectorcall_NOARGS
47+
fun:_PyObject_VectorcallTstate
48+
fun:PyObject_Vectorcall
49+
fun:call_function
50+
fun:_PyEval_EvalFrameDefault
51+
fun:_PyEval_EvalFrame
52+
fun:function_code_fastcall
53+
}
54+
{
55+
Python leaks when spawning a subprocess
56+
Memcheck:Leak
57+
fun:malloc
58+
fun:_PyMem_RawMalloc
59+
fun:PyMem_RawMalloc
60+
fun:PyThread_allocate_lock
61+
fun:newlockobject
62+
...
63+
fun:cfunction_vectorcall_NOARGS
64+
fun:_PyObject_VectorcallTstate
65+
fun:PyObject_Vectorcall
66+
fun:call_function
67+
fun:_PyEval_EvalFrameDefault
68+
fun:_PyEval_EvalFrame
69+
fun:function_code_fastcall
70+
fun:_PyFunction_Vectorcall
71+
}
72+
{
73+
Python leaks when spawning a subprocess
74+
Memcheck:Leak
75+
fun:malloc
76+
fun:_PyMem_RawMalloc
77+
fun:PyMem_RawMalloc
78+
fun:PyThread_allocate_lock
79+
fun:rlock_new
80+
fun:type_call
81+
fun:_PyObject_Call
82+
fun:PyObject_Call
83+
fun:do_call_core
84+
fun:_PyEval_EvalFrameDefault
85+
fun:_PyEval_EvalFrame
86+
fun:_PyEval_EvalCode
87+
fun:_PyFunction_Vectorcall
88+
}
89+
90+
###
91+
### NumPy
92+
###
93+
94+
{
95+
<insert_a_suppression_name_here>
96+
Memcheck:Leak
97+
fun:malloc
98+
fun:_buffer_get_info
99+
fun:array_getbuffer
100+
fun:PyObject_GetBuffer
101+
fun:__Pyx__GetBufferAndValidate.constprop.67
102+
fun:__pyx_f_5numpy_6random_13bit_generator_12SeedSequence_mix_entropy
103+
fun:__pyx_pw_5numpy_6random_13bit_generator_12SeedSequence_1__init__
104+
fun:type_call
105+
fun:__Pyx__PyObject_CallOneArg
106+
fun:__pyx_pw_5numpy_6random_13bit_generator_12BitGenerator_1__init__
107+
fun:wrap_init
108+
fun:wrapperdescr_raw_call
109+
fun:wrapperdescr_call
110+
}
111+
{
112+
<insert_a_suppression_name_here>
113+
Memcheck:Leak
114+
fun:malloc
115+
fun:_buffer_format_string
116+
fun:_buffer_get_info
117+
fun:array_getbuffer
118+
fun:PyObject_GetBuffer
119+
fun:__Pyx__GetBufferAndValidate.constprop.67
120+
fun:__pyx_f_5numpy_6random_13bit_generator_12SeedSequence_mix_entropy
121+
fun:__pyx_pw_5numpy_6random_13bit_generator_12SeedSequence_1__init__
122+
fun:type_call
123+
fun:__Pyx__PyObject_CallOneArg
124+
fun:__pyx_pw_5numpy_6random_13bit_generator_12BitGenerator_1__init__
125+
fun:wrap_init
126+
}

0 commit comments

Comments
 (0)