René's URL Explorer Experiment


Title: macOS: Test availability for dup3() and pipe2() to prevent crashes when building against Xcode 27 · Issue #153711 · python/cpython · GitHub

Open Graph Title: macOS: Test availability for dup3() and pipe2() to prevent crashes when building against Xcode 27 · Issue #153711 · python/cpython

X Title: macOS: Test availability for dup3() and pipe2() to prevent crashes when building against Xcode 27 · Issue #153711 · python/cpython

Description: Crash report What happened? This year's Apple OS releases (macOS/iOS/tvOS/watchOS/visionOS 27) add support for dup3() and pipe2(). When building for macOS using Xcode 27 beta but running on macOS 26, configure detects these functions, bu...

Open Graph Description: Crash report What happened? This year's Apple OS releases (macOS/iOS/tvOS/watchOS/visionOS 27) add support for dup3() and pipe2(). When building for macOS using Xcode 27 beta but running on macOS 2...

X Description: Crash report What happened? This year's Apple OS releases (macOS/iOS/tvOS/watchOS/visionOS 27) add support for dup3() and pipe2(). When building for macOS using Xcode 27 beta but running on mac...

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

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"macOS: Test availability for dup3() and pipe2() to prevent crashes when building against Xcode 27","articleBody":"# Crash report\n\n### What happened?\n\nThis year's Apple OS releases (macOS/iOS/tvOS/watchOS/visionOS 27) add support for `dup3()` and `pipe2()`. When building for macOS using Xcode 27 beta but running on macOS 26, configure detects these functions, but Python crashes when it tries to use them. As a temporary fix, I'm passing `ac_cv_func_dup3=no ac_cv_func_pipe2=no` to `configure`. The real fix will be to use availability checks in `Modules/posixmodule.c` for `dup3()` and `pipe2()`, like gh-97897 does\n\nPrototypes added to `sys/unistd.h` in the *27 SDK:\n```\n__API_AVAILABLE(macos(27.0), ios(27.0), tvos(27.0), watchos(27.0), visionos(27.0))\nint     dup3(int, int, int);\n__API_AVAILABLE(macos(27.0), ios(27.0), tvos(27.0), watchos(27.0), visionos(27.0))\nint     pipe2(int [2], int);\n```\n\n@ned-deily @ronaldoussoren \n\n### CPython versions tested on:\n\n3.13\n\n### Operating systems tested on:\n\nmacOS\n\n### Output from running 'python -VV' on the command line:\n\n_No response_\n\n\u003c!-- gh-linked-prs -->\n### Linked PRs\n* gh-154718\n* gh-155174\n* gh-155202\n* gh-155206\n* gh-155211\n* gh-155222\n\u003c!-- /gh-linked-prs -->\n","author":{"url":"https://github.com/mrpippy","@type":"Person","name":"mrpippy"},"datePublished":"2026-07-14T18:07:46Z","url":"https://github.com/python/cpython/issues/153711"}

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:f25aeddb-ba74-c22b-f928-3ad953ff60c5
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idD3EA:28ABE1:25B27:35B94:6AFDA7EB
html-safe-noncee72a233b20c0a06444afcc2714edb32fab9b9f19090529f002fdf8bcc7c37802
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEM0VBOjI4QUJFMToyNUIyNzozNUI5NDo2QUZEQTdFQiIsInZpc2l0b3JfaWQiOiIyNzgzMzI3MjQyNzAzMTg1ODk5IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac4f8ac110edc339e22942370e8febc6cadadc7348705ac17603ac289170a1bd06
hovercard-subject-tagissue:4885791180
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/153711/issue_layout
twitter:imagehttps://opengraph.githubassets.com/d0f223c0c5b4620af9a05a8d6f83432555adc23ec7eb14025adcf207967303dc/python/cpython/issues/153711
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/d0f223c0c5b4620af9a05a8d6f83432555adc23ec7eb14025adcf207967303dc/python/cpython/issues/153711
og:image:altCrash report What happened? This year's Apple OS releases (macOS/iOS/tvOS/watchOS/visionOS 27) add support for dup3() and pipe2(). When building for macOS using Xcode 27 beta but running on macOS 2...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamemrpippy
hostnamegithub.com
expected-hostnamegithub.com
Nonebc86424ef34a73b386237872800e922d149d65ba907f63d6f150a2dcb8433bea
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
release0ddf53eb35c87f1f8df13dbf75c3bdadbfc6e969
ui-targetcanary-1
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/python/cpython/issues/153711#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fissues%2F153711
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%2F153711
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/153711
Reloadhttps://github.com/python/cpython/issues/153711
Reloadhttps://github.com/python/cpython/issues/153711
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/153711
New issuehttps://github.com/login?return_to=https://github.com/python/cpython/issues/153711
macOS: Test availability for dup3() and pipe2() to prevent crashes when building against Xcode 27https://github.com/python/cpython/issues/153711#top
3.13only security fixeshttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%223.13%22
3.14bugs and security fixeshttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%223.14%22
3.15bugs and security fixeshttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%223.15%22
3.16new features, bugs and security fixeshttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%223.16%22
OS-ioshttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22OS-ios%22
OS-machttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22OS-mac%22
extension-modulesC modules in the Modules dirhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22extension-modules%22
type-crashA hard crash of the interpreter, possibly with a core dumphttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22type-crash%22
https://github.com/mrpippy
mrpippyhttps://github.com/mrpippy
on Jul 14, 2026https://github.com/python/cpython/issues/153711#issue-4885791180
gh-97897https://github.com/python/cpython/issues/97897
@ned-deilyhttps://github.com/ned-deily
@ronaldoussorenhttps://github.com/ronaldoussoren
gh-153711: Guard dup3/pipe2 with __builtin_available on Apple platforms #154718https://github.com/python/cpython/pull/154718
gh-153711: Add runtime guards for dup3 & pipe2 #155174https://github.com/python/cpython/pull/155174
[3.15] gh-153711: Add runtime guards for dup3 & pipe2 (GH-155174) #155202https://github.com/python/cpython/pull/155202
[3.14] gh-153711: Avoid use of dup3 and pipe2 calls introduced in macOS 27 #155206https://github.com/python/cpython/pull/155206
[3.13] gh-153711: Avoid use of dup3 and pipe2 calls introduced in macOS 27 #155211https://github.com/python/cpython/pull/155211
gh-153711: Test availability for dup3() and pipe2() on iOS #155222https://github.com/python/cpython/pull/155222
mrpippyhttps://github.com/mrpippy
type-crashA hard crash of the interpreter, possibly with a core dumphttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22type-crash%22
on Jul 14, 2026https://github.com/python/cpython/issues/153711#event-27977839351
aiskhttps://github.com/aisk
OS-machttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22OS-mac%22
extension-modulesC modules in the Modules dirhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22extension-modules%22
on Jul 15, 2026https://github.com/python/cpython/issues/153711#event-27994270682
ned-deilyhttps://github.com/ned-deily
deferred-blockerhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22deferred-blocker%22
3.14bugs and security fixeshttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%223.14%22
3.15bugs and security fixeshttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%223.15%22
3.16new features, bugs and security fixeshttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%223.16%22
3.13only security fixeshttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%223.13%22
on Jul 17, 2026https://github.com/python/cpython/issues/153711#event-28145829926
Vamsi-kluhttps://github.com/Vamsi-klu
on Jul 26, 2026https://github.com/python/cpython/issues/153711#event-28493663263
pythongh-153711: Fix os.pipe2 availability directive syntaxhttps://github.com/Vamsi-klu/cpython/commit/548b366f3bcaa1c151c027430d108f29463f24de
pythongh-153711https://github.com/python/cpython/issues/153711
548b366https://github.com/Vamsi-klu/cpython/commit/548b366f3bcaa1c151c027430d108f29463f24de
https://github.com/ned-deily
ned-deilyhttps://github.com/ned-deily
on Aug 4, 2026https://github.com/python/cpython/issues/153711#issuecomment-5177962130
gh-100384https://github.com/python/cpython/issues/100384
gh-100384https://github.com/python/cpython/issues/100384
https://github.com/encukou
encukouhttps://github.com/encukou
on Aug 4, 2026https://github.com/python/cpython/issues/153711#issuecomment-5179395220
#100384https://github.com/python/cpython/issues/100384
hugovkhttps://github.com/hugovk
on Aug 5, 2026https://github.com/python/cpython/issues/153711#event-28990939673
gh-153711: Add runtime guards for dup3 & pipe2 (#155174)https://github.com/python/cpython/commit/f33a5f5261652d29d185aff10854b72d7c90f199
gh-153711https://github.com/python/cpython/issues/153711
#155174https://github.com/python/cpython/pull/155174
f33a5f5https://github.com/python/cpython/commit/f33a5f5261652d29d185aff10854b72d7c90f199
[3.15] gh-153711: Add runtime guards for dup3 & pipe2 (GH-155174) (#1…https://github.com/python/cpython/commit/a7f3e56820fca0fdd0d13828cd68ef874ddcece2
gh-153711https://github.com/python/cpython/issues/153711
GH-155174https://github.com/python/cpython/pull/155174
#1…https://github.com/python/cpython/pull/155202
a7f3e56https://github.com/python/cpython/commit/a7f3e56820fca0fdd0d13828cd68ef874ddcece2
ned-deilyhttps://github.com/ned-deily
on Aug 5, 2026https://github.com/python/cpython/issues/153711#event-28992796069
pythongh-153711: Avoid use of dup3 and pipe2 calls introduced in macO…https://github.com/ned-deily/cpython/commit/c2e0db42774129cbdce42d1a9ecbee4d38292d7b
pythongh-153711https://github.com/python/cpython/issues/153711
c2e0db4https://github.com/ned-deily/cpython/commit/c2e0db42774129cbdce42d1a9ecbee4d38292d7b
hugovkhttps://github.com/hugovk
on Aug 5, 2026https://github.com/python/cpython/issues/153711#event-28994704091
[3.14] gh-153711: Avoid use of dup3 and pipe2 calls introduced in mac…https://github.com/python/cpython/commit/51f6e019416bb45664218dd03ae1a6bc931f2458
gh-153711https://github.com/python/cpython/issues/153711
51f6e01https://github.com/python/cpython/commit/51f6e019416bb45664218dd03ae1a6bc931f2458
ned-deilyhttps://github.com/ned-deily
on Aug 5, 2026https://github.com/python/cpython/issues/153711#event-28994825659
[3.13] gh-153711: Avoid use of dup3 and pipe2 calls introduced in mac…https://github.com/python/cpython/commit/e86913423b4e1aa7b7ff8de3b0df9055d5117159
gh-153711https://github.com/python/cpython/issues/153711
e869134https://github.com/python/cpython/commit/e86913423b4e1aa7b7ff8de3b0df9055d5117159
https://github.com/ned-deily
ned-deilyhttps://github.com/ned-deily
on Aug 5, 2026https://github.com/python/cpython/issues/153711#issuecomment-5189027867
@encukouhttps://github.com/encukou
@Vamsi-kluhttps://github.com/Vamsi-klu
ned-deilyhttps://github.com/ned-deily
completedhttps://github.com/python/cpython/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
on Aug 5, 2026https://github.com/python/cpython/issues/153711#event-28995418194
encukouhttps://github.com/encukou
on Aug 5, 2026https://github.com/python/cpython/issues/153711#event-28996875430
pythongh-153711: Test availability for dup3() and pipe2() on iOShttps://github.com/encukou/cpython/commit/a08e31d610b7cdedd9fd6c55fdbb81995e7ab8d1
pythongh-153711https://github.com/python/cpython/issues/153711
a08e31dhttps://github.com/encukou/cpython/commit/a08e31d610b7cdedd9fd6c55fdbb81995e7ab8d1
pythongh-153711: Test availability for dup3() and pipe2() on iOShttps://github.com/encukou/cpython/commit/e9a3acd135a593cd8e9ab02f4e3b22e159da1de7
pythongh-153711https://github.com/python/cpython/issues/153711
e9a3acdhttps://github.com/encukou/cpython/commit/e9a3acd135a593cd8e9ab02f4e3b22e159da1de7
https://github.com/encukou
encukouhttps://github.com/encukou
on Aug 5, 2026https://github.com/python/cpython/issues/153711#issuecomment-5189352620
encukouhttps://github.com/encukou
on Aug 5, 2026https://github.com/python/cpython/issues/153711#event-28997128907
encukouhttps://github.com/encukou
OS-ioshttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22OS-ios%22
deferred-blockerhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22deferred-blocker%22
on Aug 5, 2026https://github.com/python/cpython/issues/153711#event-28997514409
deadlovelllhttps://github.com/deadlovelll
on Aug 5, 2026https://github.com/python/cpython/issues/153711#event-29002304735
[3.14] pythongh-153711: Avoid use of dup3 and pipe2 calls introduced …https://github.com/deadlovelll/cpython/commit/6410fc64a1f12afbb93dced1c9b9807996fb6596
pythongh-153711https://github.com/python/cpython/issues/153711
6410fc6https://github.com/deadlovelll/cpython/commit/6410fc64a1f12afbb93dced1c9b9807996fb6596
mbeijenhttps://github.com/mbeijen
on Aug 14, 2026https://github.com/python/cpython/issues/153711#event-29455499811
pythongh-153711: Add runtime guards for dup3 & pipe2 (python#155174)https://github.com/mbeijen/cpython/commit/6390c0499aad613e2713ead2dd5c9fffbd922af6
pythongh-153711https://github.com/python/cpython/issues/153711
python#155174https://github.com/python/cpython/pull/155174
6390c04https://github.com/mbeijen/cpython/commit/6390c0499aad613e2713ead2dd5c9fffbd922af6
SoftFeverhttps://github.com/SoftFever
on Oct 1, 2026https://github.com/python/cpython/issues/153711#event-32229039239
Fix bundled Python crashing on macOS 26 and older when built with Xco…https://github.com/OrcaSlicer/OrcaSlicer/commit/3384daa6bcbdfccea9797238fc7acb9f4144dae8
3384daahttps://github.com/OrcaSlicer/OrcaSlicer/commit/3384daa6bcbdfccea9797238fc7acb9f4144dae8
freakboy3742https://github.com/freakboy3742
on Oct 14, 2026https://github.com/python/cpython/issues/153711#event-33191905244
gh-153711: Test availability for dup3() and pipe2() on iOS (#155222)https://github.com/python/cpython/commit/32fd69bdea00ce4dc24959734cc0d9284eb52f1e
gh-153711https://github.com/python/cpython/issues/153711
#155222https://github.com/python/cpython/pull/155222
32fd69bhttps://github.com/python/cpython/commit/32fd69bdea00ce4dc24959734cc0d9284eb52f1e
encukouhttps://github.com/encukou
completedhttps://github.com/python/cpython/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
on Oct 14, 2026https://github.com/python/cpython/issues/153711#event-33217202655
Sign up for freehttps://github.com/signup?return_to=https://github.com/python/cpython/issues/153711
Sign in to commenthttps://github.com/login?return_to=https://github.com/python/cpython/issues/153711
3.13only security fixeshttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%223.13%22
3.14bugs and security fixeshttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%223.14%22
3.15bugs and security fixeshttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%223.15%22
3.16new features, bugs and security fixeshttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%223.16%22
OS-ioshttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22OS-ios%22
OS-machttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22OS-mac%22
extension-modulesC modules in the Modules dirhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22extension-modules%22
type-crashA hard crash of the interpreter, possibly with a core dumphttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22type-crash%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.