[issue26811] segfault due to null pointer in tuple
Serhiy Storchaka
report at bugs.python.org
Thu Apr 21 04:00:22 EDT 2016
Serhiy Storchaka added the comment:
References:
Issue23910 -- added original optimization (661cdbd617b8).
Issue24276 -- it was significant rewritten (5dbf3d932a59).
My suggestion in msg263886 to revert the optimization was related to the original code. Now, after reminding the background, I think it is worth to keep the optimization and try to fix the code.
Making the cached tuple to save None adds additional complexity and overhead (about 5%). Here is a patch that uses different trick. The size of saved tuple is set to 0.
----------
stage: -> patch review
type: -> crash
Added file: http://bugs.python.org/file42547/property_cached_args_set_size_0.patch
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue26811>
_______________________________________
More information about the Python-bugs-list
mailing list