René's URL Explorer Experiment


Title: Fix test_capi on UBSan · Issue #151284 · python/cpython · GitHub

Open Graph Title: Fix test_capi on UBSan · Issue #151284 · python/cpython

X Title: Fix test_capi on UBSan · Issue #151284 · python/cpython

Description: Bug report Currently, running test_fromwidechar() of test_capi on UBSan logs UBSan errors. Example: $ UBSAN_OPTIONS="halt_on_error=1" ./python -m test -v test_capi -m test_fromwidechar test_fromwidechar (test.test_capi.test_unicode.CAPIT...

Open Graph Description: Bug report Currently, running test_fromwidechar() of test_capi on UBSan logs UBSan errors. Example: $ UBSAN_OPTIONS="halt_on_error=1" ./python -m test -v test_capi -m test_fromwidechar test_fromwid...

X Description: Bug report Currently, running test_fromwidechar() of test_capi on UBSan logs UBSan errors. Example: $ UBSAN_OPTIONS="halt_on_error=1" ./python -m test -v test_capi -m test_fromwidechar te...

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

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Fix test_capi on UBSan","articleBody":"# Bug report\n\nCurrently, running test_fromwidechar() of test_capi on UBSan logs UBSan errors. Example:\n\n```\n$ UBSAN_OPTIONS=\"halt_on_error=1\" ./python -m test -v test_capi -m test_fromwidechar\ntest_fromwidechar (test.test_capi.test_unicode.CAPITest.test_fromwidechar)\nTest PyUnicode_FromWideChar() ...\n\nObjects/unicodeobject.c:1942:38: runtime error: addition of unsigned offset to 0x0000017b51d8 overflowed to 0x0000017b51d4\nSUMMARY: UndefinedBehaviorSanitizer: undefined-behavior Objects/unicodeobject.c:1942:38 \n```\n\nI'm working on fixing these errors.\n\n\u003c!-- gh-linked-prs -->\n### Linked PRs\n* gh-151286\n* gh-151323\n* gh-151324\n* gh-151325\n\u003c!-- /gh-linked-prs -->\n","author":{"url":"https://github.com/vstinner","@type":"Person","name":"vstinner"},"datePublished":"2026-06-10T20:16:32Z","url":"https://github.com/python/cpython/issues/151284"}

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:e413af2b-5360-71ee-eecf-e52258405c6a
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idB3D0:23DB5F:15C8FDB:1B5888D:6B025D14
html-safe-nonce179c1f9a9d919ba13eca03420af2425270a50f43512017472ed7bbf83b7a1e2a
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCM0QwOjIzREI1RjoxNUM4RkRCOjFCNTg4OEQ6NkIwMjVEMTQiLCJ2aXNpdG9yX2lkIjoiODA2ODg4MzI2MTgyMjIyOTc4MCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmacd2b2948eeba9a68839c228720a325926ee820f609fc52e2c7c3b23ec181df94d
hovercard-subject-tagissue:4634656828
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/151284/issue_layout
twitter:imagehttps://opengraph.githubassets.com/403a4c86be30890338961c1bc039441a159b25c1599e01de1188f78485a13b9b/python/cpython/issues/151284
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/403a4c86be30890338961c1bc039441a159b25c1599e01de1188f78485a13b9b/python/cpython/issues/151284
og:image:altBug report Currently, running test_fromwidechar() of test_capi on UBSan logs UBSan errors. Example: $ UBSAN_OPTIONS="halt_on_error=1" ./python -m test -v test_capi -m test_fromwidechar test_fromwid...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamevstinner
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/151284#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fissues%2F151284
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%2F151284
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/151284
Reloadhttps://github.com/python/cpython/issues/151284
Reloadhttps://github.com/python/cpython/issues/151284
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/151284
New issuehttps://github.com/login?return_to=https://github.com/python/cpython/issues/151284
Fix test_capi on UBSanhttps://github.com/python/cpython/issues/151284#top
testsTests in the Lib/test dirhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22tests%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/vstinner
vstinnerhttps://github.com/vstinner
on Jun 10, 2026https://github.com/python/cpython/issues/151284#issue-4634656828
gh-151284: Fix test_capi on UBSan #151286https://github.com/python/cpython/pull/151286
[3.15] gh-151284: Fix test_capi on UBSan (GH-151286) #151323https://github.com/python/cpython/pull/151323
[3.14] gh-151284: Fix test_capi on UBSan (GH-151286) #151324https://github.com/python/cpython/pull/151324
[3.13] gh-151284: Fix test_capi on UBSan (GH-151286) #151325https://github.com/python/cpython/pull/151325
vstinnerhttps://github.com/vstinner
type-bugAn unexpected behavior, bug, or errorhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22type-bug%22
topic-C-APIhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22topic-C-API%22
testsTests in the Lib/test dirhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22tests%22
on Jun 10, 2026https://github.com/python/cpython/issues/151284#event-26593405672
vstinnerhttps://github.com/vstinner
on Jun 11, 2026https://github.com/python/cpython/issues/151284#event-26621108937
gh-151284: Fix test_capi on UBSan (#151286)https://github.com/python/cpython/commit/d87d77287392b78d36a06660228f6a5ca88888d7
gh-151284https://github.com/python/cpython/issues/151284
#151286https://github.com/python/cpython/pull/151286
d87d772https://github.com/python/cpython/commit/d87d77287392b78d36a06660228f6a5ca88888d7
vstinnerhttps://github.com/vstinner
completedhttps://github.com/python/cpython/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
on Jun 11, 2026https://github.com/python/cpython/issues/151284#event-26621270595
vstinnerhttps://github.com/vstinner
on Jun 11, 2026https://github.com/python/cpython/issues/151284#event-26622021262
[3.13] gh-151284: Fix test_capi on UBSan (GH-151286) (#151325)https://github.com/python/cpython/commit/003db2ffd001c05b7138259864d1adadd9ebdcd9
gh-151284https://github.com/python/cpython/issues/151284
GH-151286https://github.com/python/cpython/pull/151286
#151325https://github.com/python/cpython/pull/151325
003db2fhttps://github.com/python/cpython/commit/003db2ffd001c05b7138259864d1adadd9ebdcd9
[3.14] gh-151284: Fix test_capi on UBSan (GH-151286) (#151324)https://github.com/python/cpython/commit/a258c96bccd7ff603f7c5c3dc57fe7f4f0edd590
gh-151284https://github.com/python/cpython/issues/151284
GH-151286https://github.com/python/cpython/pull/151286
#151324https://github.com/python/cpython/pull/151324
a258c96https://github.com/python/cpython/commit/a258c96bccd7ff603f7c5c3dc57fe7f4f0edd590
[3.15] gh-151284: Fix test_capi on UBSan (GH-151286) (#151323)https://github.com/python/cpython/commit/5caef8590a06487be5cabdfc890fdc0cd3421751
gh-151284https://github.com/python/cpython/issues/151284
GH-151286https://github.com/python/cpython/pull/151286
#151323https://github.com/python/cpython/pull/151323
5caef85https://github.com/python/cpython/commit/5caef8590a06487be5cabdfc890fdc0cd3421751
philthompson10https://github.com/philthompson10
on Jun 17, 2026https://github.com/python/cpython/issues/151284#event-26873462074
pythongh-151284: Fix test_capi on UBSan (python#151286)https://github.com/philthompson10/cpython/commit/32debf11bccab45328e62d72c7d44573723aa3e7
pythongh-151284https://github.com/python/cpython/issues/151284
python#151286https://github.com/python/cpython/pull/151286
32debf1https://github.com/philthompson10/cpython/commit/32debf11bccab45328e62d72c7d44573723aa3e7
Sign up for freehttps://github.com/signup?return_to=https://github.com/python/cpython/issues/151284
Sign in to commenthttps://github.com/login?return_to=https://github.com/python/cpython/issues/151284
testsTests in the Lib/test dirhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22tests%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.