Skip to content

[3.15] gh-155109: Run tests exhausting the C stack with a limited C stack (GH-155120) - #155164

Open
miss-islington wants to merge 1 commit into
python:3.15from
miss-islington:backport-ce5ae29-3.15
Open

[3.15] gh-155109: Run tests exhausting the C stack with a limited C stack (GH-155120)#155164
miss-islington wants to merge 1 commit into
python:3.15from
miss-islington:backport-ce5ae29-3.15

Conversation

@miss-islington

@miss-islington miss-islington commented Aug 4, 2026

Copy link
Copy Markdown
Contributor

Add the @support.run_with_limited_c_stack() decorator which runs the test
in a thread with a 8 MiB C stack, so that the outcome does not depend on
RLIMIT_STACK. Use it in tests which recurse to a fixed depth --
@support.skip_if_huge_c_stack() failed to skip them with a 16 MiB stack.
(cherry picked from commit ce5ae29)

Co-authored-by: Serhiy Storchaka storchaka@gmail.com
Co-Authored-By: Claude Opus 5 (1M context) noreply@anthropic.com

…ack (pythonGH-155120)

Add the @support.run_with_limited_c_stack() decorator which runs the test
in a thread with a 8 MiB C stack, so that the outcome does not depend on
RLIMIT_STACK. Use it in tests which recurse to a fixed depth --
@support.skip_if_huge_c_stack() failed to skip them with a 16 MiB stack.
(cherry picked from commit ce5ae29)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants