GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — UBsan: Remove _Py_NO_SANITIZE_UNDEFINED · Issue #133157 · python/cpython

UBsan: Remove _Py_NO_SANITIZE_UNDEFINED #133157

New issue
Copy link
New issue
Copy link
Closed
Closed
UBsan: Remove _Py_NO_SANITIZE_UNDEFINED#133157
Copy link
Assignees
picnixz
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

@encukou
encukou
opened on Apr 29, 2025
Issue body actions

Bug report

Split out from the #111178 monster-issue:

We use the macro _Py_NO_SANITIZE_UNDEFINED to 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

  • gh-133157: remove use of _Py_NO_SANITIZE_UNDEFINED in faulthandler #134047
  • gh-133157: remove usage of _Py_NO_SANITIZE_UNDEFINED in Parser/pegen.c #134048
  • [3.14] gh-133157: remove usage of _Py_NO_SANITIZE_UNDEFINED in Parser/pegen.c (GH-134048) #135320
  • [3.13] gh-133157: fix UBSan failures in Parser/pegen.c (GH-134048) #135334
  • gh-133157: remove usage of _Py_NO_SANITIZE_UNDEFINED in pyexpat #134050
  • gh-133157: remove usage of _Py_NO_SANITIZE_UNDEFINED in pyexpat #135346

Activity

  1. encukou
    added
    topic-C-API
    type-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error
    on Apr 29, 2025
  2. picnixz
    self-assigned this
    on May 15, 2025
  3. picnixz
    added
    interpreter-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
  4. picnixz
    added a commit that references this issue on May 18, 2025

    gh-133157: remove usage of `_Py_NO_SANITIZE_UNDEFINED` in `faulthandl…

    0a160bf
  5. pablogsal
    added a commit that references this issue on Jun 10, 2025

    gh-133157: remove usage of `_Py_NO_SANITIZE_UNDEFINED` in `Parser/peg…

    754e7c9
  6. miss-islington
    added a commit that references this issue on Jun 10, 2025

    pythongh-133157: remove usage of `_Py_NO_SANITIZE_UNDEFINED` in `Pars…

    b9a80b5
  7. pablogsal
    added a commit that references this issue on Jun 10, 2025

    [3.14] gh-133157: remove usage of `_Py_NO_SANITIZE_UNDEFINED` in `Par…

    904685f
  8. picnixz
    added 2 commits that reference this issue on Jun 10, 2025

    [3.13] pythongh-133157: remove usage of `_Py_NO_SANITIZE_UNDEFINED` i…

    dc805f2

    [3.13] gh-133157: fix UBSan failures in `Parser/pegen.c` (GH-134048) (#…

    dd7ffdb
  9. encukou
    added a commit that references this issue on Jun 10, 2025

    pythongh-133157: remove usage of `_Py_NO_SANITIZE_UNDEFINED` in `pyex…

    d0dc245
  10. lkollar
    added a commit that references this issue on Jun 19, 2025

    pythongh-133157: remove usage of `_Py_NO_SANITIZE_UNDEFINED` in `Pars…

    7e3b51e
  11. encukou
    added a commit that references this issue on Jul 1, 2025

    gh-133157: remove usage of `_Py_NO_SANITIZE_UNDEFINED` in `pyexpat` (#…

    845263a
  12. encukou commented on Jul 1, 2025

    @encukou
    encukou
    on Jul 1, 2025
    MemberAuthor
    More actions

    Gone. Thank you, @picnixz!

  13. encukou
    closed this as completedon Jul 1, 2025
  14. AndPuQing
    added a commit that references this issue on Jul 11, 2025

    pythongh-133157: remove usage of `_Py_NO_SANITIZE_UNDEFINED` in `pyex…

    c73da53
  15. Pranjal095
    added 3 commits that reference this issue on Jul 12, 2025

    pythongh-133157: remove usage of `_Py_NO_SANITIZE_UNDEFINED` in `faul…

    7524e25

    pythongh-133157: remove usage of `_Py_NO_SANITIZE_UNDEFINED` in `Pars…

    154f4d9

    pythongh-133157: remove usage of `_Py_NO_SANITIZE_UNDEFINED` in `pyex…

    ff0c21c
  16. picnixz
    added a commit that references this issue on Jul 13, 2025

    pythongh-133157: remove usage of `_Py_NO_SANITIZE_UNDEFINED` in `pyex…

    1aa21a7
  17. taegyunkim
    added 3 commits that reference this issue on Aug 4, 2025

    pythongh-133157: remove usage of `_Py_NO_SANITIZE_UNDEFINED` in `faul…

    91023f6

    pythongh-133157: remove usage of `_Py_NO_SANITIZE_UNDEFINED` in `Pars…

    11dbf09

    pythongh-133157: remove usage of `_Py_NO_SANITIZE_UNDEFINED` in `pyex…

    cbdf818
  18. Agent-Hellboy
    added 2 commits that reference this issue on Aug 19, 2025

    pythongh-133157: remove usage of `_Py_NO_SANITIZE_UNDEFINED` in `Pars…

    77d1806

    pythongh-133157: remove usage of `_Py_NO_SANITIZE_UNDEFINED` in `pyex…

    d1a9832
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @picnixz
    picnixz

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

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    You are visitor 01402503 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.