New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
bpo-46263: FreeBSD 14.0 jemalloc workaround for junk bytes of freed memory #30434
Conversation
|
@tiran: Status check is done, and it's a success |
Thanks @tiran for the PR |
…emory (pythonGH-30434) Automerge-Triggered-By: GH:tiran (cherry picked from commit a4aa52d) Co-authored-by: Christian Heimes <christian@python.org>
GH-30436 is a backport of this pull request to the 3.10 branch. |
…emory (pythonGH-30434) Automerge-Triggered-By: GH:tiran (cherry picked from commit a4aa52d) Co-authored-by: Christian Heimes <christian@python.org>
GH-30437 is a backport of this pull request to the 3.9 branch. |
out = assert_python_failure( | ||
'-c', code, | ||
PYTHONMALLOC=self.PYTHONMALLOC, | ||
# FreeBSD: instruct jemalloc to not fill freed() memory |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is a rather fragile test as written. depending on the undefined behavior of what the contents of free()d memory will be is our problem. jemalloc is doing something perfectly reasonable, it's our test that is not. expect this to come up again at a random future point even if this workaround does something useful today.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Other memory allocators may use different constants. I have an open PR for mimalloc microsoft/mimalloc#517
https://bugs.python.org/issue46263
Automerge-Triggered-By: GH:tiran
The text was updated successfully, but these errors were encountered: