[issue11787] File handle leak in TarFile lib

2013-03-04 Thread Ezio Melotti
Ezio Melotti added the comment: Closing as duplicate then. -- resolution: -> duplicate stage: test needed -> committed/rejected status: open -> closed superseder: -> tarfile fails to close file handles in case of exception ___ Python tracker

[issue11787] File handle leak in TarFile lib

2013-03-04 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Actually it was fixed in issue16477. ;) -- ___ Python tracker ___ ___ Python-bugs-list mailing lis

[issue11787] File handle leak in TarFile lib

2013-03-02 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +serhiy.storchaka ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mai

[issue11787] File handle leak in TarFile lib

2011-04-15 Thread Ezio Melotti
Ezio Melotti added the comment: An automated test would be better. It should be enough to create an invalid tar file, do something similar to the snippet in the first message, but checking that an error is raised and that all the files are closed anyway. -- _

[issue11787] File handle leak in TarFile lib

2011-04-15 Thread Éric Araujo
Éric Araujo added the comment: LGTM. Is an automated test really needed, or just a manual run with a pydebug build? -- ___ Python tracker ___ _

[issue11787] File handle leak in TarFile lib

2011-04-14 Thread Ezio Melotti
Ezio Melotti added the comment: Attached trivial patch to fix the issue. Needs tests. -- keywords: +easy, patch nosy: +ezio.melotti stage: -> test needed Added file: http://bugs.python.org/file21668/issue11787.diff ___ Python tracker

[issue11787] File handle leak in TarFile lib

2011-04-09 Thread Lars Gustäbel
Changes by Lars Gustäbel : -- assignee: -> lars.gustaebel ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http

[issue11787] File handle leak in TarFile lib

2011-04-08 Thread Éric Araujo
Éric Araujo added the comment: A try/except/finally construct would probably work. -- nosy: +eric.araujo ___ Python tracker ___ ___ P

[issue11787] File handle leak in TarFile lib

2011-04-06 Thread Ned Deily
Changes by Ned Deily : -- nosy: +lars.gustaebel ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyt

[issue11787] File handle leak in TarFile lib

2011-04-06 Thread Pulin Shah
New submission from Pulin Shah : I ran into a problem the other day while trying to extract a slightly corrupted tar file. I suspect this problem is really only an issue on Windows systems. I am running Python 2.7.1 r271:86832 win32. The following code (simplified) snipet try: tar =