You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@mesos.apache.org by "Andrew Schwartzmeyer (JIRA)" <ji...@apache.org> on 2017/09/18 20:36:00 UTC
[jira] [Created] (MESOS-7988) Mesos attempts to open handle for the
system idle process
Andrew Schwartzmeyer created MESOS-7988:
-------------------------------------------
Summary: Mesos attempts to open handle for the system idle process
Key: MESOS-7988
URL: https://issues.apache.org/jira/browse/MESOS-7988
Project: Mesos
Issue Type: Bug
Components: stout
Environment: Windows 10
Reporter: Andrew Schwartzmeyer
Assignee: Andrew Schwartzmeyer
While running {{mesos-tests}} under Application Verifier, I found that we were inadvertently attempting to get a handle for the System Idle Process. This is not permitted by the OS, and so the {{OpenProcess}} system call was failing. I further found that we were incorrectly checking the failure condition of {{OpenProcess}}. We were attempting to open this handle when opening handles for all PIDs returned by {{os::pids}}, and the Windows API {{EnumProcess}} includes PID 0 (System Idle Process). As this PID is not useful, we can safely remove it from the {{os::pids}} API. Attempting to do _anything_ with PID 0 will likely result in failure, as it is a special process on Windows, and so we can help to prevent these errors by filtering out PID 0.
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)