This issue tracker has been migrated to GitHub ,
and is currently read-only.
For more information,
see the GitHub FAQs in the Python's Developer Guide.
Created on 2015年05月01日 13:58 by pkt, last changed 2022年04月11日 14:58 by admin. This issue is now closed.
| Files | ||||
|---|---|---|---|---|
| File name | Uploaded | Description | Edit | |
| poc_elt_remove.py | pkt, 2015年05月01日 13:58 | |||
| Messages (2) | |||
|---|---|---|---|
| msg242307 - (view) | Author: paul (pkt) | Date: 2015年05月01日 13:58 | |
# Program received signal SIGABRT, Aborted. # 0x40022424 in __kernel_vsyscall () # (gdb) bt # #0 0x40022424 in __kernel_vsyscall () # #1 0x400bb1df in raise () from /lib/i386-linux-gnu/libc.so.6 # #2 0x400be825 in abort () from /lib/i386-linux-gnu/libc.so.6 # #3 0x08067030 in Py_FatalError ( # msg=0xbfed7a20 "/home/p/Python-3.4.1/Modules/_elementtree.c:1436 object at 0x405743ec has negative ref count -606348326") # at Python/pythonrun.c:2633 # #4 0x080f1374 in _Py_NegativeRefcount (fname=0x40646100 "/home/p/Python-3.4.1/Modules/_elementtree.c", lineno=1436, # op=<unknown at remote 0x405743ec>) at Objects/object.c:203 # #5 0x4063dfa6 in element_remove (self=0x40583c34, args=(<xml.etree.ElementTree.Element at remote 0x40583bb4>,)) # at /home/p/Python-3.4.1/Modules/_elementtree.c:1436 # (gdb) frame 5 # #5 0x4063dfa6 in element_remove (self=0x40583c34, args=(<xml.etree.ElementTree.Element at remote 0x40583bb4>,)) # at /home/p/Python-3.4.1/Modules/_elementtree.c:1436 # 1436 Py_DECREF(self->extra->children[i]); # (gdb) print i # 1ドル = 1 # (gdb) print *(PyObject*)self->extra->children # 3ドル = {_ob_next = 0x4057437c, _ob_prev = 0x405743ec, ob_refcnt = 1079461180, ob_type = 0x4057461c} # # Fatal Python error: /home/p/Python-3.4.1/Modules/_elementtree.c:1436 object at 0x405743ec has negative ref count -606348326 # # "self->extra->children" is cleared in custom __eq__ method. Py_DECREF handles # stale pointer. Use after free. # |
|||
| msg242432 - (view) | Author: Serhiy Storchaka (serhiy.storchaka) * (Python committer) | Date: 2015年05月02日 20:36 | |
The patch for issue24091 fixes this issue. |
|||
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2022年04月11日 14:58:16 | admin | set | github: 68281 |
| 2015年05月03日 06:44:43 | Arfrever | set | nosy:
+ Arfrever |
| 2015年05月02日 20:36:29 | serhiy.storchaka | set | status: open -> closed superseder: Use after free in Element.extend (1) messages: + msg242432 resolution: duplicate stage: resolved |
| 2015年05月02日 04:46:44 | serhiy.storchaka | set | nosy:
+ scoder, eli.bendersky, serhiy.storchaka |
| 2015年05月01日 14:11:38 | christian.heimes | set | nosy:
+ christian.heimes components: + Extension Modules versions: + Python 3.5 |
| 2015年05月01日 13:58:08 | pkt | create | |