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

OSX: memory_maps() may raise EINVAL for zombie process #1209

Closed
giampaolo opened this issue Jan 12, 2018 · 2 comments
Closed

OSX: memory_maps() may raise EINVAL for zombie process #1209

giampaolo opened this issue Jan 12, 2018 · 2 comments

Comments

@giampaolo
Copy link
Owner

https://travis-ci.org/giampaolo/psutil/jobs/327852918

======================================================================
ERROR: psutil.tests.test_process.TestProcess.test_zombie_process
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/Users/travis/build/giampaolo/psutil/psutil/tests/test_process.py", line 1286, in test_zombie_process
    zproc.as_dict()
  File "/Users/travis/build/giampaolo/psutil/psutil/__init__.py", line 528, in as_dict
    ret = meth()
  File "/Users/travis/build/giampaolo/psutil/psutil/__init__.py", line 1113, in memory_maps
    it = self._proc.memory_maps()
  File "/Users/travis/build/giampaolo/psutil/psutil/_psosx.py", line 330, in wrapper
    return fun(self, *args, **kwargs)
  File "/Users/travis/build/giampaolo/psutil/psutil/_psosx.py", line 571, in memory_maps
    return cext.proc_memory_maps(self.pid)
OSError: [Errno 22] Invalid argument

Curiously not on Python 2 for some reason.

@giampaolo
Copy link
Owner Author

Reopening as per #1291.

@giampaolo
Copy link
Owner Author

Closing this out. Will continue in #1291 since it has more information.

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