From d4ced63693cf3ac75674afebce6da12569330a9b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jiri=20Dan=C4=9Bk?= Date: Thu, 27 Jan 2022 14:29:36 +0100 Subject: [PATCH] fixup leak:^_PyMem_RawRealloc$ fixup qdmanage runs with system python, --- .github/workflows/build.yaml | 9 ++++++++- tests/lsan.supp | 2 ++ 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 3ab5182cf3..76905a5407 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -187,6 +187,10 @@ jobs: LD_LIBRARY_PATH: ${{github.workspace}}/install/lib QPID_SYSTEM_TEST_TIMEOUT: 300 QPID_SYSTEM_TEST_SKIP_FALLBACK_SWITCHOVER_TEST: True + # the PyMalloc mechanism is incompatible with Valgrind, different mechanism must be set here + # https://docs.python.org/3/using/cmdline.html#envvar-PYTHONMALLOC + # https://pythonextensionpatterns.readthedocs.io/en/latest/debugging/debug_python.html#debug-version-of-python-memory-alloc-label + PYTHONMALLOC: malloc_debug PYTHONTRACEMALLOC: 5 steps: @@ -219,7 +223,10 @@ jobs: - name: Install Python runtime/test dependencies run: ${{matrix.python}} -m pip install tox quart selectors h2 grpcio protobuf websockets pytest - - name: Install qpid-proton python wheel + - name: Replace /usr/bin/python3 with ${{matrix.python}}, for tools such as qdmanage + run: sudo ln -sf ${{matrix.python}} /usr/bin/python3 + + - name: Install qpid-proton python wheel (python3-dbg) run: ${{matrix.python}} -m pip install ${ProtonBuildDir}/python/pkgs/python_qpid_proton*.whl - name: CTest diff --git a/tests/lsan.supp b/tests/lsan.supp index 95332e6c18..0fac9e66cd 100644 --- a/tests/lsan.supp +++ b/tests/lsan.supp @@ -58,6 +58,8 @@ leak:^PyThread_allocate_lock$ leak:^PyMem_Malloc$ leak:^PyMem_Calloc$ leak:^PyMem_Realloc$ +leak:^_PyMem_RawMalloc$ +leak:^_PyMem_RawRealloc$ leak:^_PyObject_GC_Resize$ # Python uses these alloc functions if you define PYTHONDEVMODE=1 leak:^_PyMem_DebugRawAlloc$