Bug #60115 [NEW]: memory definitely lost in cli server
| From: | laruence@php.net | Date: | Sun, 23 Oct 2011 03:01:09 +0000 |
| Subject: | Bug #60115 [NEW]: memory definitely lost in cli server | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-164518@lists.php.net to get a copy of this message | ||
From: laruence
Operating system:
PHP version: 5.4.0beta2
Package: Built-in web server
Bug Type: Bug
Bug description:memory definitely lost in cli server
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 bug report at https://bugs.php.net/bug.php?id=60115&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=60115&r=trysnapshot54
Try a snapshot (PHP 5.3): https://bugs.php.net/fix.php?id=60115&r=trysnapshot53
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=60115&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=60115&r=fixed
Fixed in SVN and need be documented: https://bugs.php.net/fix.php?id=60115&r=needdocs
Fixed in release: https://bugs.php.net/fix.php?id=60115&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=60115&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=60115&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=60115&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=60115&r=support
Expected behavior: https://bugs.php.net/fix.php?id=60115&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=60115&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=60115&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=60115&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=60115&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=60115&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=60115&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=60115&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=60115&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=60115&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=60115&r=mysqlcfg