René's URL Explorer Experiment


Title: Resolve newer Linux os functions at runtime instead of compiling them out against old glibc · Issue #153400 · python/cpython · GitHub

Open Graph Title: Resolve newer Linux os functions at runtime instead of compiling them out against old glibc · Issue #153400 · python/cpython

X Title: Resolve newer Linux os functions at runtime instead of compiling them out against old glibc · Issue #153400 · python/cpython

Description: os gates functions like copy_file_range on an AC_CHECK_FUNCS probe at configure time and drops them entirely when the build libc lacks the symbol. Redistributable builds pay for this: python-build-standalone targets glibc 2.17 for portab...

Open Graph Description: os gates functions like copy_file_range on an AC_CHECK_FUNCS probe at configure time and drops them entirely when the build libc lacks the symbol. Redistributable builds pay for this: python-build-...

X Description: os gates functions like copy_file_range on an AC_CHECK_FUNCS probe at configure time and drops them entirely when the build libc lacks the symbol. Redistributable builds pay for this: python-build-...

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

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Resolve newer Linux os functions at runtime instead of compiling them out against old glibc","articleBody":"`os` gates functions like `copy_file_range` on an `AC_CHECK_FUNCS` probe at configure time and drops them entirely when the build libc lacks the symbol. Redistributable builds pay for this: python-build-standalone targets glibc 2.17 for portability, so every `os` function whose glibc wrapper is newer than 2.17 is gone for good, even when the interpreter later runs on a newer glibc or a kernel that implements the syscall.\n\nAffected functions, with the glibc version that added the wrapper:\n\n- `os.copy_file_range`, `os.memfd_create` (2.27)\n- `os.pidfd_open`, `os.pidfd_getfd` (2.36)\n\n`pidfd_open` and `pidfd_getfd` already sidestep it by calling the raw syscall directly.\n\nOn Linux we could resolve these at load time instead: `dlsym` the symbol once from a constructor, fall back to the raw syscall when the running libc doesn't have it, and keep the existing `HAVE_*` path everywhere else. Only functions above the 2.17 baseline need it. Same idea as #125022, but for libc symbols instead of SIMD.\n\n\n\u003c!-- gh-linked-prs -->\n### Linked PRs\n* gh-153398\n* gh-154816\n* gh-155518\n* gh-155520\n* gh-155762\n* gh-159043\n\u003c!-- /gh-linked-prs -->\n","author":{"url":"https://github.com/daandemeyer","@type":"Person","name":"daandemeyer"},"datePublished":"2026-07-09T08:18:11Z","url":"https://github.com/python/cpython/issues/153400"}

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:b7163507-0387-d580-1f19-5cd754fb97be
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idCE1E:ADA9D:3CEC1EB:4E17175:6B020374
html-safe-noncedbbb9e43791abec38b6013727af1ad9199a2c7058228d58edf667b26ef5e8b9e
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDRTFFOkFEQTlEOjNDRUMxRUI6NEUxNzE3NTo2QjAyMDM3NCIsInZpc2l0b3JfaWQiOiIyNzYyMjA1ODUxOTY3MTYxMjA0IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmaced3e6ce3c143e8e001df537ee7d613f78bb27ac99c0f2a4856b3a8a6e6156a81
hovercard-subject-tagissue:4844523514
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/153400/issue_layout
twitter:imagehttps://opengraph.githubassets.com/7345e72dc42776b681333f80e6812f7343a67e67c914b80cb460f6db5ab62441/python/cpython/issues/153400
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/7345e72dc42776b681333f80e6812f7343a67e67c914b80cb460f6db5ab62441/python/cpython/issues/153400
og:image:altos gates functions like copy_file_range on an AC_CHECK_FUNCS probe at configure time and drops them entirely when the build libc lacks the symbol. Redistributable builds pay for this: python-build-...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamedaandemeyer
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/153400#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fissues%2F153400
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%2F153400
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/153400
Reloadhttps://github.com/python/cpython/issues/153400
Reloadhttps://github.com/python/cpython/issues/153400
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/153400
New issuehttps://github.com/login?return_to=https://github.com/python/cpython/issues/153400
Resolve newer Linux os functions at runtime instead of compiling them out against old glibchttps://github.com/python/cpython/issues/153400#top
buildThe build process and cross-buildhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22build%22
extension-modulesC modules in the Modules dirhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22extension-modules%22
type-featureA feature request or enhancementhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22type-feature%22
https://github.com/daandemeyer
daandemeyerhttps://github.com/daandemeyer
on Jul 9, 2026https://github.com/python/cpython/issues/153400#issue-4844523514
#125022https://github.com/python/cpython/issues/125022
gh-153400: Resolve newer libc/syscall wrappers at runtime on Linux #153398https://github.com/python/cpython/pull/153398
gh-153400: Resolve newer libc/syscall wrappers at runtime on Linux #154816https://github.com/python/cpython/pull/154816
gh-153400: Use glibc functions instead of syscall() #155518https://github.com/python/cpython/pull/155518
gh-153400: Add syscall fallbacks for copy_file_range/memfd_create #155520https://github.com/python/cpython/pull/155520
gh-153400: Support os.getrandom() on old glibc versions #155762https://github.com/python/cpython/pull/155762
gh-153400: Add a syscall fallback for os.statx #159043https://github.com/python/cpython/pull/159043
daandemeyerhttps://github.com/daandemeyer
on Jul 9, 2026https://github.com/python/cpython/issues/153400#event-27755043066
pythongh-153400: Resolve newer libc/syscall wrappers at runtime on Linuxhttps://github.com/daandemeyer/cpython/commit/4d7695469499f36d916a2fbbe2bac259a7732bee
pythongh-153400https://github.com/python/cpython/issues/153400
4d76954https://github.com/daandemeyer/cpython/commit/4d7695469499f36d916a2fbbe2bac259a7732bee
picnixzhttps://github.com/picnixz
type-featureA feature request or enhancementhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22type-feature%22
extension-modulesC modules in the Modules dirhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22extension-modules%22
buildThe build process and cross-buildhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22build%22
on Jul 9, 2026https://github.com/python/cpython/issues/153400#event-27755307554
daandemeyerhttps://github.com/daandemeyer
on Jul 9, 2026https://github.com/python/cpython/issues/153400#event-27756226883
pythongh-153400: Resolve newer libc/syscall wrappers at runtime on Linuxhttps://github.com/daandemeyer/cpython/commit/b7a07aafb7d837a985877742480dbcd86848ed26
pythongh-153400https://github.com/python/cpython/issues/153400
b7a07aahttps://github.com/daandemeyer/cpython/commit/b7a07aafb7d837a985877742480dbcd86848ed26
pythongh-153400: Resolve newer libc/syscall wrappers at runtime on Linuxhttps://github.com/daandemeyer/cpython/commit/9f3b4466fd25f1608b74ae96c277cc86dead4843
pythongh-153400https://github.com/python/cpython/issues/153400
9f3b446https://github.com/daandemeyer/cpython/commit/9f3b4466fd25f1608b74ae96c277cc86dead4843
pythongh-153400: Resolve newer libc/syscall wrappers at runtime on Linuxhttps://github.com/daandemeyer/cpython/commit/4348bb9b7eb2c597dd470aae187ac09d31c46a74
pythongh-153400https://github.com/python/cpython/issues/153400
4348bb9https://github.com/daandemeyer/cpython/commit/4348bb9b7eb2c597dd470aae187ac09d31c46a74
pythongh-153400: Resolve newer libc/syscall wrappers at runtime on Linuxhttps://github.com/daandemeyer/cpython/commit/566bb9f76049759f577b9ad60a6d5831ea1026c1
pythongh-153400https://github.com/python/cpython/issues/153400
566bb9fhttps://github.com/daandemeyer/cpython/commit/566bb9f76049759f577b9ad60a6d5831ea1026c1
pythongh-153400: Resolve newer libc/syscall wrappers at runtime on Linuxhttps://github.com/daandemeyer/cpython/commit/c3a2c4f36f6df2fa5aa42bdcd32dc06ab18d51ef
pythongh-153400https://github.com/python/cpython/issues/153400
c3a2c4fhttps://github.com/daandemeyer/cpython/commit/c3a2c4f36f6df2fa5aa42bdcd32dc06ab18d51ef
https://github.com/merwok
merwokhttps://github.com/merwok
on Aug 10, 2026https://github.com/python/cpython/issues/153400#issuecomment-5240888132
daandemeyerhttps://github.com/daandemeyer
on Aug 10, 2026https://github.com/python/cpython/issues/153400#event-29245595771
pythongh-153400: Add syscall fallbacks for copy_file_range/memfd_createhttps://github.com/daandemeyer/cpython/commit/fe8731354edad6d193129b744b859ed3ebfb3b3e
pythongh-153400https://github.com/python/cpython/issues/153400
fe87313https://github.com/daandemeyer/cpython/commit/fe8731354edad6d193129b744b859ed3ebfb3b3e
vstinnerhttps://github.com/vstinner
on Aug 10, 2026https://github.com/python/cpython/issues/153400#event-29246849208
pythongh-153400: Use glibc functions instead of syscall()https://github.com/vstinner/cpython/commit/c99f6474294378eca368e2719e83327206992c72
pythongh-153400https://github.com/python/cpython/issues/153400
c99f647https://github.com/vstinner/cpython/commit/c99f6474294378eca368e2719e83327206992c72
daandemeyerhttps://github.com/daandemeyer
on Aug 11, 2026https://github.com/python/cpython/issues/153400#event-29263894497
pythongh-153400: Add syscall fallbacks for copy_file_range/memfd_createhttps://github.com/daandemeyer/cpython/commit/0dc17c3246aa58d5d5568e9f487066ba0ea0d51e
pythongh-153400https://github.com/python/cpython/issues/153400
0dc17c3https://github.com/daandemeyer/cpython/commit/0dc17c3246aa58d5d5568e9f487066ba0ea0d51e
vstinnerhttps://github.com/vstinner
on Aug 13, 2026https://github.com/python/cpython/issues/153400#event-29394721206
gh-153400: Use glibc functions instead of syscall() (#155518)https://github.com/python/cpython/commit/1c9521f48511e6eb974057d4a1ddc49fa50736d1
gh-153400https://github.com/python/cpython/issues/153400
#155518https://github.com/python/cpython/pull/155518
1c9521fhttps://github.com/python/cpython/commit/1c9521f48511e6eb974057d4a1ddc49fa50736d1
daandemeyerhttps://github.com/daandemeyer
on Aug 13, 2026https://github.com/python/cpython/issues/153400#event-29398401229
pythongh-153400: Add syscall fallbacks for copy_file_range/memfd_createhttps://github.com/daandemeyer/cpython/commit/96a7a840e1fdb62f7d2be7499868e4a8495da8c1
pythongh-153400https://github.com/python/cpython/issues/153400
96a7a84https://github.com/daandemeyer/cpython/commit/96a7a840e1fdb62f7d2be7499868e4a8495da8c1
vstinnerhttps://github.com/vstinner
on Aug 13, 2026https://github.com/python/cpython/issues/153400#event-29400104944
gh-153400: Add syscall fallbacks for copy_file_range/memfd_create (#1…https://github.com/python/cpython/commit/6e079e5f5e526c8a58792145e5a9543cc7cbb7ac
gh-153400https://github.com/python/cpython/issues/153400
#1…https://github.com/python/cpython/pull/155520
6e079e5https://github.com/python/cpython/commit/6e079e5f5e526c8a58792145e5a9543cc7cbb7ac
https://github.com/jjhelmus
jjhelmushttps://github.com/jjhelmus
on Aug 13, 2026https://github.com/python/cpython/issues/153400#issuecomment-5287092324
#155762https://github.com/python/cpython/pull/155762
https://github.com/daandemeyer
daandemeyerhttps://github.com/daandemeyer
on Aug 14, 2026https://github.com/python/cpython/issues/153400#issuecomment-5290929954
daandemeyerhttps://github.com/daandemeyer
completedhttps://github.com/python/cpython/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
on Aug 14, 2026https://github.com/python/cpython/issues/153400#event-29446057798
mbeijenhttps://github.com/mbeijen
on Aug 14, 2026https://github.com/python/cpython/issues/153400#event-29455510454
pythongh-153400: Use glibc functions instead of syscall() (python#155518https://github.com/mbeijen/cpython/commit/aed1c3011ae9946726f49df3d8bdecc0e228ae82
pythongh-153400https://github.com/python/cpython/issues/153400
python#155518https://github.com/python/cpython/pull/155518
aed1c30https://github.com/mbeijen/cpython/commit/aed1c3011ae9946726f49df3d8bdecc0e228ae82
pythongh-153400: Add syscall fallbacks for copy_file_range/memfd_crea…https://github.com/mbeijen/cpython/commit/8cf7669dab16a686ee032668cfb8c32dd04fb1f4
pythongh-153400https://github.com/python/cpython/issues/153400
8cf7669https://github.com/mbeijen/cpython/commit/8cf7669dab16a686ee032668cfb8c32dd04fb1f4
vstinnerhttps://github.com/vstinner
on Sep 10, 2026https://github.com/python/cpython/issues/153400#event-30931220947
gh-153400: Support os.getrandom() on old glibc versions (#155762)https://github.com/python/cpython/commit/4849a01020903a3d727c65130b9193198176c9af
gh-153400https://github.com/python/cpython/issues/153400
#155762https://github.com/python/cpython/pull/155762
4849a01https://github.com/python/cpython/commit/4849a01020903a3d727c65130b9193198176c9af
clin1234https://github.com/clin1234
on Sep 12, 2026https://github.com/python/cpython/issues/153400#event-31023922282
pythongh-153400: Support os.getrandom() on old glibc versions (python…https://github.com/clin1234/cpython/commit/3677f8d4faa870f4b13d324fbf87c5857710b723
pythongh-153400https://github.com/python/cpython/issues/153400
python…https://github.com/python/cpython/pull/155762
3677f8dhttps://github.com/clin1234/cpython/commit/3677f8d4faa870f4b13d324fbf87c5857710b723
johnslavikhttps://github.com/johnslavik
on Sep 14, 2026https://github.com/python/cpython/issues/153400#event-31099056499
pythongh-153400: Support os.getrandom() on old glibc versions (python…https://github.com/johnslavik/cpython/commit/74aa56df12daf5fa7ddb60790a1e7782ac01ca97
pythongh-153400https://github.com/python/cpython/issues/153400
python…https://github.com/python/cpython/pull/155762
74aa56dhttps://github.com/johnslavik/cpython/commit/74aa56df12daf5fa7ddb60790a1e7782ac01ca97
ambvhttps://github.com/ambv
on Oct 21, 2026https://github.com/python/cpython/issues/153400#event-33801310708
Fix CI: allowlist new HAVE_LINUX_STAT_H/HAVE_STRUCT_STATX macros (pyt…https://github.com/jjhelmus/cpython/commit/db0e4e41e7d9c6ad8fc840acf1b52f3d65af0de6
pyt…https://github.com/python/cpython/issues/153400
db0e4e4https://github.com/jjhelmus/cpython/commit/db0e4e41e7d9c6ad8fc840acf1b52f3d65af0de6
Fix CI: allowlist new HAVE_LINUX_STAT_H/HAVE_STRUCT_STATX macros (pyt…https://github.com/jjhelmus/cpython/commit/943aa85e8f55a3f99472ffed9b3f9b8c7b3ed527
pyt…https://github.com/python/cpython/issues/153400
943aa85https://github.com/jjhelmus/cpython/commit/943aa85e8f55a3f99472ffed9b3f9b8c7b3ed527
Sign up for freehttps://github.com/signup?return_to=https://github.com/python/cpython/issues/153400
Sign in to commenthttps://github.com/login?return_to=https://github.com/python/cpython/issues/153400
buildThe build process and cross-buildhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22build%22
extension-modulesC modules in the Modules dirhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22extension-modules%22
type-featureA feature request or enhancementhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22type-feature%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.