gh-154502: Disable junk filling in the OpenBSD allocator in test_capi#154503
Conversation
…t_capi Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
|
Thanks @serhiy-storchaka for the PR 🌮🎉.. I'm working now to backport this PR to: 3.13, 3.14, 3.15. |
|
GH-154513 is a backport of this pull request to the 3.15 branch. |
|
GH-154514 is a backport of this pull request to the 3.14 branch. |
|
GH-154515 is a backport of this pull request to the 3.13 branch. |
|
|
|
|
OpenBSD's allocator fills freed memory with junk by default and is configured by
MALLOC_OPTIONS, not by jemalloc'sMALLOC_CONF, so the pattern written by the debug hooks did not survivefree()andtest_pyobject_freed_is_freedfailed.Verified on OpenBSD 7.9:
test_capiFAILURE -> SUCCESS.