René's URL Explorer Experiment


Title: GH-146475: Strip CFI directives from JIT stencils to allow using Apple LLVM 21 by savannahostrowski · Pull Request #148364 · python/cpython · GitHub

Open Graph Title: GH-146475: Strip CFI directives from JIT stencils to allow using Apple LLVM 21 by savannahostrowski · Pull Request #148364 · python/cpython

X Title: GH-146475: Strip CFI directives from JIT stencils to allow using Apple LLVM 21 by savannahostrowski · Pull Request #148364 · python/cpython

Description: After poking around at this a bit, it seems like Apple LLVM 21 is stricter about validating CFI frame nesting. In debug builds, .cfi_endproc directives can end up in blocks that the optimizer removes as unreachable, leaving unbalanced .cfi_startproc directives that the assembler rejects (and so you'll get something like this #146478 (comment) while building). Since JIT stencils are already compiled with -fno-asynchronous-unwind-tables, I believe the CFI directives are unused and so they can be stripped out. I also tried changing the flag to -fno-unwind-tables instead to just prevent us from emitting the directives in the first place but it seems like that's a bigger change as we'd have to handle SHT_X86_64_UNWIND sections on x86_64 Linux (https://github.com/python/cpython/actions/runs/24265500635/job/70859484777?pr=148364)? I'm not totally sure why that is. We could go that route but wanted to solicit opinions first before going down that road. This is an alternative to #146478 that tries to fix the root cause rather than blocking Apple LLVM 21. Issue: gh-146475

Open Graph Description: After poking around at this a bit, it seems like Apple LLVM 21 is stricter about validating CFI frame nesting. In debug builds, .cfi_endproc directives can end up in blocks that the optimizer remov...

X Description: After poking around at this a bit, it seems like Apple LLVM 21 is stricter about validating CFI frame nesting. In debug builds, .cfi_endproc directives can end up in blocks that the optimizer remov...

Opengraph URL: https://github.com/python/cpython/pull/148364

X: @github

direct link

Domain: github.com

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react-reconciler,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@d5750093facf
route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:70d171b2-8d8f-5b12-6c4a-2b62726a123c
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idE9A0:22AD2A:37D743:4C45EF:6AECBA6E
html-safe-noncec6cfcf9fedec1fb0ea2fbb22319bbd2bec6dc14f9537f5f0e9e1f93dd4e037db
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFOUEwOjIyQUQyQTozN0Q3NDM6NEM0NUVGOjZBRUNCQTZFIiwidmlzaXRvcl9pZCI6IjYwMjgzNDQ0OTcwNTk3MDc1MDIiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac6272e445c7e06b9f62c92d7f0a148ab9ede16e51a859abc22a7988a9facf5eae
hovercard-subject-tagpull_request:3515957247
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/python/cpython/pull/148364/files
twitter:imagehttps://avatars.githubusercontent.com/u/8949415?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/8949415?s=400&v=4
og:image:altAfter poking around at this a bit, it seems like Apple LLVM 21 is stricter about validating CFI frame nesting. In debug builds, .cfi_endproc directives can end up in blocks that the optimizer remov...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None95ae5445dec4cded2bc4f9d97ede92b9116c0bf381a08a5c844b60b5bddcbc97
turbo-cache-controlno-preview
diff-viewunified
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 full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
releasedb4ef601a7f034ae2a68e17d6eeaeb7ee9470192
ui-targetcanary-1
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/python/cpython/pull/148364/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F148364%2Ffiles
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%2Fpull%2F148364%2Ffiles
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=python%2Fcpython
Reloadhttps://github.com/python/cpython/pull/148364/files
Reloadhttps://github.com/python/cpython/pull/148364/files
Reloadhttps://github.com/python/cpython/pull/148364/files
pythonhttps://github.com/python
cpythonhttps://github.com/python/cpython
Codehttps://github.com/python/cpython
Issues5k+ (5k+)https://github.com/python/cpython/issues
Pull requests2.3k (2.3k)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/pulse
Sign up for GitHub https://github.com/signup?return_to=%2Fpython%2Fcpython%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Fpython%2Fcpython%2Fissues%2Fnew%2Fchoose
savannahostrowskihttps://github.com/savannahostrowski
python:mainhttps://github.com/python/cpython/tree/main
savannahostrowski:fix-apple-llvmhttps://github.com/savannahostrowski/cpython/tree/fix-apple-llvm
Conversation 11 https://github.com/python/cpython/pull/148364
Commits 10 https://github.com/python/cpython/pull/148364/commits
Checks 76 https://github.com/python/cpython/pull/148364/checks
Files changed https://github.com/python/cpython/pull/148364/files
Please reload this pagehttps://github.com/python/cpython/pull/148364/files
GH-146475: Strip CFI directives from JIT stencils to allow using Apple LLVM 21 https://github.com/python/cpython/pull/148364/files#top
Show all changes 10 commits https://github.com/python/cpython/pull/148364/files
6480297 Strip CFI directives in JIT stencils savannahostrowski Apr 10, 2026 https://github.com/python/cpython/pull/148364/commits/6480297f86369fcfd811af1f4b6ae6f4a74b24cf
244480a Clean up comment savannahostrowski Apr 10, 2026 https://github.com/python/cpython/pull/148364/commits/244480a042c3021b0a11210e9e1cb21ddedff678
d84337a Clean up comment savannahostrowski Apr 10, 2026 https://github.com/python/cpython/pull/148364/commits/d84337a4a2d335e84cd6caad6cf24ec63951e131
e29673e 📜🤖 Added by blurb_it. blurb-it[bot] Apr 10, 2026 https://github.com/python/cpython/pull/148364/commits/e29673e146f23c0244816a724a37b03f713edbd7
2a3ff7f Merge branch 'main' into fix-apple-llvm savannahostrowski Apr 10, 2026 https://github.com/python/cpython/pull/148364/commits/2a3ff7f5ade5e5333c48c62ecc81af65d5b40d30
00dfe93 Blurb savannahostrowski Apr 10, 2026 https://github.com/python/cpython/pull/148364/commits/00dfe93599bb542b8d2fa5e697709812d0f9043c
55069d8 oooo there is a flag savannahostrowski Apr 10, 2026 https://github.com/python/cpython/pull/148364/commits/55069d8339e8d5ae4179ea4ea50e85754b89f6d5
3e7cf60 Make comment more concise savannahostrowski Apr 10, 2026 https://github.com/python/cpython/pull/148364/commits/3e7cf60ac1be1b64c9505843637b29b3b7c7cae6
f110a95 Appease linter savannahostrowski Apr 10, 2026 https://github.com/python/cpython/pull/148364/commits/f110a958fa5eb6cdab558a75a447fc751846fad4
4e2a5d3 Just kidding, the flag breaks x86 linux savannahostrowski Apr 10, 2026 https://github.com/python/cpython/pull/148364/commits/4e2a5d315310d4f7ad0467c4aa186eeab4392d4c
Clear filters https://github.com/python/cpython/pull/148364/files
Please reload this pagehttps://github.com/python/cpython/pull/148364/files
Please reload this pagehttps://github.com/python/cpython/pull/148364/files
2026-04-10-20-57-30.gh-issue-146475.SWxwGM.rst https://github.com/python/cpython/pull/148364/files#diff-8bfdffb65b744c1331eb1c9b84f729ac7943ecc3c269fa231b37c26e25db8107
_optimizers.py https://github.com/python/cpython/pull/148364/files#diff-7742759cb2a4fcac63fa8c969e31c407f2059d4f3f3884f0b3015bb24f48e08c
Misc/NEWS.d/next/Build/2026-04-10-20-57-30.gh-issue-146475.SWxwGM.rsthttps://github.com/python/cpython/pull/148364/files#diff-8bfdffb65b744c1331eb1c9b84f729ac7943ecc3c269fa231b37c26e25db8107
View file https://github.com/savannahostrowski/cpython/blob/4e2a5d315310d4f7ad0467c4aa186eeab4392d4c/Misc/NEWS.d/next/Build/2026-04-10-20-57-30.gh-issue-146475.SWxwGM.rst
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/148364/{{ revealButtonHref }}
https://github.com/python/cpython/blob/main/.github/CODEOWNERS#L288
Tools/jit/_optimizers.pyhttps://github.com/python/cpython/pull/148364/files#diff-7742759cb2a4fcac63fa8c969e31c407f2059d4f3f3884f0b3015bb24f48e08c
View file https://github.com/savannahostrowski/cpython/blob/4e2a5d315310d4f7ad0467c4aa186eeab4392d4c/Tools/jit/_optimizers.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/148364/{{ revealButtonHref }}
https://github.com/python/cpython/pull/148364/files#diff-7742759cb2a4fcac63fa8c969e31c407f2059d4f3f3884f0b3015bb24f48e08c
https://github.com/python/cpython/pull/148364/files#diff-7742759cb2a4fcac63fa8c969e31c407f2059d4f3f3884f0b3015bb24f48e08c
Please reload this pagehttps://github.com/python/cpython/pull/148364/files
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.