#42846 [Opn]: Memory Leak in socket_recv and socket_read
| From: | brendoncrawford at gmail dot com | Date: | Wed, 03 Oct 2007 21:39:40 +0000 |
| Subject: | #42846 [Opn]: Memory Leak in socket_recv and socket_read | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-118161@lists.php.net to get a copy of this message | ||
ID: 42846
User updated by: brendoncrawford at gmail dot com
Reported By: brendoncrawford at gmail dot com
Status: Open
Bug Type: Sockets related
-Operating System: OSX 10.4
+Operating System: OSX 10.4 / FreeBSD 6.2
PHP Version: 5.2.4
New Comment:
Also reproduceable in FreeBSD 6.2
Previous Comments:
------------------------------------------------------------------------
[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