summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_capi.py
diff options
context:
space:
mode:
authorChristian Heimes <christian@python.org>2022-01-06 15:14:49 (GMT)
committerGitHub <noreply@github.com>2022-01-06 15:14:49 (GMT)
commita4aa52dc2801d25b6343fe2ef8de7f40ea3bc883 (patch)
treee2bbaa28870820ff0b27aec5083d64afa6a5c592 /Lib/test/test_capi.py
parentb50e5e916a05df65ab6a255af7624b751e0fe9d1 (diff)
downloadcpython-a4aa52dc2801d25b6343fe2ef8de7f40ea3bc883.zip
cpython-a4aa52dc2801d25b6343fe2ef8de7f40ea3bc883.tar.gz
cpython-a4aa52dc2801d25b6343fe2ef8de7f40ea3bc883.tar.bz2
bpo-46263: FreeBSD 14.0 jemalloc workaround for junk bytes of freed memory (GH-30434)
Automerge-Triggered-By: GH:tiran
Diffstat (limited to 'Lib/test/test_capi.py')
-rw-r--r--Lib/test/test_capi.py9
1 files changed, 7 insertions, 2 deletions
diff --git a/Lib/test/test_capi.py b/Lib/test/test_capi.py
index ecf3aa3..e246c36 100644
--- a/Lib/test/test_capi.py
+++ b/Lib/test/test_capi.py
@@ -857,8 +857,13 @@ class PyMemDebugTests(unittest.TestCase):
def check(self, code):
with support.SuppressCrashReport():
- out = assert_python_failure('-c', code,
- PYTHONMALLOC=self.PYTHONMALLOC)
+ out = assert_python_failure(
+ '-c', code,
+ PYTHONMALLOC=self.PYTHONMALLOC,
+ # FreeBSD: instruct jemalloc to not fill freed() memory
+ # with junk byte 0x5a, see JEMALLOC(3)
+ MALLOC_CONF="junk:false",
+ )
stderr = out.err
return stderr.decode('ascii', 'replace')