Repository navigation
Conversation
|
No actionable comments were generated in the recent review. Walkthrough
Change: Bug fix Merge Risk:
|
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.
What
On macOS
guest_event_flag_wakeaborts on every run. Its read-only timeout case (added in boykopovar#22055) expectssceKernelWaitEventFlagto returnSCE_KERNEL_ERROR_EFAULTwitherrnounchanged, and the call returnsEFAULTwitherrnoat 316.TimedWait::Conditionwaits throughstd::condition_variable_any; when that wait times out on macOS, libpthread leaves the raw__psynch_cvwaitstatus inerrno: 316 isETIMEDOUT(60) withECVCLEARED(0x100). glibc's condition wait does not toucherrno, which is why the test passes on Linux.Condition::WaitandCondition::WaitUntilnow saveerrnobefore the wait and restore it afterwards, so a guest call that waits keeps theerrnoit was called with on every host.Tested
macOS 27.0.1, Apple M4, x86_64 Release under Rosetta 2, Apple clang 21.0.0. The tree was
main1b8f79a5b5plus boykopovar#26739, boykopovar#27739 and boykopovar#17425, which macOS needs to build; none of them touches this code, andTimedWait.hpp,EventFlag.cppand the test are unchanged up tob3c7769bc5.guest_event_flag_wake: 50/50. Without the change: 0/3, aborting on the read-only timeout check (rc=0x8002000e errno=316 pattern=0x5 timeout=1000).main. The 8 that still fail on this Mac also fail without the change, and each already has an open PR or issue.Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file.mdfiles or images added to the repository (attach them to this PR)Summary by CodeRabbit