#47429 [Opn->Fbk]: Memory leak using shmop_open
| From: | jani@php.net | Date: | Tue, 17 Feb 2009 23:53:35 +0000 |
| Subject: | #47429 [Opn->Fbk]: Memory leak using shmop_open | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-133938@lists.php.net to get a copy of this message | ||
ID: 47429
Updated by: jani@php.net
Reported By: iv dot zhekov at gmail dot com
-Status: Open
+Status: Feedback
Bug Type: Semaphore related
Operating System: Windows XP
PHP Version: 5.2.9RC2
New Comment:
Please try using this CVS snapshot:
http://snaps.php.net/php5.2-latest.tar.gz
For Windows:
http://windows.php.net/snapshots/
Previous Comments:
------------------------------------------------------------------------
[2009-02-17 22:58:44] iv dot zhekov at gmail dot com
Description:
------------
Function shmop_open increases memory used by Apache with about 4KB
every time it is invoked, and doesn't free it. It looks like memory
allocated for php_shmop struct is not freed.
Reproduce code:
---------------
<?
$shmid = shmop_open(0xff2, "c", 0644, 8);
shmop_close($shmid);
?>
Expected result:
----------------
Memory used by apache should be increased only once, when shared memory
segment is created. Refreshing the page should not increase used memory
or it must free it when script ends.
Actual result:
--------------
Every time the script is executed additional 4KB are added to the
memory used by Apache.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=47429&edit=1