[issue5596] memory leaks in 3.1

2009-06-12 Thread Alexandre Vassalotti

Alexandre Vassalotti alexan...@peadrop.com added the comment:

These tests are leaking on my build of r73393:

test_docxmlrpc leaked [0, 0, 85, 0, 0, -85, 0, 0, 0, 0] references, sum=0
test_popen leaked [0, 23, -23, 0, 23, 0, -23, 23, -23, 23] references,
sum=23
test_urllib leaked [4, 4, 4, 4, 6, 0, 0, 0, 2, 0] references, sum=24
test_urllib2_localnet leaked [0, 0, 0, 0, 0, 0, 251, -250, 0, 0]
references, sum=1
test_os leaked [0, -26, 26, 0, -26, 26, 0, 23, 0, 0] references, sum=23

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5596
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue5596] memory leaks in 3.1

2009-05-28 Thread R. David Murray

Changes by R. David Murray rdmur...@bitdance.com:


--
nosy: +r.david.murray

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5596
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue5596] memory leaks in 3.1

2009-05-24 Thread Antoine Pitrou

Antoine Pitrou pit...@free.fr added the comment:

Current results:

test_modulefinder leaked [145, 145] references, sum=290
test_urllib leaked [10, 0] references, sum=10
test_urllib2 leaked [227, 227] references, sum=454

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5596
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue5596] memory leaks in 3.1

2009-05-11 Thread R. David Murray

Changes by R. David Murray rdmur...@bitdance.com:


--
dependencies: +test_urlllib2_localnet DigestAuthHandler leaks nonces

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5596
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue5596] memory leaks in 3.1

2009-05-10 Thread Antoine Pitrou

Antoine Pitrou pit...@free.fr added the comment:

New results:

test_os leaked [1, 1] references, sum=2
test_urllib leaked [4, 2] references, sum=6
test_urllib2 leaked [227, 227] references, sum=454
test_urllib2_localnet leaked [3, 3] references, sum=6

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5596
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue5596] memory leaks in 3.1

2009-05-10 Thread Antoine Pitrou

Changes by Antoine Pitrou pit...@free.fr:


--
dependencies: +Memory leak in os.rename() and other functions

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5596
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue5596] memory leaks in 3.1

2009-05-01 Thread Antoine Pitrou

Changes by Antoine Pitrou pit...@free.fr:


Removed file: http://bugs.python.org/file13459/py3k_fix_leak_of_fileio.patch

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5596
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue5596] memory leaks in 3.1

2009-05-01 Thread Antoine Pitrou

Changes by Antoine Pitrou pit...@free.fr:


Removed file: 
http://bugs.python.org/file13460/py3k_fix_leak_of_test_socket.patch

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5596
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue5596] memory leaks in 3.1

2009-05-01 Thread Antoine Pitrou

Antoine Pitrou pit...@free.fr added the comment:

Current status here:

test_multiprocessing leaked [24, 0] references, sum=24
test_urllib2 leaked [227, 227] references, sum=454
test_urllib2_localnet leaked [3, 3] references, sum=6

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5596
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue5596] memory leaks in 3.1

2009-04-04 Thread Alexandre Vassalotti

Alexandre Vassalotti alexan...@peadrop.com added the comment:

I have the following tests leaking on my Linux build of py3k:


test_structmembers leaked [102, 102, 102] references, sum=306
test_structmembers leaked [102, 102, 102] references, sum=306
test_structmembers leaked [102, 102, 102, 102] references, sum=408
test_structmembers leaked [102, 102, 102, 102] references, sum=408
test_structmembers leaked [102, 102, 102, 102] references, sum=408
test_structmembers leaked [102, 102, 102, 102] references, sum=408
test_structmembers leaked [102, 102, 102, 102] references, sum=408
test_structmembers leaked [102, 102, 102, 102] references, sum=408
test_structmembers leaked [17, 17, 17, 17] references, sum=68
test_structmembers leaked [102, 102, 102, 102] references, sum=408
test_structmembers leaked [102, 102, 102, 102] references, sum=408
test_structmembers leaked [102, 102, 102, 102] references, sum=408
test_structmembers leaked [102, 102, 102, 102, 102, 102] references, sum=612
test_structmembers leaked [106, 102, 102] references, sum=310
test_structmembers leaked [102, 102, 102] references, sum=306
test_structmembers leaked [106, 102, 102] references, sum=310
test_structmembers leaked [106, 102, 102] references, sum=310
test_docxmlrpc leaked [166, -251, 0] references, sum=-85
test_httpservers leaked [-195, 0, 0] references, sum=-195
test_os leaked [0, 0, 23] references, sum=23
test_popen leaked [-23, 23, -23] references, sum=-23
test_telnetlib leaked [0, 0, 84] references, sum=84
test_threading leaked [-119, 119, -28] references, sum=-28
test_urllib2 leaked [227, 227, 227] references, sum=681
test_urllib2_localnet leaked [-251, 3, 3] references, sum=-245

