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

[Windows] cpu_count(logical=False) can lead to Access Violation (Segfault) #1506

Closed
tcm-marcel opened this issue May 7, 2019 · 4 comments
Closed

Comments

@tcm-marcel
Copy link

Platform

  • Windows Server 2008 R2, version 6.1
  • Windows Server 2016 Standard, version 10.0.14
  • psutil 5.4.7

Bug description
Segfault when calling psutil.cpu_count(logical=False) This happened several times in our environment, but still super rare (a few out of hundreds).

Unfortunately I can't provide any repro. Feel free to close the issue if there are no obvious problems in the c code.

Windows fatal exception: access violation

Current thread 0x00001b10 (most recent call first):
  <venv>\lib\site-packages\psutil\_pswindows.py", line 292 in cpu_count_physical
  <venv>\lib\site-packages\psutil\__init__.py", line 1573 in cpu_count
psutil.cpu_count(logical=False)
@giampaolo
Copy link
Owner

This may be related to #1480.
CC-ing @samertm in case he wants to take a look at this.

@tcm-marcel
Copy link
Author

#1480 should be part of psutil 5.6.2, is this correct? I can update psutil and wait if we hit it again.

@giampaolo
Copy link
Owner

Correct. You should try if you can reproduce it with 5.6.1.

@tcm-marcel
Copy link
Author

tcm-marcel commented May 14, 2019

It didn't appear again after updating to psutil 5.6.2 so far, so I guess it was the problem solved by @samertm. Thank you!

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

2 participants