| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
--with-address-sanitizer and --with-memory-sanitizer unconditionally disabled pymalloc, even when --with-pymalloc was given explicitly. Only apply the default when the user did not specify a preference.
There was a problem hiding this comment.
Please also update the --with-address-sanitizer documentation, the note about --without-pymalloc is redundant.
Sorry, something went wrong.
Documentation build overview45 files changed · + 1 added · ± 44 modified + Added ± Modified |
Sorry, something went wrong.
There was a problem hiding this comment.
Just a few more docs tweaks, we also need to update the note in the Memory Management documentation:
Lines 708 to 710 in b0dda15
Sorry, something went wrong.
|
Thanks. This looks like all the places that need changing. I'd be happy to merge as is. But, looking at the code more closely, I found a potential further improvement: ASAN/MSAN would not be involved in the decision to build with pymalloc, but instead under ASAN/MSAN we'd set the default allocators to malloc. You could then switch at runtime with PYTHONMALLOC=pymalloc. AFAIK, this would involve an #elif defined(_Py_ADDRESS_SANITIZER) || defined(_Py_MEMORY_SANITIZER) block in obmalloc.c (plus docs/devguide changes). Do you want to try that? |
Sorry, something went wrong.
|
Thanks for the review and the suggestion. |
Sorry, something went wrong.
|
pymalloc is now built under sanitizers, but malloc is the default, and PYTHONMALLOC=pymalloc switches to pymalloc at runtime. Tests, docs and NEWS are updated. |
Sorry, something went wrong.
|
🤖 New build scheduled with the buildbot fleet by @encukou for commit b23d2d1 🤖 Results will be shown at: https://buildbot.python.org/all/#/grid?branch=refs%2Fpull%2F157934%2Fmerge If you want to schedule another build, you need to add the 🔨 test-with-buildbots label again. |
Sorry, something went wrong.
There was a problem hiding this comment.
This looks nice, thank you! A few small docs nitpicks:
Sorry, something went wrong.
pythongh-136872: Improve code documentation Co-authored-by: Petr Viktorin <encukou@gmail.com>
|
I'll do the merge; I hope you don't mind me pushing to the PR directly. |
Sorry, something went wrong.
|
!buildbot san |
Sorry, something went wrong.
|
🤖 New build scheduled with the buildbot fleet by @encukou for commit bfe6179 🤖 Results will be shown at: https://buildbot.python.org/all/#/grid?branch=refs%2Fpull%2F157934%2Fmerge The command will test the builders whose names match following regular expression: san The builders matched are:
|
Sorry, something went wrong.
|
Thank you for the fix! |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
The --with-address-sanitizer and --with-memory-sanitizer configure options unconditionally set with_pymalloc=no, so an explicit --with-pymalloc was silently ignored.
Only apply that default when --with-pymalloc or --without-pymalloc was not given.
Tested with the regenerated configure:
--with-address-sanitizer --with-pymalloc now defines WITH_PYMALLOC, and
--with-address-sanitizer alone still leaves it undefined.