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

cpu_affinity() segfaults on Linux on CentOS / manylinux #1126

Closed
giampaolo opened this issue Sep 10, 2017 · 4 comments
Closed

cpu_affinity() segfaults on Linux on CentOS / manylinux #1126

giampaolo opened this issue Sep 10, 2017 · 4 comments

Comments

@giampaolo
Copy link
Owner

giampaolo commented Sep 10, 2017

See: #824 (comment)

psutil.tests.test_process.TestProcess.test_cmdline ... ok
psutil.tests.test_process.TestProcess.test_cpu_affinity ... ok
psutil.tests.test_process.TestProcess.test_cpu_affinity_errs ... config.sh: line 17:    55 Segmentation fault      (core dumped) PSUTIL_TESTING=1 python -Wa ../psutil/psutil/tests/__main__.py
@giampaolo
Copy link
Owner Author

Note: as far as I understand the segfault occurs when using the wheel built on CentOS 5. That means a different implementation of psutil_proc_cpu_affinity_get is used because CPU_ALLOC is not defined:

@webknjaz
Copy link

webknjaz commented Mar 1, 2019

FTR I've faced a similar issue when building manylinux1 wheel for pygit2 (libgit2/pygit2#793 (comment)): tests segfaulted under the same manylinux1 container. But the wheels themselves worked under other envs + they worked after changing directory on my dev machine and crashed when I tried using those from within project dir probably picking up something from a current working directory rather than virtualenv...

@giampaolo giampaolo changed the title cpu_affinity() segfaults on Linux cpu_affinity() segfaults on Linux on CentOS / manylinux Mar 1, 2019
@giampaolo
Copy link
Owner Author

To further elaborate on this, and as a note to self:

@webknjaz
Copy link

@giampaolo is this still a problem with wheels shipped as v0.28.0?

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