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
Domain: github.com
{"@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-profiling | 0 |
| react-import-map | react,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-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:f25aeddb-ba74-c22b-f928-3ad953ff60c5 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D3EA:28ABE1:25B27:35B94:6AFDA7EB |
| html-safe-nonce | e72a233b20c0a06444afcc2714edb32fab9b9f19090529f002fdf8bcc7c37802 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEM0VBOjI4QUJFMToyNUIyNzozNUI5NDo2QUZEQTdFQiIsInZpc2l0b3JfaWQiOiIyNzgzMzI3MjQyNzAzMTg1ODk5IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 4f8ac110edc339e22942370e8febc6cadadc7348705ac17603ac289170a1bd06 |
| hovercard-subject-tag | issue:4885791180 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/python/cpython/153711/issue_layout |
| twitter:image | https://opengraph.githubassets.com/d0f223c0c5b4620af9a05a8d6f83432555adc23ec7eb14025adcf207967303dc/python/cpython/issues/153711 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/d0f223c0c5b4620af9a05a8d6f83432555adc23ec7eb14025adcf207967303dc/python/cpython/issues/153711 |
| og:image:alt | 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... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | mrpippy |
| hostname | github.com |
| expected-hostname | github.com |
| None | bc86424ef34a73b386237872800e922d149d65ba907f63d6f150a2dcb8433bea |
| turbo-cache-control | no-preview |
| go-import | github.com/python/cpython git https://github.com/python/cpython.git |
| octolytics-dimension-user_id | 1525981 |
| octolytics-dimension-user_login | python |
| octolytics-dimension-repository_id | 81598961 |
| octolytics-dimension-repository_nwo | python/cpython |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 81598961 |
| octolytics-dimension-repository_network_root_nwo | python/cpython |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 0ddf53eb35c87f1f8df13dbf75c3bdadbfc6e969 |
| ui-target | canary-1 |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width