[issue17922] Crash in clear_weakref

Antoine Pitrou report at bugs.python.org
Tue May 7 14:11:22 CEST 2013


Antoine Pitrou added the comment:

> Debugging with gdb is quite a problem, I have gdb linked with distribution Python
> 2.7.4 and it doesn't cooperate with my custom built python, which I have in
> LD_LIBRARY_PATH

Ok. Still, you should be able to inspect the variables at the crash point. Could you try to inspect the `self` variable inside weakref_dealloc, especially `self->wr_object` and its Py_TYPE() value? Also, what is the value of Py_REFCNT(self->wr_object)?

AFAICT, the only reason GET_WEAKREFS_LISTPTR() may crash is because of an invalid Py_TYPE(). Which should never happen.

----------

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


More information about the Python-bugs-list mailing list