Skip to content

Implement stack size detection on FreeBSD #159603

Closed

Description

@vstinner

Currently, Python calls pthread_getattr_np() which is... "not portable", as said in the name :-) FreeBSD has a similar function: pthread_attr_get_np() from <pthread_np.h>. I propose using this function to get the stack size on FreeBSD.

Linked PRs

Activity

  1. vstinner commented on Oct 19, 2026

    @vstinner
    MemberAuthor

    Note: I created this issue to solve #159535 regression on FreeBSD.

  2. added
    type-bugAn unexpected behavior, bug, or error
    and removed
    type-featureA feature request or enhancement
    on Oct 19, 2026
  3. added a commit that references this issue on Oct 20, 2026
  4. added 2 commits that reference this issue on Oct 20, 2026
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

    OS-freebsdinterpreter-core(Objects, Python, Grammar, and Parser dirs)type-bugAn unexpected behavior, bug, or error

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions