Skip to content

[3.15] gh-151546: Fix stack limits on musl (#151548) - #151583

Merged
vstinner merged 1 commit into
python:3.15from
vstinner:stack_size15
Jun 17, 2026
Merged

vstinner merged 1 commit into
python:3.15from
vstinner:stack_size15

Conversation

@vstinner

@vstinner vstinner commented Jun 17, 2026 •

Copy link
Copy Markdown
Member

If the thread stack size is set by linker flags, pass the stack size to Python/ceval.c via the new _Py_LINKER_THREAD_STACK_SIZE variable to set Py_C_STACK_SIZE macro.

(cherry picked from commit 9a61d1c)

If the thread stack size is set by linker flags, pass the stack size
to Python/ceval.c via the new _Py_LINKER_THREAD_STACK_SIZE variable
to set Py_C_STACK_SIZE macro.

(cherry picked from commit 9a61d1c)
@vstinner vstinner added the needs backport to 3.14 bugs and security fixes label Jun 17, 2026
@vstinner
vstinner merged commit a5c5edd into python:3.15 Jun 17, 2026
60 checks passed
@vstinner
vstinner deleted the stack_size15 branch June 17, 2026 09:13
@miss-islington-app

Copy link
Copy Markdown

Thanks @vstinner for the PR 🌮🎉.. I'm working now to backport this PR to: 3.14.
🐍🍒⛏🤖

@miss-islington-app

Copy link
Copy Markdown

Sorry, @vstinner, I could not cleanly backport this to 3.14 due to a conflict.
Please backport using cherry_picker on command line.

cherry_picker a5c5edddbc3ca7192c057f65fb3a8ff4ea360f96 3.14
@bedevere-app

bedevere-app Bot commented Jun 17, 2026

Copy link
Copy Markdown

GH-151591 is a backport of this pull request to the 3.14 branch.

@bedevere-app bedevere-app Bot removed the needs backport to 3.14 bugs and security fixes label Jun 17, 2026
vstinner added a commit that referenced this pull request Jun 17, 2026
[3.15] gh-151546: Fix stack limits on musl (#151548) (#151583)

gh-151546: Fix stack limits on musl (#151548)

If the thread stack size is set by linker flags, pass the stack size
to Python/ceval.c via the new _Py_LINKER_THREAD_STACK_SIZE variable
to set Py_C_STACK_SIZE macro.

(cherry picked from commit 9a61d1c)
(cherry picked from commit a5c5edd)

@TheDegenerateDev5150 TheDegenerateDev5150 left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👌🏻

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants