Repository navigation
UBsan: Remove _Py_NO_SANITIZE_UNDEFINED #133157
Copy link
Copy link
Closed
Labels
extension-modulesC modules in the Modules dirC modules in the Modules dirinterpreter-core(Objects, Python, Grammar, and Parser dirs)(Objects, Python, Grammar, and Parser dirs)topic-C-APItype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error
Description
Activity
- addedtype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error
on Apr 29, 2025 - addedinterpreter-core(Objects, Python, Grammar, and Parser dirs)(Objects, Python, Grammar, and Parser dirs)extension-modulesC modules in the Modules dirC modules in the Modules dir
on May 15, 2025 - added a commit that references this issue
on May 18, 2025 - added a commit that references this issue
on Jun 10, 2025 - added a commit that references this issue
on Jun 10, 2025 - added a commit that references this issue
on Jul 1, 2025 Gone. Thank you, @picnixz!
Metadata
Metadata
Assignees
Labels
extension-modulesC modules in the Modules dirC modules in the Modules dirinterpreter-core(Objects, Python, Grammar, and Parser dirs)(Objects, Python, Grammar, and Parser dirs)topic-C-APItype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error
Bug report
Split out from the #111178 monster-issue:
We use the macro
_Py_NO_SANITIZE_UNDEFINEDto disable the UB sanitizer in some hard-to-fix cases, so that we can get a stable, regression-monitoring checker sooner.To fully fix UBsan failures, we should get rid of the macro.
At least outside test functions.
Linked PRs
_Py_NO_SANITIZE_UNDEFINEDin faulthandler #134047_Py_NO_SANITIZE_UNDEFINEDinParser/pegen.c#134048_Py_NO_SANITIZE_UNDEFINEDinParser/pegen.c(GH-134048) #135320Parser/pegen.c(GH-134048) #135334_Py_NO_SANITIZE_UNDEFINEDinpyexpat#134050_Py_NO_SANITIZE_UNDEFINEDinpyexpat#135346