[issue42887] 100000 assignments of .__sizeof__ cause a segfault on del
Terry J. Reedy
report at bugs.python.org
Fri Jan 15 18:38:39 EST 2021
Terry J. Reedy <tjreedy at udel.edu> added the comment:
Xinmeng, to verify Ronald's explanation, run this instead
mystr = "hello123"
for x in range(1000000):
mystr = mystr.__sizeof__()
input('>') # Hit Enter to continue.
del mystr # Expect crash here.
input('<') # And never get here.
----------
nosy: +terry.reedy
title: Multiple assignments of attribute "__sizeof__" will cause a segfault -> 100000 assignments of .__sizeof__ cause a segfault on del
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue42887>
_______________________________________
More information about the Python-bugs-list
mailing list