[issue9448] test_io leaks memory

2010-08-01 Thread Antoine Pitrou
Antoine Pitrou added the comment: Thanks. Fixed in r83411 (py3k), r83412 (2.7), r83413 (3.1). -- resolution: -> fixed stage: needs patch -> committed/rejected status: open -> closed ___ Python tracker

[issue9448] test_io leaks memory

2010-08-01 Thread Mark Dickinson
Mark Dickinson added the comment: Thanks! That fixes all the test_io leaks I was seeing. -- ___ Python tracker ___ ___ Python-bugs-li

[issue9448] test_io leaks memory

2010-08-01 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- type: behavior -> resource usage versions: +Python 2.6, Python 2.7, Python 3.1 ___ Python tracker ___ __

[issue9448] test_io leaks memory

2010-08-01 Thread Antoine Pitrou
Antoine Pitrou added the comment: Can you try the following patch: diff -r 962e1a7a40fd Modules/_io/bufferedio.c --- a/Modules/_io/bufferedio.c Sun Aug 01 17:30:56 2010 +0200 +++ b/Modules/_io/bufferedio.c Sun Aug 01 18:39:39 2010 +0200 @@ -636,6 +636,8 @@ _buffered_init(buffered *self)

[issue9448] test_io leaks memory

2010-08-01 Thread Mark Dickinson
Mark Dickinson added the comment: Minimal example to reproduce: the script below exhausts my system memory in a minute or two. import io rawio = io.BytesIO(b"abc") bufio = io.BufferedReader(rawio) while True: bufio.__init__(rawio) -- ___ Pytho

[issue9448] test_io leaks memory

2010-08-01 Thread Mark Dickinson
Mark Dickinson added the comment: test_constructor (test.test_io.CBufferedReaderTest) appears to be one of the offending tests. This is probably not an OS X specific problem. Removing 'Mac' from components. -- assignee: ronaldoussoren -> components: -Macintosh

[issue9448] test_io leaks memory

2010-08-01 Thread Mark Dickinson
New submission from Mark Dickinson : regrest -L detects a memory leak in test_io, on OS X 10.6.4. newton:py3k dickinsm$ ./python.exe Lib/test/regrtest.py -L test_io test_io Testing large file ops skipped on darwin. It requires 2147483648 bytes and a long time. Use 'regrtest.py -u largefile tes