GH-130396: Use computed stack limits on linux#130398
GH-130396: Use computed stack limits on linux#130398markshannon merged 22 commits intopython:mainfrom
Conversation
ec4cc83 to
6b48afe
Compare
|
!buildbot .* |
|
🤖 New build scheduled with the buildbot fleet by @markshannon for commit 12f9ce7 🤖 Results will be shown at: https://buildbot.python.org/all/#/grid?branch=refs%2Fpull%2F130398%2Fmerge The command will test the builders whose names match following regular expression: The builders matched are:
|
brandtbucher
left a comment
There was a problem hiding this comment.
I'm definitely not an expert in this particular area, but the changes seem reasonable (provided the buildbots are happy).
| * no two calls to check recursion depth are more than this far | ||
| * apart. In practice, that means it must be larger than the C | ||
| * stack consumption of PyEval_EvalDefault */ |
There was a problem hiding this comment.
This seems sort of fragile? What if there's a ton of unrelated C calls (maybe from a C extension) between two interpreter entries? Does that cause this to be incorrect?
There was a problem hiding this comment.
Any C code that can recurse needs to do checks.
We already do that in plenty of places, like the parser, compiler, json encoding, etc.
C extensions should do it too.
|
Ignoring prior failures and timesouts, the buildbot fialures are webassembly stack overflows and a couple of odd AIX failures. |
Misc/NEWS.d/next/Core_and_Builtins/2025-02-21-11-12-41.gh-issue-130396.SIenSP.rst
Outdated
Show resolved
Hide resolved
Misc/NEWS.d/next/Core_and_Builtins/2025-02-21-11-12-41.gh-issue-130396.SIenSP.rst
Outdated
Show resolved
Hide resolved
|
!buildbot was[i|m] |
|
🤖 New build scheduled with the buildbot fleet by @markshannon for commit f6002e5 🤖 Results will be shown at: https://buildbot.python.org/all/#/grid?branch=refs%2Fpull%2F130398%2Fmerge The command will test the builders whose names match following regular expression: The builders matched are:
|
|
!buildbot AIX |
|
🤖 New build scheduled with the buildbot fleet by @markshannon for commit f6002e5 🤖 Results will be shown at: https://buildbot.python.org/all/#/grid?branch=refs%2Fpull%2F130398%2Fmerge The command will test the builders whose names match following regular expression: The builders matched are:
|
|
🤖 New build scheduled with the buildbot fleet by @markshannon for commit 415906c 🤖 Results will be shown at: https://buildbot.python.org/all/#/grid?branch=refs%2Fpull%2F130398%2Fmerge The command will test the builders whose names match following regular expression: The builders matched are:
|
|
!buildbot iOS |
|
🤖 New build scheduled with the buildbot fleet by @markshannon for commit 415906c 🤖 Results will be shown at: https://buildbot.python.org/all/#/grid?branch=refs%2Fpull%2F130398%2Fmerge The command will test the builders whose names match following regular expression: The builders matched are:
|
|
Compilation failures on both AIX buildbots, but unrelated to this PR. |
|
!buildbot wasm |
|
🤖 New build scheduled with the buildbot fleet by @markshannon for commit 415906c 🤖 Results will be shown at: https://buildbot.python.org/all/#/grid?branch=refs%2Fpull%2F130398%2Fmerge The command will test the builders whose names match following regular expression: The builders matched are:
|
|
!buildbot iOS |
|
🤖 New build scheduled with the buildbot fleet by @markshannon for commit b3ccffc 🤖 Results will be shown at: https://buildbot.python.org/all/#/grid?branch=refs%2Fpull%2F130398%2Fmerge The command will test the builders whose names match following regular expression: The builders matched are:
|
|
!buildbot iOS |
|
🤖 New build scheduled with the buildbot fleet by @markshannon for commit a2c1656 🤖 Results will be shown at: https://buildbot.python.org/all/#/grid?branch=refs%2Fpull%2F130398%2Fmerge The command will test the builders whose names match following regular expression: The builders matched are:
|
|
!buildbot wasm |
|
🤖 New build scheduled with the buildbot fleet by @markshannon for commit a2c1656 🤖 Results will be shown at: https://buildbot.python.org/all/#/grid?branch=refs%2Fpull%2F130398%2Fmerge The command will test the builders whose names match following regular expression: The builders matched are:
|
|
!buildbot wasm |
|
🤖 New build scheduled with the buildbot fleet by @markshannon for commit a2c1656 🤖 Results will be shown at: https://buildbot.python.org/all/#/grid?branch=refs%2Fpull%2F130398%2Fmerge The command will test the builders whose names match following regular expression: The builders matched are:
|
|
|
|
FYI, this introduced a new warning in MSVC: so I don't think the attempts to hide the taking of the address of the stack variable work on MSVC. |
Technically, not just linux, but any platform with
pthread_getattr_np.