Skip to content

Commit

Permalink
fixup leak:^_PyMem_RawRealloc$
Browse files Browse the repository at this point in the history
fixup qdmanage runs with system python,
  • Loading branch information
jiridanek committed Dec 2, 2023
1 parent 4b9f6d5 commit 3e8b3d0
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,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:

Expand Down Expand Up @@ -228,7 +232,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 $(find ${ProtonBuildDir}/python/ -name 'python_qpid_proton*.whl')

- name: CTest
Expand Down
2 changes: 2 additions & 0 deletions tests/lsan.supp
Original file line number Diff line number Diff line change
Expand Up @@ -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$
Expand Down

0 comments on commit 3e8b3d0

Please sign in to comment.