Bug #65395 [Fbk->NoF]: Memory leak in TSRM.c
| From: | php-bugs at lists dot php dot net | Date: | Tue, 15 Oct 2013 11:54:47 +0000 |
| Subject: | Bug #65395 [Fbk->NoF]: Memory leak in TSRM.c | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-182256@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=65395&edit=1
ID: 65395
Updated by: php-bugs@lists.php.net
Reported by: naitik dot dani at gmail dot com
Summary: Memory leak in TSRM.c
-Status: Feedback
+Status: No Feedback
Type: Bug
Package: *General Issues
Operating System: Freebsd
PHP Version: 5.3.25
Private report: N
New Comment:
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Re-Opened". Thank you.
Previous Comments:
------------------------------------------------------------------------
[2013-08-09 22:47:30] sixd@php.net
How did you configure PHP and what is the testcase that reproduces the problem?
------------------------------------------------------------------------
[2013-08-05 15:10:18] naitik dot dani at gmail dot com
Description:
------------
I am seeing the following backtrace in the memory plumber output which points
that there is a memory leak with respect to tsrm_tls_entry in TSRM.c file:
==165== at 0x80395a890: __zend_realloc (php-5.3.25/Zend/zend_alloc.h:112)
==165== at 0x80395c7ef: _zend_hash_quick_add_or_update (php-
5.3.25/Zend/zend_hash.c:337)
==165== at 0x80395cb71: zend_hash_copy (php-5.3.25/Zend/zend_hash.c:788)
==165== at 0x80394c269: compiler_globals_ctor (php-5.3.25/Zend/zend.c:506)
==165== at 0x8038e65ca: allocate_new_resource (php-5.3.25/TSRM/TSRM.c:294)
==165== at 0x8038e6709: ts_resource_ex (php-5.3.25/TSRM/TSRM.c:361)
==165== at 0x8039e29f1: php_handler (php-
5.3.25/sapi/apache2handler/sapi_apache2.c:548)
I am using PHP 5.3.25 version. I looked for the patch release after this one
that might have a fix for it, but I couldn't find one.
I would appreciate if you can throw some light on this memory leak to help me
fix it. I cannot upgrade to new PHP version due to some inhouse roadblocks.
However I can patch it to fix this memory leak.
Thanks in advance.
Actual result:
--------------
==165== at 0x80395a890: __zend_realloc (php-5.3.25/Zend/zend_alloc.h:112)
==165== at 0x80395c7ef: _zend_hash_quick_add_or_update (php-
5.3.25/Zend/zend_hash.c:337)
==165== at 0x80395cb71: zend_hash_copy (php-5.3.25/Zend/zend_hash.c:788)
==165== at 0x80394c269: compiler_globals_ctor (php-5.3.25/Zend/zend.c:506)
==165== at 0x8038e65ca: allocate_new_resource (php-5.3.25/TSRM/TSRM.c:294)
==165== at 0x8038e6709: ts_resource_ex (php-5.3.25/TSRM/TSRM.c:361)
==165== at 0x8039e29f1: php_handler (php-
5.3.25/sapi/apache2handler/sapi_apache2.c:548)
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=65395&edit=1