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

psutil fails (segfault) on macOS in the free-threaded (python3.13t) version #120717

Closed
pkoning2 opened this issue Jun 19, 2024 · 6 comments
Closed
Labels
topic-free-threading type-bug An unexpected behavior, bug, or error

Comments

@pkoning2
Copy link

pkoning2 commented Jun 19, 2024

Bug report

Bug description:

I used pip to install psutil on python 3.13 0b2, both the regular and the "t" version. The regular one works; the t one fails at import psutil with a segfault.

Mac OS 12.7.5 on Apple M1 (ARM64).

CPython versions tested on:

3.13

Operating systems tested on:

macOS

@pkoning2 pkoning2 added the type-bug An unexpected behavior, bug, or error label Jun 19, 2024
@gaogaotiantian
Copy link
Member

Any extensions that uses more than Python would need to adapt to free-threading if they want to onboard. It's impossible for CPython to ensure all the C extensions work without GIL. So this should be an issue for psutil :)

@hugovk hugovk changed the title psutil fails (segfault) on Mac OS in the no-GIL (python3.13t) version psutil fails (segfault) on macOS in the free-threaded (python3.13t) version Jun 19, 2024
@hugovk hugovk closed this as not planned Won't fix, can't repro, duplicate, stale Jun 19, 2024
@hugovk
Copy link
Member

hugovk commented Jun 19, 2024

@pkoning2
Copy link
Author

Will do, thanks for the pointer.

@colesbury
Copy link
Contributor

I think this is due to issues with the Python installers, not psutil.

@colesbury colesbury reopened this Jun 24, 2024
@colesbury
Copy link
Contributor

@ned-deily
Copy link
Member

Based on the descriptions here and in the linked issues, the original problem has been resolved. With current versions of Python 3.13 (python.org macOS 3.13.0b4), pip, and psutil, psutil no longer segfaults using the free-threaded variant.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
topic-free-threading type-bug An unexpected behavior, bug, or error
Projects
None yet
Development

No branches or pull requests

5 participants