--
nosy: +alexandre.vassalotti

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5596
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue5596] memory leaks in 3.1

2009-04-04 Thread Antoine Pitrou

Antoine Pitrou pit...@free.fr added the comment:

Strange, I don't see any leaks in test_structmembers here.

test_structmembers
beginning 9 repetitions
123456789
.
1 test OK.
[89785 refs]

This is with r71202 on a 64-bit build.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5596
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue5596] memory leaks in 3.1

2009-04-04 Thread Alexandre Vassalotti

Alexandre Vassalotti alexan...@peadrop.com added the comment:

Dismiss my last comment. These are the tests actually leaking for my build: 

test_docxmlrpc leaked [85, -6, 0, 39] references, sum=118
test_httpservers leaked [-195, 195, 0, 64] references, sum=64
test_os leaked [23, -23, 0, 23] references, sum=23
test_pipes leaked [0, 0, 0, -23] references, sum=-23
test_popen leaked [0, -23, 0, 0] references, sum=-23
test_urllib2 leaked [227, 227, 227, 227] references, sum=908
test_urllib2_localnet leaked [3, 3, 3, 3] references, sum=12

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5596
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue5596] memory leaks in 3.1

2009-03-30 Thread Hirokazu Yamamoto

Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp added the comment:

About test_urllib2_localnet, this leak happens because FakeProxyHandler
has class variable digest_auth_handler and its instance variables are
modified. Following workaround can fix this leak, but I'm not sure this
can be committed.

Index: Lib/test/test_urllib2_localnet.py
===
--- Lib/test/test_urllib2_localnet.py   (revision 70694)
+++ Lib/test/test_urllib2_localnet.py   (working copy)
@@ -241,6 +241,7 @@
 
 def tearDown(self):
 self.server.stop()
+FakeProxyHandler.digest_auth_handler.__init__()
 
 def test_proxy_with_bad_password_raises_httperror(self):
 self._digest_auth_handler.add_password(self.REALM, self.URL,

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5596
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue5596] memory leaks in 3.1

2009-03-29 Thread Antoine Pitrou

New submission from Antoine Pitrou pit...@free.fr:

A couple of tests exhibit some memory leaks in the py3k branch (when
invoked with -R 3:2).

test_asyncore leaked [-78, 0] references, sum=-78
test_fileio leaked [1, 1] references, sum=2
test_httpservers leaked [-210, 157] references, sum=-53
test_socket leaked [8, 210] references, sum=218
test_urllib2 leaked [227, 227] references, sum=454
test_urllib2_localnet leaked [5, 4] references, sum=9

I'm filing this as critical so that we keep track of it, but it doesn't
look severe in itself (ISTR we actually had more leaks in 3.0).

--
components: Extension Modules, Interpreter Core
messages: 84403
nosy: pitrou
priority: critical
severity: normal
stage: needs patch
status: open
title: memory leaks in 3.1
type: resource usage
versions: Python 3.1

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5596
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue5596] memory leaks in 3.1

2009-03-29 Thread Hirokazu Yamamoto

Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp added the comment:

I hope attached patch will fix test_fileio leak.

--
keywords: +patch
nosy: +ocean-city
Added file: http://bugs.python.org/file13459/py3k_fix_leak_of_fileio.patch

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5596
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue5596] memory leaks in 3.1

2009-03-29 Thread Hirokazu Yamamoto

Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp added the comment:

I hope attached patch will fix leak of test_socket.py.

Leak is happening in FileObjectClassTestCase#testFullRead and
testCloseAfterMakefile. (actually, IOBase#readall)

--
Added file: http://bugs.python.org/file13460/py3k_fix_leak_of_test_socket.patch

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5596
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue5596] memory leaks in 3.1

2009-03-29 Thread Antoine Pitrou

Antoine Pitrou pit...@free.fr added the comment:

Applied in r70690, thanks!

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5596
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue5596] memory leaks in 3.1

2009-03-29 Thread Antoine Pitrou

Antoine Pitrou pit...@free.fr added the comment:

The only remaining leaks now are:

test_urllib2 leaked [227, 227] references, sum=454
test_urllib2_localnet leaked [3, 3] references, sum=6

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5596
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com