Uploaded image for project: 'mod_python'
  1. mod_python
  2. MODPYTHON-194

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

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.2.10
    • 3.3.1
    • core
    • None

    Description

      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.

      Attachments

        Activity

          People

            grahamd Graham Phillip Dumpleton
            grahamd Graham Phillip Dumpleton
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: