Closed
Labels
OS-iosOS-linuxOS-mactopic-free-threadingtype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error
Description
Bug report
Running the Python test suite on macOS on Linux in single-process, non-randomised order, using a free-threaded build, generates test failures - the tests:
test.test_functools.TestLRUPy.test_lru_recursiontest_pickle(68 failures)
all raise RecursionError. The failures are not seen if you run each test in isolation, or if you run the test suite in multi-process mode.
Reproduction:
$ configure --disable-gil
$ make
$ ./python.exe -m test --fast-ci --single-process --no-randomize
I found these failures while trying to set up a free threading build for iOS.
CPython versions tested on:
CPython main branch
Operating systems tested on:
macOS
Linked PRs
Metadata
Metadata
Assignees
Labels
OS-iosOS-linuxOS-mactopic-free-threadingtype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error
Activity
freakboy3742 commentedon Oct 13, 2026
For posterity - a simplified reproduction case (extracted from #159293) is:
gh-159293: Restore the recursion limit after the free-threading race …
[3.14] gh-159293: Restore the recursion limit after the free-threadin…
[3.15] gh-159293: Restore the recursion limit after the free-threadin…