[issue30570] issubclass segfaults on objects with weird __getattr__

Gregory P. Smith report at bugs.python.org
Sun Oct 17 20:48:46 EDT 2021


Gregory P. Smith <greg at krypto.org> added the comment:

This is a stack overflow in Objects/abstract.c because we infinitely recurse within abstract_issubclass().

We should probably do some validity checking on the bases tuple that abstract_get_bases returns (ideally within abstract_get_bases?).  The tuple must contain types.

----------
nosy: +gregory.p.smith

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue30570>
_______________________________________


More information about the Python-bugs-list mailing list