[issue33930] Segfault with deep recursion into object().__dir__

2018-06-21 Thread Alistair Buxton
New submission from Alistair Buxton : The following small snippet of code will crash 3.6.5 with a segfault. The crash occurs at cleanup, so it won't happen in the interactive interpreter (until you exit). # --- code --- o = object() for x in range(100): o = o.__dir__ pr

[issue33930] Segfault with deep recursion into object().__dir__

2018-06-26 Thread Alistair Buxton
Alistair Buxton added the comment: I found this while chatting on IRC about the implementation details of objects - specifically, since objects have a dict of attributes, and dict subclasses object, it seems like every dict will have another dict inside it. (Eventually someone explained