Skip to content

gh-154502: Disable junk filling in the OpenBSD allocator in test_capi#154503

Open
serhiy-storchaka wants to merge 1 commit into
python:mainfrom
serhiy-storchaka:capi-mem-openbsd-junk
Open

gh-154502: Disable junk filling in the OpenBSD allocator in test_capi#154503
serhiy-storchaka wants to merge 1 commit into
python:mainfrom
serhiy-storchaka:capi-mem-openbsd-junk

Conversation

@serhiy-storchaka

@serhiy-storchaka serhiy-storchaka commented Jul 22, 2026

Copy link
Copy Markdown
Member

OpenBSD's allocator fills freed memory with junk by default and is configured by MALLOC_OPTIONS, not by jemalloc's MALLOC_CONF, so the pattern written by the debug hooks did not survive free() and test_pyobject_freed_is_freed failed.

Verified on OpenBSD 7.9: test_capi FAILURE -> SUCCESS.

…t_capi

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@bedevere-app bedevere-app Bot added the tests Tests in the Lib/test dir label Jul 22, 2026
@serhiy-storchaka serhiy-storchaka added needs backport to 3.13 bugs and security fixes needs backport to 3.14 bugs and security fixes needs backport to 3.15 pre-release feature fixes, bugs and security fixes skip news labels Jul 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

awaiting core review needs backport to 3.13 bugs and security fixes needs backport to 3.14 bugs and security fixes needs backport to 3.15 pre-release feature fixes, bugs and security fixes skip news tests Tests in the Lib/test dir

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant