https://bugs.winehq.org/show_bug.cgi?id=48642
Bug ID: 48642 Summary: kernel32:process contains a race condition in test_WaitForJobObject() Product: Wine Version: unspecified Hardware: x86 OS: Linux Status: NEW Severity: normal Priority: P2 Component: kernel32 Assignee: wine-bugs@winehq.org Reporter: fgouget@codeweavers.com Distribution: ---
Created attachment 66499 --> https://bugs.winehq.org/attachment.cgi?id=66499 Patch to reproduce and diagnose rare kernel32:process failures
The last test of test_WaitForJobObject() contains a race condition:
create_process("exit", &pi); // -> Starts a child process which exits almost immediately
ret = pAssignProcessToJobObject(job, pi.hProcess); // -> If the child has already exited this call fails
This rarely happens (~1% failure rate) but happened on the w864 and w1064v1709 64 bit tests in this job: https://testbot.winehq.org/JobDetails.pl?Key=65660