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 — Incorrect hard limit for stack protection for MacOS and TSAN · Issue #139291 · python/cpython

Incorrect hard limit for stack protection for MacOS and TSAN #139291

New issue
Copy link
New issue
Copy link
Closed
Closed
Incorrect hard limit for stack protection for MacOS and TSAN#139291
Copy link
Labels
OS-macinterpreter-core(Objects, Python, Grammar, and Parser dirs)(Objects, Python, Grammar, and Parser dirs)pendingThe issue will be closed if no feedback is providedThe issue will be closed if no feedback is providedtype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error

Description

@markshannon
markshannon
opened on Sep 24, 2025
Issue body actions

Bug description:

Largely as a result of mixing the logic for determining the hardware stack limits and for setting the software stack limits, the incorrect hard limit is set for both TSAN and MacOS. MacOS is too low by _PyOS_STACK_MARGIN_BYTES and for TSAN by half the stack size.

Linked PRs

  • GH-139291: Fix C stack limits by factoring out finding hardware stack limits #139294

Activity

  1. markshannon
    added
    type-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error
    on Sep 24, 2025
  2. picnixz
    added
    OS-mac
    interpreter-core(Objects, Python, Grammar, and Parser dirs)(Objects, Python, Grammar, and Parser dirs)
    on Sep 24, 2025
  3. encukou
    added a commit that references this issue on Oct 7, 2025

    GH-139291: Fix C stack limits by factoring out finding hardware stack…

    7094f09
  4. StanFromIreland commented on Oct 8, 2025

    @StanFromIreland
    StanFromIreland
    on Oct 8, 2025
    Member
    More actions

    Triage: Can this be closed as completed?

  5. StanFromIreland
    added
    pendingThe issue will be closed if no feedback is providedThe issue will be closed if no feedback is provided
    on Oct 8, 2025
  6. encukou commented on Oct 9, 2025

    @encukou
    encukou
    on Oct 9, 2025
    Member
    More actions

    Yeah. 3.14 doesn't have macOS-specific code, and TSAN is OK on buildbots.
    This might need a backport if a 3.14.1 fix depends on it, but let's close the issue.

  7. encukou
    closed this as completedon Oct 9, 2025
  8. thesamesam commented on Oct 9, 2025

    @thesamesam
    thesamesam
    on Oct 9, 2025
    Contributor
    More actions

    We're having some issues on HPPA with the stack protection code w/ 3.14, I haven't debugged it enough to file a bug (and likely send a patch if it is what I think it is) yet, but backporting changes to the code would be appreciated in case:
    a) it fixes it, and/or
    b) to avoid complications in backporting other fixes,
    if it's known to fix some problem already.

    EDIT: .. that issue is now filed as #139914.

    Reacted by Petr Viktorin
  9. encukou
    added a commit that references this issue on Nov 17, 2025

    pythonGH-139291: Fix C stack limits by factoring out finding hardware…

    0300367
  10. hroncok
    added a commit that references this issue on Nov 24, 2025

    pythonGH-139291: Fix C stack limits by factoring out finding hardware…

    42e7abe
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-macinterpreter-core(Objects, Python, Grammar, and Parser dirs)(Objects, Python, Grammar, and Parser dirs)pendingThe issue will be closed if no feedback is providedThe issue will be closed if no feedback is providedtype-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.