[issue9403] cElementTree: replace PyObject_DEL() by Py_DECREF() to fix a crash in pydebug mode

2012-04-15 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@gmail.com: -- resolution: - wont fix status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9403 ___

[issue9403] cElementTree: replace PyObject_DEL() by Py_DECREF() to fix a crash in pydebug mode

2010-08-12 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: Are there any tests that could be easily added to the test suite? I don't know an easy way to simulate malloc failure. There is the http://www.nongnu.org/failmalloc/ library but I never used it, and I don't think that it's widely

[issue9403] cElementTree: replace PyObject_DEL() by Py_DECREF() to fix a crash in pydebug mode

2010-08-04 Thread Florent Xicluna
Changes by Florent Xicluna florent.xicl...@gmail.com: -- components: +Extension Modules, XML -Library (Lib) nosy: +effbot, flox type: - crash ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9403

[issue9403] cElementTree: replace PyObject_DEL() by Py_DECREF() to fix a crash in pydebug mode

2010-08-04 Thread Florent Xicluna
Changes by Florent Xicluna florent.xicl...@gmail.com: -- stage: - patch review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9403 ___ ___

[issue9403] cElementTree: replace PyObject_DEL() by Py_DECREF() to fix a crash in pydebug mode

2010-08-04 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Looks reasonable. Are there any tests that could be easily added to the test suite? -- nosy: +pitrou versions: +Python 3.1 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9403

[issue9403] cElementTree: replace PyObject_DEL() by Py_DECREF() to fix a crash in pydebug mode

2010-07-28 Thread STINNER Victor
New submission from STINNER Victor victor.stin...@haypocalc.com: PyObject_DEL() should not be used to destroy an object because it will break the linked list of allocated objects, list used in pydebug mode to detect bugs. cElementTree should use Py_DECREF() instead of PyObject_DEL() to destroy