quetz-mod_python-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Graham Dumpleton <grah...@dscpl.com.au>
Subject Re: [jira] Commented: (MODPYTHON-172) Memory leak with util.fieldstorage using mod_python 3.2.8 on apache 2.0.55
Date Fri, 07 Jul 2006 22:56:44 GMT

On 08/07/2006, at 3:06 AM, Jim Gallacher wrote:

> Hi Harold,
>
> I just wanted to let you know you are not being ignored. I just need
> some free time to dive into this - hopefully this weekend.

My excuse too. ;-)

I also was hoping to get to it this weekend. I have been back from  
holidays
almost a month and managed to get zero down on mod_python since.

Graham

> Harold Ship (JIRA) wrote:
>>     [ http://issues.apache.org/jira/browse/MODPYTHON-172? 
>> page=comments#action_12419728 ]
>>
>> Harold Ship commented on MODPYTHON-172:
>> ---------------------------------------
>>
>> Please look at lines 202-205 of the same file, in parse_qs() :
>>
>>                     PyObject *list;
>>                     list = Py_BuildValue("[O]", val);
>>                     PyDict_SetItem(dict, key, list);
>>                     Py_DECREF(list);
>>
>>
>>
>>> Memory leak with util.fieldstorage using mod_python 3.2.8 on  
>>> apache 2.0.55
>>> -------------------------------------------------------------------- 
>>> ------
>>>
>>>          Key: MODPYTHON-172
>>>          URL: http://issues.apache.org/jira/browse/MODPYTHON-172
>>>      Project: mod_python
>>>         Type: Bug
>>
>>>   Components: core
>>>     Versions: 3.2.8
>>>  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
>>>     Reporter: Laurent Blanquet
>>
>>> 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
>>


Mime
View raw message