#32475 [Opn->Fbk]: Memory Leak: TSRMLS_FETCH() in HTTPExtensionProc
| From: | sniper@php.net | Date: | Fri, 27 May 2005 07:04:01 +0000 |
| Subject: | #32475 [Opn->Fbk]: Memory Leak: TSRMLS_FETCH() in HTTPExtensionProc | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-79595@lists.php.net to get a copy of this message | ||
ID: 32475
Updated by: sniper@php.net
Reported By: lacey at lacey dot cc
-Status: Open
+Status: Feedback
Bug Type: IIS related
Operating System: Windows XP
PHP Version: 5CVS-2005-03-29
New Comment:
Was it same place as said in bug #33118 ??
Previous Comments:
------------------------------------------------------------------------
[2005-05-03 18:48:52] lacey at lacey dot cc
Found the Memory Leak. Thanks for all the help.
------------------------------------------------------------------------
[2005-04-05 02:27:41] lacey at lacey dot cc
Is there any feedback on this? I've tried stepping into the code but
the debug files aren't jibing with the Source Code versions that I
have.
------------------------------------------------------------------------
[2005-03-29 01:53:37] lacey at lacey dot cc
Yes. Of course I will download those and do more testing. I'll let
you know if I find out anything further. But I've already given you
the exact subroutine. It's the call to TSRMLS_FETCH() which calls
ts_resource_ex in trsm.c
ts_resouce_ex allocates the memory, and ts_free_thread somehow doesn't
free it all. The memory keeps growing with the implementation of each
thread until the Server crashes. I'd assume that's where you need to
look. Or am I missing something here?
Jakub has explained the same scenario in this report as well.
http://bugs.php.net/bug.php?id=23331
Thanks.
------------------------------------------------------------------------
[2005-03-29 01:19:04] sniper@php.net
Get these packages:
http://snaps.php.net/win32/php5-win32-latest.zip
http://snaps.php.net/win32/php5-dbgpack-win32-latest.zip
And try provide some useful information about the crash.
------------------------------------------------------------------------
[2005-03-28 17:29:32] lacey at lacey dot cc
Description:
------------
Memory Leak using the php5isapi.dll under IIS. When TSRMLS_FETCH() is
called from HTTPExtensionProc, ts_free_thread leaves a Memory Leak of
approximately 100K for every call. When TSRMLS_FETCH() isn't called,
there's no leak. This leak will crash a Server under light loads
within a few hours.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=32475&edit=1