#42846 [Opn->Bgs]: Memory Leak in socket_recv and socket_read
| From: | jani@php.net | Date: | Wed, 21 Nov 2007 10:00:16 +0000 |
| Subject: | #42846 [Opn->Bgs]: Memory Leak in socket_recv and socket_read | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-119919@lists.php.net to get a copy of this message | ||
ID: 42846
Updated by: jani@php.net
Reported By: brendoncrawford at gmail dot com
-Status: Open
+Status: Bogus
Bug Type: Sockets related
Operating System: OSX 10.4 / FreeBSD 6.2
PHP Version: 5.2.4
New Comment:
The same happens without any sockets, just reusing some variable. It's
how the Zend MM works, not a real leak.
Previous Comments:
------------------------------------------------------------------------
[2007-10-03 21:39:39] brendoncrawford at gmail dot com
Also reproduceable in FreeBSD 6.2
------------------------------------------------------------------------
[2007-10-03 21:38:40] brendoncrawford at gmail dot com
Description:
------------
Each call to socket_recv (or socket_read) leaks small amount of memory
despite efforts to free up variables.
Reproduce code:
---------------
As far as I can tell, this is always reproduceable.
Please see:
http://pastebin.com/f342f6b99
Expected result:
----------------
Memory usage to decline back to original state before client connect.
Actual result:
--------------
If you simply connect and disconnect, you will see no problem. However,
if you send data you will see memory usage slowly increasing.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=42846&edit=1