New submission from Alistair Buxton <[email protected]>:
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(1000000):
o = o.__dir__
print(x, id(o.__dir__))
# --- end code ---
----------
components: Interpreter Core
messages: 320167
nosy: a-j-buxton
priority: normal
severity: normal
status: open
title: Segfault with deep recursion into object().__dir__
type: crash
versions: Python 3.6
_______________________________________
Python tracker <[email protected]>
<https://bugs.python.org/issue33930>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com