Skip to content

Commit 0cbef99

Browse files
committed
fixup leak:^_PyMem_RawMalloc$
1 parent c7389cc commit 0cbef99

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

.github/workflows/build.yaml

+4
Original file line numberDiff line numberDiff line change
@@ -187,6 +187,10 @@ jobs:
187187
LD_LIBRARY_PATH: ${{github.workspace}}/install/lib
188188
QPID_SYSTEM_TEST_TIMEOUT: 300
189189
QPID_SYSTEM_TEST_SKIP_FALLBACK_SWITCHOVER_TEST: True
190+
# the PyMalloc mechanism is incompatible with Valgrind, different mechanism must be set here
191+
# https://docs.python.org/3/using/cmdline.html#envvar-PYTHONMALLOC
192+
# https://pythonextensionpatterns.readthedocs.io/en/latest/debugging/debug_python.html#debug-version-of-python-memory-alloc-label
193+
PYTHONMALLOC: malloc_debug
190194
PYTHONTRACEMALLOC: 5
191195
steps:
192196

tests/lsan.supp

+1
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ leak:^PyThread_allocate_lock$
5454
leak:^PyMem_Malloc$
5555
leak:^PyMem_Calloc$
5656
leak:^PyMem_Realloc$
57+
leak:^_PyMem_RawMalloc$
5758
leak:^_PyMem_RawRealloc$
5859
leak:^_PyObject_GC_Resize$
5960
# Python uses these alloc functions if you define PYTHONDEVMODE=1

0 commit comments

Comments
 (0)