Author ronaldoussoren
Recipients ronaldoussoren, xxm
Date 2021-07-23.08:48:04
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
The problem is related to recursion, the code basically ends up with an unlimited number of iterations of and test_select_mutated on the call stack and this doesn't trigger the stack depth checker.

The following definition of class F triggers the same error:

    class F:
        def fileno(self):
            return self.fileno()

The call stack behaviour can be observed by using the fault handler (``python3.9 -Xfaulthandler``), although you won't see in the traceback due to it being a C extension function.

Fixing this would basically require adding a stack depth check to the PyObject_Call family of functions.  I don't know if a PR for that would be accepted due to the possible performance impact.
Date User Action Args
2021-07-23 08:48:04ronaldoussorensetrecipients: + ronaldoussoren, xxm
2021-07-23 08:48:04ronaldoussorensetmessageid: <>
2021-07-23 08:48:04ronaldoussorenlinkissue44718 messages
2021-07-23 08:48:04ronaldoussorencreate