[XML-SIG] [ pyxml-Bugs-733890 ] Memory Leak in expatparser.py

SourceForge.net noreply@sourceforge.net
Wed, 07 May 2003 07:06:32 -0700


Bugs item #733890, was opened at 2003-05-07 10:06
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=106473&aid=733890&group_id=6473

Category: SAX
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Mark Bucciarelli (mbucc)
Assigned to: Nobody/Anonymous (nobody)
Summary: Memory Leak in expatparser.py

Initial Comment:
Looks like there is a bound-function loop created in 
ExpatReader.reset() method. 
 
I've attached a script that demonstrates the leak as well as a work 
around. 
 
Here are some comments from pywebsvcs bug #585837 on 
sourceforge: 
 
... printing out the contents of gc.garbage shows  
 
 <bound method ExpatParser.start_element_ns of 
<xml.sax.expatreader.ExpatParser instance at 
0x816b17c>>, 
 <bound method ExpatParser.end_element_ns of 
<xml.sax.expatreader.ExpatParser instance at 
0x816b17c>>, 
 

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

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=106473&aid=733890&group_id=6473