
This issue trackerhas been migrated toGitHub, and is currentlyread-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.
Created on2015-05-01 13:56 bypkt, last changed2022-04-11 14:58 byadmin. This issue is nowclosed.
| Files | ||||
|---|---|---|---|---|
| File name | Uploaded | Description | Edit | |
| poc_elt_extend1.py | pkt,2015-05-01 13:56 | |||
| etree_crashes.patch | serhiy.storchaka,2015-05-02 20:34 | review | ||
| Messages (3) | |||
|---|---|---|---|
| msg242305 -(view) | Author: paul (pkt) | Date: 2015-05-01 13:56 | |
# 1055 for (i = 0; i < seqlen; i++) {# (gdb) n# 1056 PyObject* element = PySequence_Fast_GET_ITEM(seq, i);# (gdb) n# 1057 if (!PyObject_IsInstance(element, (PyObject *)&Element_Type)) {# (gdb) print *element# $19 = {_ob_next = 0x4060e6fc, _ob_prev = 0x4056cd8c, ob_refcnt = 1, ob_type = 0x406de3e4}# (gdb) n# 1066 if (element_add_subelement(self, element) < 0) {# (gdb) print *element# $20 = {_ob_next = 0xdbdbdbdb, _ob_prev = 0xdbdbdbdb, ob_refcnt = -606348325, ob_type = 0xdbdbdbdb}# # Fatal Python error: /home/p/Python-3.4.1/Modules/_elementtree.c:267 object at 0x4056c4cc has negative ref count -606348326# # "element" is removed in __getattribute__ method. | |||
| msg242430 -(view) | Author: Serhiy Storchaka (serhiy.storchaka)*![]() | Date: 2015-05-02 20:34 | |
Here is a patch that fixesissue24091,issue24092,issue24093, and several other similar bugs. | |||
| msg243489 -(view) | Author: Roundup Robot (python-dev)![]() | Date: 2015-05-18 15:34 | |
New changeset34523e53a342 by Serhiy Storchaka in branch '2.7':Issue#24091: Fixed various crashes in corner cases in cElementTree.https://hg.python.org/cpython/rev/34523e53a342New changeset157c4afca186 by Serhiy Storchaka in branch '3.4':Issue#24091: Fixed various crashes in corner cases in C implementation ofhttps://hg.python.org/cpython/rev/157c4afca186New changeseta8b8d1b211fe by Serhiy Storchaka in branch 'default':Issue#24091: Fixed various crashes in corner cases in C implementation ofhttps://hg.python.org/cpython/rev/a8b8d1b211fe | |||
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2022-04-11 14:58:16 | admin | set | github: 68279 |
| 2015-05-19 12:51:10 | serhiy.storchaka | set | status: open -> closed resolution: fixed stage: patch review -> resolved |
| 2015-05-18 15:34:13 | python-dev | set | nosy: +python-dev messages: +msg243489 |
| 2015-05-03 06:43:47 | Arfrever | set | nosy: +Arfrever |
| 2015-05-02 20:36:29 | serhiy.storchaka | link | issue24093 superseder |
| 2015-05-02 20:36:24 | serhiy.storchaka | link | issue24092 superseder |
| 2015-05-02 20:34:44 | serhiy.storchaka | set | files: +etree_crashes.patch versions: + Python 3.5 messages: +msg242430 assignee:serhiy.storchaka keywords: +patch stage: patch review |
| 2015-05-01 14:12:23 | christian.heimes | set | nosy: +christian.heimes |
| 2015-05-01 14:00:46 | serhiy.storchaka | set | nosy: +scoder,eli.bendersky,serhiy.storchaka components: + Extension Modules, XML |
| 2015-05-01 13:56:07 | pkt | create | |