Prevents tests from leaking System V IPC objects - #22912
Open
NickSdot wants to merge 2 commits into
Open
Conversation
This was referenced Jul 29, 2026
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.
The two tests leave System V IPC objects behind. Repeated test-suite runs can exhaust platform IPC limits and cause unrelated SysV tests to fail. Happened on macOS where the message queue limit is relatively low.
1)
arginfo_zpp_mismatch.phptCalls every internal function with 0..8
nullarguments. Means, 4 System V IPC functions create 3 queues, 3 shared-memory segments, and 4 semaphore sets per run -- these survive the process that created them.The 4 affected functions are now handled early with a helper. The argument counts stay the same, but
sem_get()andshm_attach()use0600for their permission argument, becausenullbecomes0000which can create non-removable objects.2)
gh16592.phptcreated a message queue without removing it; now uses a private queue and cleans up after it.