Issue Details (XML | Word | Printable)

Key: MODPYTHON-172
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Unassigned
Reporter: Laurent Blanquet
Votes: 1
Watchers: 1
Operations

If you were logged in you would be able to see more operations.
mod_python

Memory leak with util.fieldstorage using mod_python 3.2.8 on apache 2.0.55

Created: 11/Jun/06 01:48 AM   Updated: 17/Apr/07 10:52 AM
Return to search
Component/s: core
Affects Version/s: 3.2.8
Fix Version/s: 3.2.10, 3.3.1

Time Tracking:
Not Specified

Environment:
Win32 XP SP1 / SP2
Apache 2.0.55 installed from binary (.MSI)
Python 2.4.2 or 2.4.3 installed from binary from www.python.org

Resolution Date: 09/Jul/06 05:12 PM


 Description  « Hide
I encounter memory leaks [~ 16 K per request) using the configuration described below.

=============================
Python configuration from Httpd.conf:
=============================
Alias /python/ "d:/python24/B2B/"
<Directory "d:/python24/B2B">
        AddHandler mod_python .py
        PythonHandler pyHandlerHTTP
        PythonDebug On
</Directory>
=============================
Test handler - pyHandlerHTTP.py :
=============================
import mod_python
from mod_python import util

def handler(req):
      #Removing this line solves the problem.
      F=util.FieldStorage( req )
      return mod_python.apache.OK
=============================
HTTP Request (dump using TCPWATCH):
=============================
POST http://localhost:80/python/Alertes.py HTTP/1.0
Content-Type: multipart/form-data; boundary=--------061006144341906
Content-Length: 209
Proxy-Connection: keep-alive
Host: www.tx2-localhost
Accept: text/html, */*
User-Agent: Mozilla/3.0 (compatible; Indy Library)
Proxy-Authorization: Basic Og==
 
----------061006144341906
Content-Disposition: form-data; name="TYPE"
 
LAST_ALERTS
----------061006144341906
Content-Disposition: form-data; name="FILEAGE"
 
180
 
----------061006144341906



 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
No work has yet been logged on this issue.