Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OpenBSD: Process.cmdline() may raise SystemError #1065

Closed
giampaolo opened this issue May 13, 2017 · 0 comments
Closed

OpenBSD: Process.cmdline() may raise SystemError #1065

giampaolo opened this issue May 13, 2017 · 0 comments

Comments

@giampaolo
Copy link
Owner

======================================================================
ERROR: psutil.tests.test_process.TestProcess.test_zombie_process
----------------------------------------------------------------------
ProcessLookupError: [Errno 3] No such process

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/vagrant/psutil/psutil/tests/test_process.py", line 1281, in test_zombie_process
    zproc.as_dict()
  File "/vagrant/psutil/psutil/__init__.py", line 575, in as_dict
    ret = meth()
  File "/vagrant/psutil/psutil/__init__.py", line 696, in exe
    exe = self._proc.exe()
  File "/vagrant/psutil/psutil/_psbsd.py", line 496, in wrapper
    return fun(self, *args, **kwargs)
  File "/vagrant/psutil/psutil/_psbsd.py", line 577, in exe
    cmdline = self.cmdline()
  File "/vagrant/psutil/psutil/_psbsd.py", line 496, in wrapper
    return fun(self, *args, **kwargs)
  File "/vagrant/psutil/psutil/_psbsd.py", line 603, in cmdline
    return cext.proc_cmdline(self.pid)
SystemError: <class 'OSError'> returned a result with an error set

For some reason I saw this happening on Python 3.7 only.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant