Andrew Svetlov added the comment: Bug can be reproduced if _PyBytes_Resize fails with out-of-memory error than NULL object decrefed. Buggy modules are _io, binascii and zlib.
3.4 hasn't the problem. Patch for 3.3 is attached. Fix goes to mimic 3.4 -- (replace Py_DECREF with Py_CLEAR), while for _PyBytes_Resize that does not make sense, object has been set to NULL inside _PyBytes_Resize on fail. Also 2.7 has the same issue for _PyString_Resize calls. ---------- components: +Extension Modules -Interpreter Core keywords: +patch versions: +Python 2.7 Added file: http://bugs.python.org/file33791/issue20434.diff _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue20434> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com