René's URL Explorer Experiment


Title: UBsan: Remove _Py_NO_SANITIZE_UNDEFINED · Issue #133157 · python/cpython · GitHub

Open Graph Title: UBsan: Remove _Py_NO_SANITIZE_UNDEFINED · Issue #133157 · python/cpython

X Title: UBsan: Remove _Py_NO_SANITIZE_UNDEFINED · Issue #133157 · python/cpython

Description: 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 ...

Open Graph Description: 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-monito...

X Description: 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-monito...

Opengraph URL: https://github.com/python/cpython/issues/133157

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"UBsan: Remove _Py_NO_SANITIZE_UNDEFINED","articleBody":"# Bug report\n\nSplit out from the #111178 monster-issue:\n\nWe 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.\nTo fully fix UBsan failures, we should get rid of the macro.\nAt least outside test functions.\n\n\n\n\u003c!-- gh-linked-prs -->\n### Linked PRs\n* gh-134047\n* gh-134048\n* gh-135320\n* gh-135334\n* gh-134050\n* gh-135346\n\u003c!-- /gh-linked-prs -->\n","author":{"url":"https://github.com/encukou","@type":"Person","name":"encukou"},"datePublished":"2025-04-29T14:46:19Z","url":"https://github.com/python/cpython/issues/133157"}

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:42485e59-aef4-97e1-61fc-9bc9b7313997
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id8668:213839:4D85494:62ABA7F:6B025CDC
html-safe-nonce2e56fd61708582b78a374483df21a1178329dda93e84ed10600e2d9111c73f76
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4NjY4OjIxMzgzOTo0RDg1NDk0OjYyQUJBN0Y6NkIwMjVDREMiLCJ2aXNpdG9yX2lkIjoiNTEyMTQxOTI0MTQ5MjQ3MTAwNCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac772998fcff88e9d4deccc7d9a4961d0fe544f7f418b1a7d1e56e5ca665cf0374
hovercard-subject-tagissue:3028631945
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/python/cpython/133157/issue_layout
twitter:imagehttps://opengraph.githubassets.com/dfa26cd081eaf68d80f1939e5334feb23334c2b817c8cc72d6f4dde2eb68265d/python/cpython/issues/133157
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/dfa26cd081eaf68d80f1939e5334feb23334c2b817c8cc72d6f4dde2eb68265d/python/cpython/issues/133157
og:image:altBug 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-monito...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameencukou
hostnamegithub.com
expected-hostnamegithub.com
None87e774ee7c6b3bee0490394e4d3e57ec9dbc956f74b87ea685dc8996c1676456
turbo-cache-controlno-preview
go-importgithub.com/python/cpython git https://github.com/python/cpython.git
octolytics-dimension-user_id1525981
octolytics-dimension-user_loginpython
octolytics-dimension-repository_id81598961
octolytics-dimension-repository_nwopython/cpython
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id81598961
octolytics-dimension-repository_network_root_nwopython/cpython
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release423dbb54c5e7bfecc838eb387c1435eb3d0e760d
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/python/cpython/issues/133157#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fissues%2F133157
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fissues%2F133157
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=python%2Fcpython
Reloadhttps://github.com/python/cpython/issues/133157
Reloadhttps://github.com/python/cpython/issues/133157
Reloadhttps://github.com/python/cpython/issues/133157
pythonhttps://github.com/python
cpythonhttps://github.com/python/cpython
Codehttps://github.com/python/cpython
Issues5k+ (5k+)https://github.com/python/cpython/issues
Pull requests2.4k (2.4k)https://github.com/python/cpython/pulls
Actionshttps://github.com/python/cpython/actions
Projectshttps://github.com/python/cpython/projects
Security and qualityhttps://github.com/python/cpython/security
Insightshttps://github.com/python/cpython/insights
https://github.com/python/cpython
New issuehttps://github.com/login?return_to=https://github.com/python/cpython/issues/133157
New issuehttps://github.com/login?return_to=https://github.com/python/cpython/issues/133157
UBsan: Remove _Py_NO_SANITIZE_UNDEFINEDhttps://github.com/python/cpython/issues/133157#top
https://github.com/picnixz
extension-modulesC modules in the Modules dirhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22extension-modules%22
interpreter-core(Objects, Python, Grammar, and Parser dirs)https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22interpreter-core%22
topic-C-APIhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22topic-C-API%22
type-bugAn unexpected behavior, bug, or errorhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22type-bug%22
https://github.com/encukou
encukouhttps://github.com/encukou
on Apr 29, 2025https://github.com/python/cpython/issues/133157#issue-3028631945
#111178https://github.com/python/cpython/issues/111178
gh-133157: remove use of _Py_NO_SANITIZE_UNDEFINED in faulthandler #134047https://github.com/python/cpython/pull/134047
gh-133157: remove usage of _Py_NO_SANITIZE_UNDEFINED in Parser/pegen.c #134048https://github.com/python/cpython/pull/134048
[3.14] gh-133157: remove usage of _Py_NO_SANITIZE_UNDEFINED in Parser/pegen.c (GH-134048) #135320https://github.com/python/cpython/pull/135320
[3.13] gh-133157: fix UBSan failures in Parser/pegen.c (GH-134048) #135334https://github.com/python/cpython/pull/135334
gh-133157: remove usage of _Py_NO_SANITIZE_UNDEFINED in pyexpat #134050https://github.com/python/cpython/pull/134050
gh-133157: remove usage of _Py_NO_SANITIZE_UNDEFINED in pyexpat #135346https://github.com/python/cpython/pull/135346
encukouhttps://github.com/encukou
topic-C-APIhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22topic-C-API%22
type-bugAn unexpected behavior, bug, or errorhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22type-bug%22
on Apr 29, 2025https://github.com/python/cpython/issues/133157#event-17457299008
picnixzhttps://github.com/picnixz
on May 15, 2025https://github.com/python/cpython/issues/133157#event-17671008509
picnixzhttps://github.com/picnixz
interpreter-core(Objects, Python, Grammar, and Parser dirs)https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22interpreter-core%22
extension-modulesC modules in the Modules dirhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22extension-modules%22
on May 15, 2025https://github.com/python/cpython/issues/133157#event-17671137692
picnixzhttps://github.com/picnixz
on May 18, 2025https://github.com/python/cpython/issues/133157#event-17702388915
gh-133157: remove usage of `_Py_NO_SANITIZE_UNDEFINED` in `faulthandl…https://github.com/python/cpython/commit/0a160bf14c4848f50539e52e2de486c641d122a2
gh-133157https://github.com/python/cpython/issues/133157
0a160bfhttps://github.com/python/cpython/commit/0a160bf14c4848f50539e52e2de486c641d122a2
pablogsalhttps://github.com/pablogsal
on Jun 10, 2025https://github.com/python/cpython/issues/133157#event-18064736985
gh-133157: remove usage of `_Py_NO_SANITIZE_UNDEFINED` in `Parser/peg…https://github.com/python/cpython/commit/754e7c9b5187fcad22acf7555479603f173a4a09
gh-133157https://github.com/python/cpython/issues/133157
754e7c9https://github.com/python/cpython/commit/754e7c9b5187fcad22acf7555479603f173a4a09
miss-islingtonhttps://github.com/miss-islington
on Jun 10, 2025https://github.com/python/cpython/issues/133157#event-18064737844
pythongh-133157: remove usage of `_Py_NO_SANITIZE_UNDEFINED` in `Pars…https://github.com/miss-islington/cpython/commit/b9a80b5a161a0f514d24cc34347e5e284bd2003d
pythongh-133157https://github.com/python/cpython/issues/133157
b9a80b5https://github.com/miss-islington/cpython/commit/b9a80b5a161a0f514d24cc34347e5e284bd2003d
pablogsalhttps://github.com/pablogsal
on Jun 10, 2025https://github.com/python/cpython/issues/133157#event-18064948646
[3.14] gh-133157: remove usage of `_Py_NO_SANITIZE_UNDEFINED` in `Par…https://github.com/python/cpython/commit/904685f90fd440b40c5af79e14fba8ca5aa4d5be
gh-133157https://github.com/python/cpython/issues/133157
904685fhttps://github.com/python/cpython/commit/904685f90fd440b40c5af79e14fba8ca5aa4d5be
picnixzhttps://github.com/picnixz
on Jun 10, 2025https://github.com/python/cpython/issues/133157#event-18070314542
[3.13] pythongh-133157: remove usage of `_Py_NO_SANITIZE_UNDEFINED` i…https://github.com/picnixz/cpython/commit/dc805f205a866e445673d4dd305f1d16d6e86043
pythongh-133157https://github.com/python/cpython/issues/133157
dc805f2https://github.com/picnixz/cpython/commit/dc805f205a866e445673d4dd305f1d16d6e86043
[3.13] gh-133157: fix UBSan failures in `Parser/pegen.c` (GH-134048) (#…https://github.com/python/cpython/commit/dd7ffdbbff35d9a86906c71ee2c15a1cee02701d
gh-133157https://github.com/python/cpython/issues/133157
GH-134048https://github.com/python/cpython/pull/134048
#…https://github.com/python/cpython/pull/135334
dd7ffdbhttps://github.com/python/cpython/commit/dd7ffdbbff35d9a86906c71ee2c15a1cee02701d
encukouhttps://github.com/encukou
on Jun 10, 2025https://github.com/python/cpython/issues/133157#event-18075071267
pythongh-133157: remove usage of `_Py_NO_SANITIZE_UNDEFINED` in `pyex…https://github.com/encukou/cpython/commit/d0dc245b3c724e4dcf2be6b711e674df3cb638f3
pythongh-133157https://github.com/python/cpython/issues/133157
d0dc245https://github.com/encukou/cpython/commit/d0dc245b3c724e4dcf2be6b711e674df3cb638f3
lkollarhttps://github.com/lkollar
on Jun 19, 2025https://github.com/python/cpython/issues/133157#event-18236447907
pythongh-133157: remove usage of `_Py_NO_SANITIZE_UNDEFINED` in `Pars…https://github.com/lkollar/cpython/commit/7e3b51e330fe3f37f878ea2e551774fbd6753b8f
pythongh-133157https://github.com/python/cpython/issues/133157
7e3b51ehttps://github.com/lkollar/cpython/commit/7e3b51e330fe3f37f878ea2e551774fbd6753b8f
encukouhttps://github.com/encukou
on Jul 1, 2025https://github.com/python/cpython/issues/133157#event-18404808536
gh-133157: remove usage of `_Py_NO_SANITIZE_UNDEFINED` in `pyexpat` (#…https://github.com/python/cpython/commit/845263adc60430781b8fae9e75575c63fea50dc3
gh-133157https://github.com/python/cpython/issues/133157
#…https://github.com/python/cpython/pull/135346
845263ahttps://github.com/python/cpython/commit/845263adc60430781b8fae9e75575c63fea50dc3
https://github.com/encukou
encukouhttps://github.com/encukou
on Jul 1, 2025https://github.com/python/cpython/issues/133157#issuecomment-3022777698
@picnixzhttps://github.com/picnixz
encukouhttps://github.com/encukou
completedhttps://github.com/python/cpython/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
on Jul 1, 2025https://github.com/python/cpython/issues/133157#event-18404818373
AndPuQinghttps://github.com/AndPuQing
on Jul 11, 2025https://github.com/python/cpython/issues/133157#event-18584722069
pythongh-133157: remove usage of `_Py_NO_SANITIZE_UNDEFINED` in `pyex…https://github.com/AndPuQing/cpython/commit/c73da534c8b1d0acc713575585c8e544f7e8ec3c
pythongh-133157https://github.com/python/cpython/issues/133157
c73da53https://github.com/AndPuQing/cpython/commit/c73da534c8b1d0acc713575585c8e544f7e8ec3c
Pranjal095https://github.com/Pranjal095
on Jul 12, 2025https://github.com/python/cpython/issues/133157#event-18600174297
pythongh-133157: remove usage of `_Py_NO_SANITIZE_UNDEFINED` in `faul…https://github.com/Pranjal095/cpython/commit/7524e25abea72ee219a37b66327ba45e320bb2e6
pythongh-133157https://github.com/python/cpython/issues/133157
7524e25https://github.com/Pranjal095/cpython/commit/7524e25abea72ee219a37b66327ba45e320bb2e6
pythongh-133157: remove usage of `_Py_NO_SANITIZE_UNDEFINED` in `Pars…https://github.com/Pranjal095/cpython/commit/154f4d950d06ab693e69676f524b3871b4948ced
pythongh-133157https://github.com/python/cpython/issues/133157
154f4d9https://github.com/Pranjal095/cpython/commit/154f4d950d06ab693e69676f524b3871b4948ced
pythongh-133157: remove usage of `_Py_NO_SANITIZE_UNDEFINED` in `pyex…https://github.com/Pranjal095/cpython/commit/ff0c21c3b15fcef9c6d1e71205204d2708722814
pythongh-133157https://github.com/python/cpython/issues/133157
ff0c21chttps://github.com/Pranjal095/cpython/commit/ff0c21c3b15fcef9c6d1e71205204d2708722814
picnixzhttps://github.com/picnixz
on Jul 13, 2025https://github.com/python/cpython/issues/133157#event-18605018618
pythongh-133157: remove usage of `_Py_NO_SANITIZE_UNDEFINED` in `pyex…https://github.com/picnixz/cpython/commit/1aa21a7ac21fa516e7192330eb537ecd3b469dbd
pythongh-133157https://github.com/python/cpython/issues/133157
1aa21a7https://github.com/picnixz/cpython/commit/1aa21a7ac21fa516e7192330eb537ecd3b469dbd
taegyunkimhttps://github.com/taegyunkim
on Aug 4, 2025https://github.com/python/cpython/issues/133157#event-18976817597
pythongh-133157: remove usage of `_Py_NO_SANITIZE_UNDEFINED` in `faul…https://github.com/taegyunkim/cpython/commit/91023f64187df9b80715f26665cb9560f355f646
pythongh-133157https://github.com/python/cpython/issues/133157
91023f6https://github.com/taegyunkim/cpython/commit/91023f64187df9b80715f26665cb9560f355f646
pythongh-133157: remove usage of `_Py_NO_SANITIZE_UNDEFINED` in `Pars…https://github.com/taegyunkim/cpython/commit/11dbf096d88d8ea9b02309453780cd9a31a861d0
pythongh-133157https://github.com/python/cpython/issues/133157
11dbf09https://github.com/taegyunkim/cpython/commit/11dbf096d88d8ea9b02309453780cd9a31a861d0
pythongh-133157: remove usage of `_Py_NO_SANITIZE_UNDEFINED` in `pyex…https://github.com/taegyunkim/cpython/commit/cbdf8180e04a2bbe912c5a76a0b77c64c76d391a
pythongh-133157https://github.com/python/cpython/issues/133157
cbdf818https://github.com/taegyunkim/cpython/commit/cbdf8180e04a2bbe912c5a76a0b77c64c76d391a
Agent-Hellboyhttps://github.com/Agent-Hellboy
on Aug 19, 2025https://github.com/python/cpython/issues/133157#event-19221795729
pythongh-133157: remove usage of `_Py_NO_SANITIZE_UNDEFINED` in `Pars…https://github.com/Agent-Hellboy/cpython/commit/77d1806aecf2f2d69197514a5eec621400e2621d
pythongh-133157https://github.com/python/cpython/issues/133157
77d1806https://github.com/Agent-Hellboy/cpython/commit/77d1806aecf2f2d69197514a5eec621400e2621d
pythongh-133157: remove usage of `_Py_NO_SANITIZE_UNDEFINED` in `pyex…https://github.com/Agent-Hellboy/cpython/commit/d1a983274c2b5db3f0aa329912f19973a565db74
pythongh-133157https://github.com/python/cpython/issues/133157
d1a9832https://github.com/Agent-Hellboy/cpython/commit/d1a983274c2b5db3f0aa329912f19973a565db74
Sign up for freehttps://github.com/signup?return_to=https://github.com/python/cpython/issues/133157
Sign in to commenthttps://github.com/login?return_to=https://github.com/python/cpython/issues/133157
picnixzhttps://github.com/picnixz
extension-modulesC modules in the Modules dirhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22extension-modules%22
interpreter-core(Objects, Python, Grammar, and Parser dirs)https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22interpreter-core%22
topic-C-APIhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22topic-C-API%22
type-bugAn unexpected behavior, bug, or errorhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22type-bug%22
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.