[issue29347] Python 2.7.8 is crashing while creating weakref for a given object.

Saida Dhanavath report at bugs.python.org
Mon Jan 23 16:06:16 EST 2017


Saida Dhanavath added the comment:

Hi Christian Heimes,


PFA. I have written a some code to simulate and test PyWeakReference struct instantion and then hit segfault based on flag passed-in to C code. Here I am trying to execute some of the operations from new_weakref and dealloc_weakref of Objects/weakrefobject.c to show that new isntance of PyWeakReference is not initialized properly. Have also checked latest 3.6 source and there is no difference in alloc and dealloc routines of 2.7.8 and 3.6.0. Have run test code on 2.7.8, 2.7.12+, 3.4m and 3.5m interpreters and got segfault in all runs.

----------
Added file: http://bugs.python.org/file46396/crash_in_weakref.zip

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue29347>
_______________________________________


More information about the Python-bugs-list mailing list