It has been a while, but I think this will show a leak:
while 1:
d = {'a': 1}
Via regular Python, it works without a leak, but with mod_python, it leaks (buggy version).
Reference counting is supposed to take care of this (and I don't see any cycles).
-Ashwin
----- Original Message ----
From: Martin Pitt <email address hidden>
To: <email address hidden>
Sent: Monday, April 14, 2008 2:18:29 AM
Subject: [Bug 132520] Re: Edgy mod_python (version 3.2.8) memory leak
Approved, please upload. Is there an easy recipe for
demonstrating/reproducing the issue?
--
Edgy mod_python (version 3.2.8) memory leak https://bugs.launchpad.net/bugs/132520
You received this bug notification because you are a direct subscriber
of the bug.
Status in Source Package "libapache2-mod-python" in Ubuntu: Fix Released
Status in libapache2-mod-python in Ubuntu Feisty: In Progress
It has been a while, but I think this will show a leak:
while 1:
d = {'a': 1}
Via regular Python, it works without a leak, but with mod_python, it leaks (buggy version).
Reference counting is supposed to take care of this (and I don't see any cycles).
-Ashwin
----- Original Message ----
From: Martin Pitt <email address hidden>
To: <email address hidden>
Sent: Monday, April 14, 2008 2:18:29 AM
Subject: [Bug 132520] Re: Edgy mod_python (version 3.2.8) memory leak
Approved, please upload. Is there an easy recipe for reproducing the issue?
demonstrating/
-- /bugs.launchpad .net/bugs/ 132520
Edgy mod_python (version 3.2.8) memory leak
https:/
You received this bug notification because you are a direct subscriber
of the bug.
Status in Source Package "libapache2- mod-python" in Ubuntu: Fix Released mod-python in Ubuntu Feisty: In Progress
Status in libapache2-
Bug description: mod-python
Binary package hint: libapache2-
Hello, mail-archives. apache. org/mod_ mbox/httpd- python- dev/200610. mbox/%3c004901c 6f379$e5c0fba0$<email address hidden>%3e
__repr__ leaks only under mod_python. The problem seems to be related to a mod_python bug:
http://
Can you please backport this bug fix to Edgy/Feisty. The mod_python devs fixed it in 3.3.x and that will only get into Gutsy.
It is a one liner fix:
--- mod_python.c 2007-08-13 12:46:19.000000000 -0400 interpreter( void) Get(); mail-archives. apache. org/mod_ mbox/httpd- python- dev/200610. mbox/%3c004901c 6f379$e5c0fba0$<email address hidden>%3e Clear(tstate) ; ReleaseThread( tstate) ;
+++ mod_python2.c 2007-08-13 12:46:08.000000000 -0400
@@ -213,6 +213,10 @@
static void release_
{
PyThreadState *tstate = PyThreadState_
+ /* Ashwin see
+ * http://
+ */
+ PyThreadState_
#ifdef WITH_THREAD
PyEval_
#else
Thanks,
Ashwin
_ _______ _______ _______ _______ _______ _______ _______ _______ _______ _______ _______ ______ mobile. yahoo.com/ ;_ylt=Ahu06i62s R8HDtDypao8Wcj9 tAcJ
Be a better friend, newshound, and
know-it-all with Yahoo! Mobile. Try it now. http://