Skip to content

Commit

Permalink
fixup leak:^_PyMem_RawMalloc$
Browse files Browse the repository at this point in the history
  • Loading branch information
jiridanek committed Feb 17, 2022
1 parent 8450fd9 commit 03c7fcd
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:

Expand Down
1 change: 1 addition & 0 deletions tests/lsan.supp
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ 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
Expand Down

0 comments on commit 03c7fcd

Please sign in to comment.