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

Fix py 3.9 [WinError 998] Invalid access to memory location #1866

Merged
merged 25 commits into from
Oct 31, 2020
Merged

Conversation

giampaolo
Copy link
Owner

https://ci.appveyor.com/project/giampaolo/psutil/builds/36062436/job/vqqn6ayac5fwsfvp
This occurs on python 3.9 only, which on Appveyor uses Visual Studio 2019 + Windows PE.
Unfortunately I cannot reproduce this by using VS 2019 on Windows 10.

The problem is ReadProcessMemory and NtWow64QueryInformationProcess64 suddenly returning ERROR_NOACCESS. In that case I turned ERROR_NOACCESS into AccessDenied for lack of a better solution.
This means that unfortunately on Python 3.9 we will get more AccessDenied on cmdline(), cwd() and environ() when querying high-privileged processes.

CC-ing @fbenkstein @EccoTheFlintstone as they worked on this part.

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

Successfully merging this pull request may close these issues.

1 participant