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

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

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.2.10
    • Fix Version/s: 3.3.1
    • Component/s: core
    • Labels:
      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.

        Activity

        There are no comments yet on this issue.

          People

          • Assignee:
            grahamd Graham Dumpleton
            Reporter:
            grahamd Graham Dumpleton
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development