[Bug 48642] New: kernel32:process contains a race condition in test_WaitForJobObject()

WineHQ Bugzilla wine-bugs at winehq.org
Sat Feb 22 07:31:06 CST 2020


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 at winehq.org
          Reporter: fgouget at 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

-- 
Do not reply to this email, post in Bugzilla using the
above URL to reply.
You are receiving this mail because:
You are watching all bug changes.



More information about the wine-bugs mailing list