#35260 [NEW]: Memory Leak
From: lacey at lacey dot cc Operating system: Windows XP PHP version: 5.0.5 PHP Bug Type: IIS related Bug description: Memory Leak Description: Your Memory Leak Bug is still there. In both php5isapi.dll and php-cgi.exe http://bugs.php.net/bug.php?id=32475 Add the second line in this routine in zend.c and it goes away. static void executor_globals_dtor(zend_executor_globals *executor_globals TSRMLS_DC) { zend_ini_shutdown(TSRMLS_C); zend_shutdown_constants(TSRMLS_C); } -- Edit bug report at http://bugs.php.net/?id=35260edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=35260r=trysnapshot4 Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=35260r=trysnapshot50 Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=35260r=trysnapshot51 Fixed in CVS:http://bugs.php.net/fix.php?id=35260r=fixedcvs Fixed in release:http://bugs.php.net/fix.php?id=35260r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=35260r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=35260r=needscript Try newer version: http://bugs.php.net/fix.php?id=35260r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=35260r=support Expected behavior: http://bugs.php.net/fix.php?id=35260r=notwrong Not enough info: http://bugs.php.net/fix.php?id=35260r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=35260r=submittedtwice register_globals:http://bugs.php.net/fix.php?id=35260r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=35260r=php3 Daylight Savings:http://bugs.php.net/fix.php?id=35260r=dst IIS Stability: http://bugs.php.net/fix.php?id=35260r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=35260r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=35260r=float No Zend Extensions: http://bugs.php.net/fix.php?id=35260r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=35260r=mysqlcfg
#35260 [Bgs]: Memory Leak
ID: 35260 User updated by: lacey at lacey dot cc Reported By: lacey at lacey dot cc Status: Bogus Bug Type: IIS related Operating System: Windows XP PHP Version: 5.0.5 New Comment: Well that's very simple. Because in your infinite wisdom, you locked the first one. Previous Comments: [2005-11-17 13:59:58] [EMAIL PROTECTED] Why the hell are you reporting this separately and not giving the feedback to that earlier report?!?!!! [2005-11-17 13:58:37] lacey at lacey dot cc Description: Your Memory Leak Bug is still there. In both php5isapi.dll and php-cgi.exe http://bugs.php.net/bug.php?id=32475 Add the second line in this routine in zend.c and it goes away. static void executor_globals_dtor(zend_executor_globals *executor_globals TSRMLS_DC) { zend_ini_shutdown(TSRMLS_C); zend_shutdown_constants(TSRMLS_C); } -- Edit this bug report at http://bugs.php.net/?id=35260edit=1
#32475 [Fbk-Opn]: Memory Leak: TSRMLS_FETCH() in HTTPExtensionProc
ID: 32475 User updated by: lacey at lacey dot cc Reported By: lacey at lacey dot cc -Status: Feedback +Status: Open Bug Type: IIS related Operating System: Windows XP PHP Version: 5CVS-2005-03-29 New Comment: Tried both CGI and ISAPI. Same thing. CGI gains about 4K per hit constantly. ISAPI dies of overweight within a few hours. See http://bugs.php.net/bug.php?id=35260 for the description of how I stopped the Memory Leak. Previous Comments: [2005-11-17 14:00:46] [EMAIL PROTECTED] Please try using this CVS snapshot: http://snaps.php.net/php5-latest.tar.gz For Windows: http://snaps.php.net/win32/php5-win32-latest.zip [2005-06-28 01:00:04] php-bugs at lists dot php dot net No feedback was provided for this bug for over a week, so it is being suspended automatically. If you are able to provide the information that was originally requested, please do so and change the status of the bug back to Open. [2005-06-20 13:13:48] [EMAIL PROTECTED] Well, can you tell us too so we can fix it? [2005-06-01 00:51:50] lacey at lacey dot cc No. [2005-05-27 09:04:00] [EMAIL PROTECTED] Was it same place as said in bug #33118 ?? The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/32475 -- Edit this bug report at http://bugs.php.net/?id=32475edit=1
#32475 [Asn]: [PATCH] Memory Leak: TSRMLS_FETCH() in HTTPExtensionProc
ID: 32475 User updated by: lacey at lacey dot cc Reported By: lacey at lacey dot cc Status: Assigned Bug Type: IIS related Operating System: Windows XP PHP Version: 5CVS-2005-11-17 (snap) Assigned To: dmitry New Comment: Hang on. I've downloaded the latest version for the second time today and the ISAPI seems to be working for a few hours without growing in memory. Did you Guys change something today? I'll keep testing that and let you know. The CGI was still leaking memory though. (at 4K per hit) Previous Comments: [2005-11-17 21:12:24] [EMAIL PROTECTED] This is the patch to fix this, according to the reportee static void executor_globals_dtor(zend_executor_globals *executor_globals TSRMLS_DC) { zend_ini_shutdown(TSRMLS_C); zend_shutdown_constants(TSRMLS_C); } Dmitry, can you check this out, if it makes any sense. [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-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=32475edit=1
#32475 [Fbk-Opn]: Memory Leak: TSRMLS_FETCH() in HTTPExtensionProc
ID: 32475 User updated by: lacey at lacey dot cc Reported By: lacey at lacey dot cc -Status: Feedback +Status: Open Bug Type: IIS related Operating System: Windows XP PHP Version: 5CVS-2005-03-29 New Comment: No. Previous Comments: [2005-05-27 09:04:00] [EMAIL PROTECTED] Was it same place as said in bug #33118 ?? [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] [EMAIL PROTECTED] 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. The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/32475 -- Edit this bug report at http://bugs.php.net/?id=32475edit=1
#32475 [Opn]: Memory Leak: TSRMLS_FETCH() in HTTPExtensionProc
ID: 32475 User updated by: lacey at lacey dot cc Reported By: lacey at lacey dot cc Status: Open Bug Type: IIS related Operating System: Windows XP PHP Version: 5CVS-2005-03-29 New Comment: Found the Memory Leak. Thanks for all the help. Previous Comments: [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] [EMAIL PROTECTED] 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=32475edit=1
#32475 [Opn]: Memory Leak
ID: 32475 User updated by: lacey at lacey dot cc Reported By: lacey at lacey dot cc Status: Open Bug Type: IIS related Operating System: Windows XP PHP Version: 5CVS-2005-03-29 New Comment: 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. Previous Comments: [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] [EMAIL PROTECTED] 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=32475edit=1
#32475 [Opn]: Memory Leak
ID: 32475 User updated by: lacey at lacey dot cc Reported By: lacey at lacey dot cc Status: Open Bug Type: IIS related Operating System: Windows XP PHP Version: 5CVS-2005-03-29 New Comment: Do you have the latest Source Code for this snapshot so I'm debugging with all the same files? Previous Comments: [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] [EMAIL PROTECTED] 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 20:17:13] lacey at lacey dot cc BTW: I've seen this Bug Reort: http://bugs.php.net/bug.php?id=23331 But it's 2 years old and it's marked as Bogus. [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=32475edit=1
#32475 [NEW]: Memory Leak
From: lacey at lacey dot cc Operating system: Windows XP PHP version: 5.0.3 PHP Bug Type: Reproducible crash Bug description: Memory Leak 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 bug report at http://bugs.php.net/?id=32475edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=32475r=trysnapshot4 Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=32475r=trysnapshot50 Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=32475r=trysnapshot51 Fixed in CVS:http://bugs.php.net/fix.php?id=32475r=fixedcvs Fixed in release:http://bugs.php.net/fix.php?id=32475r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=32475r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=32475r=needscript Try newer version: http://bugs.php.net/fix.php?id=32475r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=32475r=support Expected behavior: http://bugs.php.net/fix.php?id=32475r=notwrong Not enough info: http://bugs.php.net/fix.php?id=32475r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=32475r=submittedtwice register_globals:http://bugs.php.net/fix.php?id=32475r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=32475r=php3 Daylight Savings:http://bugs.php.net/fix.php?id=32475r=dst IIS Stability: http://bugs.php.net/fix.php?id=32475r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=32475r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=32475r=float No Zend Extensions: http://bugs.php.net/fix.php?id=32475r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=32475r=mysqlcfg
#32475 [Opn]: Memory Leak
ID: 32475 User updated by: lacey at lacey dot cc Reported By: lacey at lacey dot cc Status: Open Bug Type: Reproducible crash Operating System: Windows XP PHP Version: 5.0.3 New Comment: BTW: I've seen this Bug Reort: http://bugs.php.net/bug.php?id=23331 But it's 2 years old and it's marked as Bogus. Previous Comments: [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=32475edit=1
#32475 [Fbk-Opn]: Memory Leak
ID: 32475 User updated by: lacey at lacey dot cc Reported By: lacey at lacey dot cc -Status: Feedback +Status: Open Bug Type: IIS related Operating System: Windows XP PHP Version: 5.0.3 New Comment: Thanks. I think that was the one I was using. But I just downloaded it and tested it and I'm getting the same symptoms. Previous Comments: [2005-03-29 00:40:29] [EMAIL PROTECTED] Please try using this CVS snapshot: http://snaps.php.net/php5-latest.tar.gz For Windows: http://snaps.php.net/win32/php5-win32-latest.zip [2005-03-28 20:17:13] lacey at lacey dot cc BTW: I've seen this Bug Reort: http://bugs.php.net/bug.php?id=23331 But it's 2 years old and it's marked as Bogus. [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=32475edit=1
#32475 [Fbk-Opn]: Memory Leak
ID: 32475 User updated by: lacey at lacey dot cc Reported By: lacey at lacey dot cc -Status: Feedback +Status: Open Bug Type: IIS related Operating System: Windows XP PHP Version: 5CVS-2005-03-29 New Comment: 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. Previous Comments: [2005-03-29 01:19:04] [EMAIL PROTECTED] 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 20:17:13] lacey at lacey dot cc BTW: I've seen this Bug Reort: http://bugs.php.net/bug.php?id=23331 But it's 2 years old and it's marked as Bogus. [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=32475edit=1
#23331 [Com]: Memory leak in ISAPI
ID: 23331 Comment by: lacey at lacey dot cc Reported By: jakub at icewarp dot com Status: No Feedback Bug Type: IIS related Operating System: win32 PHP Version: 4CVS, 5CVS New Comment: I have the same problem. It's definitely in the Thread routines. If I don't call TSRMLS_FETCH() the memory doesn't leak. It cripples my Server within a few hours. Has there been no fix for this yet? Previous Comments: [2004-03-25 05:32:34] tom at cliksoftware dot com This bug appears to be still outstanding, is the fix in the pipeline yet? 4.3.5 RC_3 seemed to fix it a bit, but RC_4 has made it worse. It still it unstable on high traffic boards, please fix soon :) [2004-03-18 06:30:14] osvetlik at kerio dot com We are embedding PHP in our products and we have the same problem. It is very important for us to have this issue solved ASAP, if we may help, please, tell us how. [2003-12-30 01:00:00] php-bugs at lists dot php dot net No feedback was provided for this bug for over 2 weeks, so it is being suspended automatically. If you are able to provide the information that was originally requested, please do so and change the status of the bug back to Open. [2003-12-16 14:31:02] msisolak at yahoo dot com The recent changes have fixed a big chunk of the leaks, but there are still a couple of memory types that are not getting freed. I'll have a couple of more patches to close out this bug soon. [2003-12-14 20:16:31] [EMAIL PROTECTED] Please try using this CVS snapshot: http://snaps.php.net/php4-STABLE-latest.tar.gz For Windows: http://snaps.php.net/win32/php4-win32-STABLE-latest.zip Some fixes have been committed recently which should fix this bug. Please try the snapshot out. The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/23331 -- Edit this bug report at http://bugs.php.net/?id=23331edit=1