Issue Details (XML | Word | Printable)

Key: MODPYTHON-194
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Graham Dumpleton
Reporter: Graham Dumpleton
Votes: 0
Watchers: 0
Operations

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

Memory leak due to not clearing thread state object before deletion.

Created: 21/Oct/06 12:18 AM   Updated: 01/May/07 10:49 AM
Return to search
Component/s: core
Affects Version/s: 3.2.10
Fix Version/s: 3.3.1

Time Tracking:
Not Specified

Resolution Date: 21/Oct/06 05:25 AM


 Description  « Hide
Jeff Robbins reported a potential memory leak in mod_python as a result of PyThreadState_Clear() not being called prior to PyThreadState_Delete. See:

  http://mail-archives.apache.org/mod_mbox/httpd-python-dev/200610.mbox/%3c3308644A-9EE5-48BA-845F-EF3F43BB68FF@dscpl.com.au%3e

Problem looks to be valid, but as per followup:

  http://mail-archives.apache.org/mod_mbox/httpd-python-dev/200610.mbox/%3cA62494E5-D8FE-458B-9700-EEEC1EB11FE8@dscpl.com.au%3e

the location of the PyThreadState_Clear() call would need to be moved to before the lock is released.

 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.