Edit report at https://bugs.php.net/bug.php?id=63950&edit=1
ID: 63950 Comment by: hufeng1987 at gmail dot com Reported by: hufeng1987 at gmail dot com Summary: Lot's of memory leaks detected Status: Feedback Type: Bug Package: FPM related Operating System: CentOS 5.8 PHP Version: 5.4.10 Block user comment: N Private report: N New Comment: i hope i could locate which code occurred these leak. but i failed because it run's too much more code. million lines of code running. any suggestion help me find out the bad code? i tried my hard to find it out ,but still got nothing. -------------------------------------------------------------------------------- ------------------------------------------------------ [09-Jan-2013 16:49:52.459798] WARNING: pid 2813, fpm_stdio_child_said(), line 166: [pool www] child 2815 said into stderr: "/root/soft/phpall/php- 5.4.10/Zend/zend_hash.c(339) : Actual location (location was relayed)" [09-Jan-2013 16:49:52.459810] WARNING: pid 2813, fpm_stdio_child_said(), line 166: [pool www] child 2815 said into stderr: "Last leak repeated 849 times" [09-Jan-2013 16:49:52.459822] WARNING: pid 2813, fpm_stdio_child_said(), line 166: [pool www] child 2815 said into stderr: "[Wed Jan 9 16:49:52 2013] Script: '-'" [09-Jan-2013 16:49:52.459835] WARNING: pid 2813, fpm_stdio_child_said(), line 166: [pool www] child 2815 said into stderr: "/root/soft/phpall/cache/APC- 3.1.13/apc_compile.c(219) : Freeing 0x100EF5C0 (32 bytes), script=-" [09-Jan-2013 16:49:52.459848] WARNING: pid 2813, fpm_stdio_child_said(), line 166: [pool www] child 2815 said into stderr: "Last leak repeated 53 times" [09-Jan-2013 16:49:52.459860] WARNING: pid 2813, fpm_stdio_child_said(), line 166: [pool www] child 2815 said into stderr: "[Wed Jan 9 16:49:52 2013] Script: '-'" [09-Jan-2013 16:49:52.459872] WARNING: pid 2813, fpm_stdio_child_said(), line 166: [pool www] child 2815 said into stderr: "/root/soft/phpall/php- 5.4.10/Zend/zend_compile.c(114) : Freeing 0x100F0648 (54 bytes), script=-" [09-Jan-2013 16:49:52.459885] WARNING: pid 2813, fpm_stdio_child_said(), line 166: [pool www] child 2815 said into stderr: "Last leak repeated 182 times" [09-Jan-2013 16:49:52.459897] WARNING: pid 2813, fpm_stdio_child_said(), line 166: [pool www] child 2815 said into stderr: "[Wed Jan 9 16:49:52 2013] Script: '-'" [09-Jan-2013 16:49:52.459909] WARNING: pid 2813, fpm_stdio_child_said(), line 166: [pool www] child 2815 said into stderr: "/root/soft/phpall/php- 5.4.10/Zend/zend_compile.c(2867) : Freeing 0x100F17C8 (240 bytes), script=-" [09-Jan-2013 16:49:52.459924] WARNING: pid 2813, fpm_stdio_child_said(), line 166: [pool www] child 2815 said into stderr: "/root/soft/phpall/php- 5.4.10/Zend/zend_hash.c(236) : Actual location (location was relayed)" [09-Jan-2013 16:49:52.459935] WARNING: pid 2813, fpm_stdio_child_said(), line 166: [pool www] child 2815 said into stderr: "Last leak repeated 9 times" [09-Jan-2013 16:49:52.459947] WARNING: pid 2813, fpm_stdio_child_said(), line 166: [pool www] child 2815 said into stderr: "[Wed Jan 9 16:49:52 2013] Script: '-'" [09-Jan-2013 16:49:52.459958] WARNING: pid 2813, fpm_stdio_child_said(), line 166: [pool www] child 2815 said into stderr: "/root/soft/phpall/php- 5.4.10/Zend/zend_hash.c(450) : Freeing 0x100F29B0 (128 bytes), script=-" [09-Jan-2013 16:49:52.459969] WARNING: pid 2813, fpm_stdio_child_said(), line 166: [pool www] child 2815 said into stderr: "Last leak repeated 29 times" [09-Jan-2013 16:49:52.459980] WARNING: pid 2813, fpm_stdio_child_said(), line 166: [pool www] child 2815 said into stderr: "[Wed Jan 9 16:49:52 2013] Script: '-'" [09-Jan-2013 16:49:52.459991] WARNING: pid 2813, fpm_stdio_child_said(), line 166: [pool www] child 2815 said into stderr: "/root/soft/phpall/php- 5.4.10/Zend/zend_vm_execute.h(380) : Freeing 0x100F4198 (56 bytes), script=-" [09-Jan-2013 16:49:52.460002] WARNING: pid 2813, fpm_stdio_child_said(), line 166: [pool www] child 2815 said into stderr: "/root/soft/phpall/php- 5.4.10/Zend/zend_alloc.c(2529) : Actual location (location was relayed)" [09-Jan-2013 16:49:52.460013] WARNING: pid 2813, fpm_stdio_child_said(), line 166: [pool www] child 2815 said into stderr: "Last leak repeated 471 times" [09-Jan-2013 16:49:52.460024] WARNING: pid 2813, fpm_stdio_child_said(), line 166: [pool www] child 2815 said into stderr: "[Wed Jan 9 16:49:52 2013] Script: '-'" [09-Jan-2013 16:49:52.460035] WARNING: pid 2813, fpm_stdio_child_said(), line 166: [pool www] child 2815 said into stderr: "/root/soft/phpall/php- 5.4.10/Zend/zend_compile.c(3309) : Freeing 0x10493948 (64 bytes), script=-" [09-Jan-2013 16:49:52.460056] WARNING: pid 2813, fpm_stdio_child_said(), line 166: [pool www] child 2815 said into stderr: "/root/soft/phpall/php- 5.4.10/Zend/zend_hash.c(339) : Actual location (location was relayed)" [09-Jan-2013 16:49:52.460069] WARNING: pid 2813, fpm_stdio_child_said(), line 166: [pool www] child 2815 said into stderr: "Last leak repeated 21 times" [09-Jan-2013 16:49:52.460080] WARNING: pid 2813, fpm_stdio_child_said(), line 166: [pool www] child 2815 said into stderr: "=== Total 7991 memory leaks detected ===" [09-Jan-2013 16:49:52.460091] DEBUG: pid 2813, fpm_event_loop(), line 411: event module triggered 1 events Previous Comments: ------------------------------------------------------------------------ [2013-01-09 08:45:30] paj...@php.net Thank you for this bug report. To properly diagnose the problem, we need a short but complete example script to be able to reproduce this bug ourselves. A proper reproducing script starts with <?php and ends with ?>, is max. 10-20 lines long and does not require any external resources such as databases, etc. If the script requires a database to demonstrate the issue, please make sure it creates all necessary tables, stored procedures etc. Please avoid embedding huge scripts into the report. ------------------------------------------------------------------------ [2013-01-09 08:43:03] hufeng1987 at gmail dot com Description: ------------ System Linux localhost.localdomain 2.6.18-308.el5 #1 SMP Tue Feb 21 20:06:06 EST 2012 x86_64 Build Date Jan 8 2013 17:40:04 Configure Command './configure' '--prefix=/usr/local/webserver/php-with- debug' '--with-iconv-dir=/usr/local' '--with-freetype-dir' '--with-jpeg-dir' '-- with-png-dir' '--with-zlib' '--with-libxml-dir=/usr' '--enable-xml' '--disable- rpath' '--enable-bcmath' '--enable-shmop' '--enable-sysvsem' '--enable-inline- optimization' '--with-curl' '--with-curlwrappers' '--enable-mbregex' '--enable- fpm' '--enable-mbstring' '--with-gd' '--enable-gd-native-ttf' '--with-openssl' '-- enable-pcntl' '--enable-sockets' '--enable-zip' '--with-mcrypt' '--with-pdo- mysql=mysqlnd' '--with-mysql=mysqlnd' '--enable-mysqlnd' '--enable-debug' Expected result: ---------------- no memory leaks Actual result: -------------- [09-Jan-2013 16:40:10] WARNING: [pool www] child 2332 said into stderr: "Last leak repeated 608 times" [09-Jan-2013 16:40:10] WARNING: [pool www] child 2332 said into stderr: "[Wed Jan 9 16:40:10 2013] Script: '-'" [09-Jan-2013 16:40:10] WARNING: [pool www] child 2332 said into stderr: "/root/soft/phpall/cache/APC-3.1.13/apc_zend.c(38) : Freeing 0x19D020A8 (25 bytes), script=-" [09-Jan-2013 16:40:10] WARNING: [pool www] child 2332 said into stderr: "Last leak repeated 4958 times" [09-Jan-2013 16:40:10] WARNING: [pool www] child 2332 said into stderr: "[Wed Jan 9 16:40:10 2013] Script: '-'" [09-Jan-2013 16:40:10] WARNING: [pool www] child 2332 said into stderr: "/root/soft/phpall/cache/APC-3.1.13/apc_compile.c(219) : Freeing 0x19D086A0 (32 bytes), script=-" [09-Jan-2013 16:40:10] WARNING: [pool www] child 2332 said into stderr: "Last leak repeated 55 times" [09-Jan-2013 16:40:10] WARNING: [pool www] child 2332 said into stderr: "[Wed Jan 9 16:40:10 2013] Script: '-'" [09-Jan-2013 16:40:10] WARNING: [pool www] child 2332 said into stderr: "/root/soft/phpall/php-5.4.10/Zend/zend_hash.c(324) : Freeing 0x19D08890 (72 bytes), script=-" [09-Jan-2013 16:40:10] WARNING: [pool www] child 2332 said into stderr: "Last leak repeated 941 times" [09-Jan-2013 16:40:10] WARNING: [pool www] child 2332 said into stderr: "[Wed Jan 9 16:40:10 2013] Script: '-'" [09-Jan-2013 16:40:10] WARNING: [pool www] child 2332 said into stderr: "/root/soft/phpall/php-5.4.10/Zend/zend_compile.c(114) : Freeing 0x19D08B80 (70 bytes), script=-" [09-Jan-2013 16:40:10] WARNING: [pool www] child 2332 said into stderr: "Last leak repeated 200 times" [09-Jan-2013 16:40:10] WARNING: [pool www] child 2332 said into stderr: "[Wed Jan 9 16:40:10 2013] Script: '-'" [09-Jan-2013 16:40:10] WARNING: [pool www] child 2332 said into stderr: "/root/soft/phpall/cache/APC-3.1.13/apc_compile.c(1787) : Freeing 0x19D0A140 (240 bytes), script=-" [09-Jan-2013 16:40:10] WARNING: [pool www] child 2332 said into stderr: "Last leak repeated 1486 times" [09-Jan-2013 16:40:10] WARNING: [pool www] child 2332 said into stderr: "[Wed Jan 9 16:40:10 2013] Script: '-'" [09-Jan-2013 16:40:10] WARNING: [pool www] child 2332 said into stderr: "/root/soft/phpall/php-5.4.10/Zend/zend_hash.c(893) : Freeing 0x19D0CF18 (64 bytes), script=-" [09-Jan-2013 16:40:10] WARNING: [pool www] child 2332 said into stderr: "/root/soft/phpall/php-5.4.10/Zend/zend_hash.c(339) : Actual location (location was relayed)" [09-Jan-2013 16:40:10] WARNING: [pool www] child 2332 said into stderr: "Last leak repeated 908 times" [09-Jan-2013 16:40:10] WARNING: [pool www] child 2332 said into stderr: "[Wed Jan 9 16:40:10 2013] Script: '-'" [09-Jan-2013 16:40:10] WARNING: [pool www] child 2332 said into stderr: "/root/soft/phpall/php-5.4.10/Zend/zend_hash.c(450) : Freeing 0x19CCD2B8 (128 bytes), script=-" [09-Jan-2013 16:40:10] WARNING: [pool www] child 2332 said into stderr: "Last leak repeated 32 times" [09-Jan-2013 16:40:10] WARNING: [pool www] child 2332 said into stderr: "[Wed Jan 9 16:40:10 2013] Script: '-'" [09-Jan-2013 16:40:10] WARNING: [pool www] child 2332 said into stderr: "/root/soft/phpall/php-5.4.10/Zend/zend_compile.c(2867) : Freeing 0x19CDF848 (240 bytes), script=-" [09-Jan-2013 16:40:10] WARNING: [pool www] child 2332 said into stderr: "/root/soft/phpall/php-5.4.10/Zend/zend_hash.c(236) : Actual location (location was relayed)" [09-Jan-2013 16:40:10] WARNING: [pool www] child 2332 said into stderr: "Last leak repeated 10 times" [09-Jan-2013 16:40:10] WARNING: [pool www] child 2332 said into stderr: "[Wed Jan 9 16:40:10 2013] Script: '-'" [09-Jan-2013 16:40:10] WARNING: [pool www] child 2332 said into stderr: "/root/soft/phpall/php-5.4.10/Zend/zend_hash.c(292) : Freeing 0x19C7B1E8 (64 bytes), script=-" [09-Jan-2013 16:40:10] WARNING: [pool www] child 2332 said into stderr: "/root/soft/phpall/php-5.4.10/Zend/zend_alloc.c(2529) : Actual location (location was relayed)" [09-Jan-2013 16:40:10] WARNING: [pool www] child 2332 said into stderr: "Last leak repeated 10 times" [09-Jan-2013 16:40:10] WARNING: [pool www] child 2332 said into stderr: "[Wed Jan 9 16:40:10 2013] Script: '-'" [09-Jan-2013 16:40:10] WARNING: [pool www] child 2332 said into stderr: "/root/soft/phpall/php-5.4.10/Zend/zend_compile.c(3309) : Freeing 0x19C4DA08 (64 bytes), script=-" [09-Jan-2013 16:40:10] WARNING: [pool www] child 2332 said into stderr: "/root/soft/phpall/php-5.4.10/Zend/zend_hash.c(339) : Actual location (location was relayed)" [09-Jan-2013 16:40:10] WARNING: [pool www] child 2332 said into stderr: "Last leak repeated 21 times" [09-Jan-2013 16:40:10] WARNING: [pool www] child 2332 said into stderr: "=== Total 9240 memory leaks detected ===" ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=63950&edit=1