fix(main): poll reports a descriptor closed mid-call as POLLNVAL #16626
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/16626"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-11-07T10:26:20Z.
What
guest_pollaborted on main (run 42357718011):poll: descriptor 7 is neither a socket, a pipe, ...thrown fromPollDescriptors.PollsAPipeClosedDuringTheWaitcloses the pipe while the waiter thread enters poll: the descriptor passedDescriptorIsOpen, was closed by the other thread, then failedIsPipeand hit the throw. The throw branch now rechecksDescriptorIsOpenand reportsPOLLNVAL, the same recheckselectalready has. A genuinely unsupported open descriptor still throws.Tested
Not reproducible deterministically (timing race, 1 of 233 main builds); worktree could not configure here (submodule pins unavailable), so not built locally. Fix mirrors the existing recheck in
Socket.cppselect. Main's push build is the proof.Checklist
main; no other open PR implements the same functions.mdfiles or images added to the repository