Skip to content

Commit 864e920

Browse files
committed
Suppress multiprocessing errors
1 parent 15f40d2 commit 864e920

File tree

2 files changed

+110
-1
lines changed

2 files changed

+110
-1
lines changed

.github/workflows/ci.yml

+2-1
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

+108
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,108 @@
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+
...
99+
fun:_buffer_get_info
100+
fun:array_getbuffer
101+
fun:PyObject_GetBuffer
102+
fun:__Pyx__GetBufferAndValidate*
103+
fun:__pyx_f_5numpy_6random_13bit_generator_12SeedSequence_mix_entropy
104+
fun:__pyx_pw_5numpy_6random_13bit_generator_12SeedSequence_1__init__
105+
fun:type_call
106+
fun:__Pyx__PyObject_CallOneArg
107+
fun:__pyx_pw_5numpy_6random_13bit_generator_12BitGenerator_1__init__
108+
}

0 commit comments

Comments
 (0)