Skip to content

gh-86901: Convert trace_at_recursion_limit.py crasher into a test - #163119

Merged
StanFromIreland merged 3 commits into
python:mainfrom
maurycy:remove-trace-recursion-crasher
Dec 5, 2026
Merged

StanFromIreland merged 3 commits into
python:mainfrom
maurycy:remove-trace-recursion-crasher

Conversation

@maurycy

@maurycy maurycy commented Dec 3, 2026 •

Copy link
Copy Markdown
Contributor

No segfault anymore:

[1] 2026-12-03T23:25:31.588608000+0100 maurycy@gimel /Users/maurycy/src/github.com/maurycy/cpython (main 2424c1d) % uv run --python 3.15 python Lib/test/crashers/trace_at_recursion_limit.py > /dev/null 
Traceback (most recent call last):
  File "/Users/maurycy/src/github.com/maurycy/cpython/Lib/test/crashers/trace_at_recursion_limit.py", line 27, in <module>
    f()
    ~^^
  File "/Users/maurycy/src/github.com/maurycy/cpython/Lib/test/crashers/trace_at_recursion_limit.py", line 23, in f
    f()
    ~^^
  File "/Users/maurycy/src/github.com/maurycy/cpython/Lib/test/crashers/trace_at_recursion_limit.py", line 23, in f
    f()
    ~^^
  File "/Users/maurycy/src/github.com/maurycy/cpython/Lib/test/crashers/trace_at_recursion_limit.py", line 23, in f
    f()
    ~^^
  [Previous line repeated 995 more times]
  File "/Users/maurycy/src/github.com/maurycy/cpython/Lib/test/crashers/trace_at_recursion_limit.py", line 21, in f
    def f():
    
RecursionError: maximum recursion depth exceeded
[1] 2026-12-03T23:25:41.543565000+0100 maurycy@gimel /Users/maurycy/src/github.com/maurycy/cpython (main 2424c1d) % echo $?
1

The original report, #50966, was closed. Add a test by following the crashers' README.

The crash was fixed by 4e7a69b (bpo-42500, 3.10.0a3, backported to 3.9). The parent ( 93a0ef7) still dies with Fatal Python error.

@maurycy

maurycy commented Dec 3, 2026

Copy link
Copy Markdown
Contributor Author

@maurycy maurycy changed the title gh-86901: Remove outdated crasher trace_at_recursion_limit.py gh-86901: Convert trace_at_recursion_limit.py crasher into a test Dec 3, 2026
@StanFromIreland

Copy link
Copy Markdown
Member

Out of curiosity, have you bisected the fix? Maybe it was 4e7a69b ?

@maurycy

maurycy commented Dec 4, 2026 •

Copy link
Copy Markdown
Contributor Author

@StanFromIreland Wow, that's the one; 93a0ef7 (parent) dies w/ Fatal Python error. I wasn't sure, the web of PRs and issues there is not obvious. I have updated the PR description. Thank you.

@StanFromIreland
StanFromIreland merged commit 7d6e165 into python:main Dec 5, 2026
57 checks passed
@maurycy
maurycy deleted the remove-trace-recursion-crasher branch December 5, 2026 11:48
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