[issue15394] memory leak in PyModule_Create2
New submission from Julia Lawall : In objects/moduleobject.c, in the function PyModule_Create2, it appears that m should be decrefed on all of the failure paths between its allocation and the return from the function. -- files: moduleobject.patch keywords: patch messages: 165838 nosy: jll priority: normal severity: normal status: open title: memory leak in PyModule_Create2 type: resource usage versions: Python 3.2 Added file: http://bugs.python.org/file26435/moduleobject.patch ___ Python tracker <http://bugs.python.org/issue15394> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15395] memory leaks in selectmodule.c
New submission from Julia Lawall : In Modules/selectmodule.c, in the function seq2set, fast_seq should be decrefd on failure of the initialization of o. This will make a useless call to DECREF on o, but XDECREF is already used, so it is safe in the NULL case. In the same file, in the function poll_modify, key should be decrefed on all execution paths that lead out of the function. -- files: selectmodule.patch keywords: patch messages: 165840 nosy: jll priority: normal severity: normal status: open title: memory leaks in selectmodule.c type: resource usage versions: Python 3.2 Added file: http://bugs.python.org/file26436/selectmodule.patch ___ Python tracker <http://bugs.python.org/issue15395> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15396] memory leak in tkinter
New submission from Julia Lawall : In the file Modules/_tkinter.c, in the function PyInit__tkinter, m should be decrefed on the PyType_Ready error path. -- files: tkinter.patch keywords: patch messages: 165842 nosy: jll priority: normal severity: normal status: open title: memory leak in tkinter type: resource usage versions: Python 3.2 Added file: http://bugs.python.org/file26437/tkinter.patch ___ Python tracker <http://bugs.python.org/issue15396> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15396] memory leak in tkinter
Julia Lawall added the comment: On Thu, 19 Jul 2012, Jesús Cea Avión wrote: > > Jesús Cea Avión added the comment: > > Thanks for the patch, Julia, and for submitting the contributor form. I have > added you too to the "Doc/ACKS.txt" file. > > I wonder how you found this... My PhD student Suman Saha has developed a tool that finds faults in error handling code by checking whether the error handling code within a function is self-consistent. So if one failure branch frees x, and the next one does not, there is a problem, unless x was freed along the way. A preliminary description of the work is in the following paper: S. Saha, Julia L. Lawall, G. Muller : “Finding Resource-Release Omission Faults in Linux”, 6th Workshop on Programming Languages and Operating Systems, Cascais, Portugal (2011) http://pagesperso-systeme.lip6.fr/Suman.Saha/src/plos11.pdf That paper just has results for Linux, but we are working on applying it to other software, including python. julia -- ___ Python tracker <http://bugs.python.org/issue15396> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com