GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — psutil fails (segfault) on macOS in the free-threaded (python3.13t) version · Issue #120717 · python/cpython

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

New issue
Copy link
New issue
Copy link
Closed
Closed
psutil fails (segfault) on macOS in the free-threaded (python3.13t) version#120717
Copy link
Labels
topic-free-threadingtype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error

Description

@pkoning2
pkoning2
opened on Jun 19, 2024
Issue body actions

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. pkoning2
    added
    type-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error
    on Jun 19, 2024
  2. gaogaotiantian commented on Jun 19, 2024

    @gaogaotiantian
    gaogaotiantian
    on Jun 19, 2024
    Member
    More actions

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

  3. 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[/+] on Jun 19, 2024
  4. hugovk
    added
    topic-free-threading
    on Jun 19, 2024
  5. hugovk
    closed this as not plannedon Jun 19, 2024
  6. hugovk commented on Jun 19, 2024

    @hugovk
    hugovk
    on Jun 19, 2024
    Member
    More actions

    Please report to https://github.com/giampaolo/psutil/issues

  7. pkoning2 commented on Jun 19, 2024

    @pkoning2
    pkoning2
    on Jun 19, 2024
    Author
    More actions

    Will do, thanks for the pointer.

    Reacted by Hugo van Kemenade
  8. colesbury commented on Jun 24, 2024

    @colesbury
    colesbury
    on Jun 24, 2024
    Contributor
    More actions

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

  9. colesbury
    reopened this on Jun 24, 2024
  10. colesbury commented on Jun 24, 2024

    @colesbury
    colesbury
    on Jun 24, 2024
    Contributor
    More actions

    Depends on:

    • gh-120888: Bump bundled pip to 24.1.1 #120889
  11. ned-deily commented on Jul 31, 2024

    @ned-deily
    ned-deily
    on Jul 31, 2024
    Member
    More actions

    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.

  12. ned-deily
    closed this as completedon Jul 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    topic-free-threadingtype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402503 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.