Bug #78538 [Com]: shmop memory leak
| From: | danack@php.net | Date: | Sat, 14 Sep 2019 19:49:19 +0000 |
| Subject: | Bug #78538 [Com]: shmop memory leak | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-222745@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=78538&edit=1
ID: 78538
Comment by: danack@php.net
Reported by: ptk2003 at gmail dot com
Summary: shmop memory leak
Status: Open
Type: Bug
Package: *Extensibility Functions
Operating System: windows server 2016 x64
PHP Version: 7.3.9
Block user comment: N
Private report: N
New Comment:
Can you give more indication of why you think this is classified as a memory leak, and not just
normal memory usage for that extension?
The code below isn't calling https://www.php.net/manual/en/function.shmop-delete.php
to free the memory, so it's not too surprising some is resident.
Also, 1000 * 65kb would be 65Mb if it was a memory leak. As you say it's only 4 MegaByte that
sounds, like it's not leaking, just taking a bit more memory than you might expect.
Previous Comments:
------------------------------------------------------------------------
[2019-09-14 19:19:37] ptk2003 at gmail dot com
Description:
------------
shmop_open() with any parametrs add about 4KB apache.
"a", "c" irrelevant
for example this code add 4MegaByte working memory apache:
for($i=0; $i<1000; $i++){
$shmophsw=shmop_open(0x4051, "c", 0777, 65536);
shmop_close($shmophsw);
}//for
apache 2.4.41 x64
php-7.3.9-Win32-VC15-x64
windows 2016 server
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=78538&edit=1