Prevents tests from leaking System V IPC objects - #22912
Conversation
|
@iliaal since this one is related to the other one you just looked at, please allow me to ping you here (no code owner here, too). |
|
Checked this locally on a build with the three sysv extensions. Unpatched, Two other tests leak the same way, if you want them in scope. Both of your workarounds are there because of extension bugs that deserve their own PR. |
ab7526b to
07a5e09
Compare
These are the two that were fixed in #22911.
I had Codex look at it. The |
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.