-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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 - AccessDenied for memory_info() / proc_pidinfo() #883
Comments
Note to self: for getting memory_info() |
I checked. Unfortunately it seems we're stuck with |
@giampaolo Does that mean that there is no possible fix? |
Apparently no. AFAIK |
Permission denied
error on OS X
That is seriously annoying. And yet there has to be a way; Thanks, |
Yes, it is seriously annoying. top manages to do that because of the setuid flag:
As for your link, unfortunately that retrieves system memory, not per-process memory. |
Yeah, I should have looked into I know that retrieves system memory and not per-process memory, but that might be the best we can do. The only other method I can think of is something to do with either And... I just remembered that Apple put in SIP, which may interfere with a LOT of things; it certainly broke some types of debugging (http://internals.exposed/blog/dtrace-vs-sip.html). Oh well, I guess I'll have to stick to Linux, and assume that OS X is unusable for my purposes. |
I don't understand. |
OK, if that works, then I'll be fine. Thank you. |
Fixes #91 Help on macOS where I think you get limited access to other user's processes. giampaolo/psutil#883 (comment)
Fixes #91 Help on macOS where I think you get limited access to other user's processes. giampaolo/psutil#883 (comment)
I'm attempting to use
psutil
to determine when it's reasonable to spawn extra simulators for my work (too many simulations at once == using swap which slows things down). However, I'm getting a permissions error on the child process.uname -a = Darwin XXX.local 13.4.0 Darwin Kernel Version 13.4.0: Mon Jan 11 18:17:34 PST 2016; root:xnu-2422.115.15~1/RELEASE_X86_64 x86_64
OS X 10.9.5
psutil.__version__ == 4.3.1
Here are the steps to reproduce:
sleeper.c
clang -Wall -Wextra -pedantic -std=c11 sleeper.c
, and let the output file be nameda.out
.ps_test.py
in the same directory assleeper.c
.python ps_test.py
.Doing the above will result in the following:
The text was updated successfully, but these errors were encountered: