You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
psutil fails (segfault) on macOS in the free-threaded (python3.13t) version #120717
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.
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 :)
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[/+]on Jun 19, 2024
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.
Activity
gaogaotiantian commentedon Jun 19, 2024
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:)[-]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[/+]hugovk commentedon Jun 19, 2024
Please report to https://github.com/giampaolo/psutil/issues
pkoning2 commentedon Jun 19, 2024
Will do, thanks for the pointer.
colesbury commentedon Jun 24, 2024
I think this is due to issues with the Python installers, not
psutil.colesbury commentedon Jun 24, 2024
Depends on:
ned-deily commentedon Jul 31, 2024
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.