[Bug 48664] kernel32:process - Intermittent test_Toolhelp() failure

WineHQ Bugzilla wine-bugs at winehq.org
Mon Feb 24 14:03:56 CST 2020


https://bugs.winehq.org/show_bug.cgi?id=48664

François Gouget <fgouget at codeweavers.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Assignee|wine-bugs at winehq.org        |fgouget at codeweavers.com

--- Comment #1 from François Gouget <fgouget at codeweavers.com> ---
Pids cannot be used to identify processes on Windows.
https://testbot.winehq.org/JobDetails.pl?Key=65720

Here's what happens:
* Process.exe with pid 1234 starts Child.exe.
* Process.exe exits which means its pid can now be reused because despite
Child.exe having 1234 as its ppid, it does not hold a handle to Process.exe.

* Test.exe comes around and starts Nested.exe which gets pid 1234.
* Nested.exe starts Dump.exe and exits.
' Test.exe then numerates all processes on the system and latches onto the
first process where ppid == 1234. Whether it gets Child.exe or Dump.exe is
entirely up to chance.

-- 
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