[Python-bugs-list] [ python-Bugs-489671 ] memory leak in test_richcmp

noreply@sourceforge.net noreply@sourceforge.net
Thu, 06 Dec 2001 12:31:16 -0800


Bugs item #489671, was opened at 2001-12-05 18:44
You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=489671&group_id=5470

Category: Python Interpreter Core
Group: Python 2.2
Status: Open
Resolution: None
Priority: 5
Submitted By: Neal Norwitz (nnorwitz)
Assigned to: Guido van Rossum (gvanrossum)
Summary: memory leak in test_richcmp

Initial Comment:
leak when running test_richcmp

see attached file for details


----------------------------------------------------------------------

>Comment By: Guido van Rossum (gvanrossum)
Date: 2001-12-06 12:31

Message:
Logged In: YES 
user_id=6380

Boiled down to this test case:


| class C: # new-style class leaks too
| 
|     def foo(self):
|         (self, 1/0) # This leaks
|         1/0 # This doesn't
| 
| while 1:
|     a = C()
|     try:
|         a.foo() # This leaks
|         (a, 1/0) # This doesn't
|     except:
|         pass


----------------------------------------------------------------------

Comment By: Jeremy Hylton (jhylton)
Date: 2001-12-06 07:56

Message:
Logged In: YES 
user_id=31392

It's specifically the testvector() function that causes the
leak in test_richcmp.


----------------------------------------------------------------------

You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=489671&group_id=5470