Improve documentation for using sanitizers #1926
All Vouch review confidence checks passed
Residual risk 0.04 = Change Risk (0.46) × (1 − Review Confidence (0.91)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.46 · 475 lines diff across 5 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.91 · 5 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 50%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.369
Real PR Conversation Timeline
8 items
<!-- readthedocs-55693 -->
Documentation build overview
📚 CPython devguide | 🛠️ Build #35261998 | 📁 Comparing 6c0522bbf817b359a5298a78512823486f41c684 against latest (d773e39505bfaf0c4593ecdebcfb7bc200c26ac5)
<kbd> 🔍 Preview build </kbd>
<details>
<summary>6 files changed · <code>+</code> 1 added · <code>±</code> 5 modified</summary>
<br>
+ Added
development-tools/sanitizers/index.html± Modified
index.htmlcore-team/team-log/index.htmldevelopment-tools/clang/index.htmldevelopment-tools/clinic/index.htmlsecurity/psrt/index.html</details>
Can we preserve this link? Less as a list of snaitizers and more as links to documentation of the individual sanitizers.
Perhaps also link to https://gcc.gnu.org/onlinedocs/gcc/Instrumentation-Options.html, with a note that GCC currently keeps these clang-compatible.
Not saying this is a bad change, but I think it should go in a separate PR, for visibility & revertability.
Thanks for taking this on!
It's needed for HWAsan's option, and IMO, since the devguide generally documents current information, this should be ok?
OK, let's keep it here.
Approved
Thank you!
encukou
StanFromIreland
As discussed in https://github.com/python/devguide/issues/746, this updates the information on using CPython with sanitisers. The page contained a lot of information about setting up Clang, which I removed. The devguide isn't the place for it, I presume when it was written the information was less readily available (and, nowadays you're probably not going to go through the trouble of building LLVM yourself ;-). The page is now focused on our flags/setup.
<!--
Thanks for your contribution!
Please read this comment in its entirety. It's quite important.
Pull Request title
It should describe the change to be made.
Most PRs will require an issue number. Trivial changes, like fixing a typo,
do not need an issue.
-->