Ronald Oussoren added the comment:
The problem is related to recursion, the code basically ends up with an
unlimited number of iterations of select.select and test_select_mutated on the
call stack and this doesn't trigger the stack depth checker.
The following definition of class F triggers
New submission from Xinmeng Xia :
The following program can trigger segfault on all releases of Python. I think
it may be caused by incorrect arguments.
Version of Python: 3.6 - master(3.11.0a0)
system: ubuntu 16.04
test.py
import select
def test_select_muta