Excessive stack usage for clang-cl debug builds on Windows

未關閉
#157,789 0 則留言 0 個 reaction 已指派 1 人 在 GitHub 檢視

@chris-eibl 已經在處理了。

開始於 2026年9月19日。

評估

這個 Issue 還沒有評估資料。

描述

build OS-unsupported OS-windows

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
主要語言
Python
星號
77.2k
分支
36k
平均合併
1 天 9 小時
30 天內合併 PR
558

貢獻指南

開啟貢獻指南

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

python/cpython 的其他 Issue

查看 python/cpython 的全部 Issue

相似的 Issue

更多 Python Issue

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。