Repository navigation
Conversation
…S 27 SDK With the macOS 27.0 SDK, pipe2 is weak-linked when the deployment target is 26.0, so it is NULL on macOS 26 and every process spawn crashed. Skip the pipe2 check on Apple platforms so the existing pipe() + fcntl() path is used.
Member
|
I don't like the change. I don't like stucking in the past. Sorry. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Skips the
pipe2check on Apple platforms so that a build with the macOS 27.0 SDK no longer callspipe2on macOS 26, where it is NULL at runtime.Related issue (required for new logos for new distros)
Fixes #2750
Changes
CMakeLists.txt: skip thepipe2function check on Apple platforms. With the macOS 27.0 SDK,check_function_exists(pipe2)passes because the SDK's libSystem exports_pipe2. Themacos(27.0)availability marking onpipe2inunistd.hmakes the call a weak import when the deployment target is 26.0, so on macOS 26 the symbol is NULL andffPipe2()jumps to address 0 in every process spawn (Shell, Terminal, default run,--format json). With the check skipped,ffPipe2()uses thepipe()+fcntl()path it already has for platforms withoutpipe2.CHANGELOG.md: Bugfixes entry under 2.72.0.Red/green on macOS 26.6.2 with the macOS 27.0 SDK (default configuration,
-j4): before this change the default run and--format jsonexit 139; with it they exit 0, andctestpasses 21/21.Screenshots
Not a visual change.
Checklist
The implementation and tests were written with AI assistance.