https://bugs.winehq.org/show_bug.cgi?id=54342
Bug ID: 54342 Summary: ws2_32:sock - test_WSARecv() sometimes fails with "got apc_count 1." on Windows 7 Product: Wine Version: 8.0-rc4 Hardware: x86-64 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: winsock Assignee: wine-bugs@winehq.org Reporter: jinoh.kang.kr@gmail.com CC: fgouget@codeweavers.com Distribution: ---
test_WSARecv() sometimes fails with "got apc_count 1." on w7u_adm.
https://bugs.winehq.org/show_bug.cgi?id=54342
Jinoh Kang jinoh.kang.kr@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |source, testcase
https://bugs.winehq.org/show_bug.cgi?id=54342
François Gouget fgouget@codeweavers.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Ever confirmed|0 |1 Status|UNCONFIRMED |NEW Summary|ws2_32:sock - |ws2_32:sock - |test_WSARecv() sometimes |test_WSARecv() sometimes |fails with "got apc_count |fails with "got apc_count |1." on Windows 7 |1." on Windows
--- Comment #1 from François Gouget fgouget@codeweavers.com --- This failure is pretty rare but it is not specific to Windows 7. There are 4 known instances: * 2022-10-25 w7u-es 32-bit * 2022-11-04 Windows 7 * 2022-12-01 w1064-2qxl 64-bit (22h2) * 2022-12-12 on my w10pro64-rx550 VM, 64-bit (22h2)
See https://test.winehq.org/data/patterns.html#ws2_32:sock
I don't see the w7u_adm case in the test.winehq.org results so I suppose it was a merge request false positive?
https://bugs.winehq.org/show_bug.cgi?id=54342
Zeb Figura z.figura12@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |z.figura12@gmail.com
--- Comment #2 from Zeb Figura z.figura12@gmail.com --- I wonder if Windows is doing an alertable wait inside of WSARecv()? Or if the file descriptor has FILE_SYNCHRONOUS_IO_ALERT set? Very weird if so.
https://bugs.winehq.org/show_bug.cgi?id=54342
--- Comment #3 from Zeb Figura z.figura12@gmail.com --- (In reply to Zeb Figura from comment #2)
I wonder if Windows is doing an alertable wait inside of WSARecv()?
It does, but not if WSARecv() completes synchronously. Which it usually does, but isn't guaranteed to do. I'll send a patch.
https://bugs.winehq.org/show_bug.cgi?id=54342
--- Comment #4 from Jinoh Kang jinoh.kang.kr@gmail.com --- (In reply to Zeb Figura from comment #3)
(In reply to Zeb Figura from comment #2)
I wonder if Windows is doing an alertable wait inside of WSARecv()?
It does, but not if WSARecv() completes synchronously. Which it usually does, but isn't guaranteed to do. I'll send a patch.
Would you link to the patch?
https://bugs.winehq.org/show_bug.cgi?id=54342
Zeb Figura z.figura12@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |FIXED Fixed by SHA1| |9d330d81a6af73220e08a93efa1 | |8a7cbf0cc9408
--- Comment #5 from Zeb Figura z.figura12@gmail.com --- This should have been fixed, a long time ago, by 9d330d81a6af73220e08a93efa18a7cbf0cc9408. I probably never marked it fixed because I wanted to wait and see if it actually was. At any rate it doesn't appear on the patterns page anymore.