Skip to content

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

Description

@pkoning2

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

Activity

  1. gaogaotiantian commented on Jun 19, 2024

    @gaogaotiantian
    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 :)

  2. 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
  3. hugovk commented on Jun 19, 2024

    @hugovk
    Member
  4. pkoning2 commented on Jun 19, 2024

    @pkoning2
    Author

    Will do, thanks for the pointer.

  5. colesbury commented on Jun 24, 2024

    @colesbury
    Contributor

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

  6. colesbury commented on Jun 24, 2024

    @colesbury
    Contributor
  7. ned-deily commented on Jul 31, 2024

    @ned-deily
    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

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions