Bug #60115 [Opn->Csd]: memory definitely lost in cli server
| From: | laruence@php.net | Date: | Sun, 23 Oct 2011 03:02:33 +0000 |
| Subject: | Bug #60115 [Opn->Csd]: memory definitely lost in cli server | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-164519@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=60115&edit=1
ID: 60115
Updated by: laruence@php.net
Reported by: laruence@php.net
Summary: memory definitely lost in cli server
-Status: Open
+Status: Closed
Type: Bug
Package: Built-in web server
PHP Version: 5.4.0beta2
-Assigned To:
+Assigned To: laruence
Block user comment: N
Private report: N
New Comment:
This bug has been fixed in SVN.
Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.
For Windows:
http://windows.php.net/snapshots/
Thank you for the report, and for helping us make PHP better.
Previous Comments:
------------------------------------------------------------------------
[2011-10-23 03:01:08] laruence@php.net
Description:
------------
run built-in server with valgrind:
USE_ZEND_ALLOC=0 C=0 valgrind --leak-check=full php -S db-sf-
maybach.db01.baidu.com:8964
then request a 404 page
Test script:
---------------
none
Expected result:
----------------
no memory lost
Actual result:
--------------
==9611== 26 bytes in 1 blocks are definitely lost in loss record 7 of 72
==9611== at 0x490514E: malloc (vg_replace_malloc.c:195)
==9611== by 0x302AF6FC91: strdup (in /lib64/tls/libc-2.3.4.so)
==9611== by 0x9C27E1: get_last_error (php_cli_server.c:285)
==9611== by 0x9C7EE7: php_cli_server_send_error_page (php_cli_server.c:1702)
==9611== by 0x9C8CFE: php_cli_server_begin_send_static
(php_cli_server.c:1849)
==9611== by 0x9C9C22: php_cli_server_dispatch (php_cli_server.c:1978)
==9611== by 0x9CA1C2: php_cli_server_recv_event_read_request
(php_cli_server.c:2142)
==9611== by 0x9CA504: php_cli_server_do_event_for_each_fd_callback
(php_cli_server.c:2233)
==9611== by 0x9C5BCE: php_cli_server_poller_iter_on_active
(php_cli_server.c:753)
==9611== by 0x9CA571: php_cli_server_do_event_for_each_fd
(php_cli_server.c:2254)
==9611== by 0x9CA5C5: php_cli_server_do_event_loop (php_cli_server.c:2264)
==9611== by 0x9CA8A7: do_cli_server (php_cli_server.c:2365)
==9611==
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=60115&edit=1