python / python/cpython

Excessive stack usage for clang-cl debug builds on Windows

未关闭
#157,789 0 条评论 0 个 reaction 已指派 1 人 在 GitHub 查看

@chris-eibl 已经在做这个了。

开始于 2026年9月19日。

build OS-unsupported OS-windows
主要语言
Python
星标
77.2k
派生
35.9k
PR 合并指标
PR 指标待抓取

描述

test.test_call.TestRecursion.test_margin_is_sufficient fails on the AMD64 Windows Server 2025 Clang 3.14 buildbot.

The table lists safe_margin before it is multiplied, because 3.14 and main use different extra percents
https://github.com/python/cpython/blob/5b343636bae9b89cb5632ca07b01e1570e24653d/Lib/test/test_call.py#L1105-L1107
and _testinternalcapi.get_stack_margin(), which is actually just _PyOS_STACK_MARGIN_BYTES.

branch compiler build safe_margin _PyOS_STACK_MARGIN_BYTES
main MSC v.1951 debug 20080 32768
main clang-cl 22.1.3 debug 26032 32768
main clang-cl 22.1.3 release 1200 16384
3.14 MSC v.1944 debug 23168 32768
3.14 clang-cl 22.1.3 debug 33920 32768
3.14 clang-cl 22.1.3 release 992 16384
3.14 clang-cl 22.1.3 debug with -Og 1536 32768

Using -Og drastically improves stack usage.

Linked PRs
  • gh-157791

贡献指南

打开贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。