mirror of https://github.com/python/cpython
bpo-46263: FreeBSD 14.0 jemalloc workaround for junk bytes of freed memory (GH-30434)
Automerge-Triggered-By: GH:tiran
This commit is contained in:
parent
b50e5e916a
commit
a4aa52dc28
|
@ -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')
|
||||
|
||||
|
|
|
@ -0,0 +1,2 @@
|
|||
Fix test_capi on FreeBSD 14-dev: instruct jemalloc to not fill freed memory
|
||||
with junk byte.
|
Loading…
Reference in New Issue