From: [EMAIL PROTECTED] Operating system: Linux PHP version: 5CVS-2003-10-27 (dev) PHP Bug Type: Apache related Bug description: much memory leaks
Description: ------------ I've configured latest CVS with --enable-debug and this is the output in Apache's error log: [Mon Oct 27 11:35:15 2003] [notice] Apache/1.3.27 (Linux/SuSE) PHP/5.0.0b2-dev configured -- resuming normal operations [Mon Oct 27 11:35:15 2003] [notice] Accept mutex: sysvsem (Default: sysvsem) /devage/php-src/Zend/zend_operators.c(1106) : Freeing 0x46D04A68 (73 bytes), script=/srv/cowiki/htdocs/index.php Last leak repeated 8 times /root/turck-mmcache-2.4.2/mmcache.c(2436) : Freeing 0x46D488E0 (71 bytes), script=/srv/cowiki/htdocs/index.php Last leak repeated 59 times /devage/php-src/Zend/zend_compile.c(44) : Freeing 0x46D20BAC (7 bytes), script=/srv/cowiki/htdocs/index.php Last leak repeated 174 times /root/turck-mmcache-2.4.2/mmcache.c(2067) : Freeing 0x46D45628 (9 bytes), script=/srv/cowiki/htdocs/index.php Last leak repeated 194 times /devage/php-src/Zend/zend_hash.c(236) : Freeing 0x46D51540 (43 bytes), script=/srv/cowiki/htdocs/index.php Last leak repeated 690 times /devage/php-src/Zend/zend_hash.c(411) : Freeing 0x46D514CC (64 bytes), script=/srv/cowiki/htdocs/index.php /devage/php-src/Zend/zend_hash.c(157) : Actual location (location was relayed) Last leak repeated 15 times /devage/php-src/Zend/zend_execute.c(2819) : Freeing 0x46D51444 (16 bytes), script=/srv/cowiki/htdocs/index.php Last leak repeated 311 times /devage/php-src/Zend/zend_API.c(809) : Freeing 0x46D5110C (1 bytes), script=/srv/cowiki/htdocs/index.php Last leak repeated 100 times /devage/php-src/Zend/zend_API.c(808) : Freeing 0x46D510C8 (16 bytes), script=/srv/cowiki/htdocs/index.php Last leak repeated 100 times /devage/php-src/Zend/zend_execute.c(872) : Freeing 0x46D5033C (44 bytes), script=/srv/cowiki/htdocs/index.php /devage/php-src/Zend/zend_variables.c(148) : Actual location (location was relayed) Last leak repeated 43 times /devage/php-src/Zend/zend_execute.c(2822) : Freeing 0x46D4B218 (5 bytes), script=/srv/cowiki/htdocs/index.php /devage/php-src/Zend/zend_variables.c(137) : Actual location (location was relayed) Last leak repeated 6 times /devage/php-src/Zend/zend_execute.c(3098) : Freeing 0x46D5019C (44 bytes), script=/srv/cowiki/htdocs/index.php /devage/php-src/Zend/zend_API.c(713) : Actual location (location was relayed) Last leak repeated 41 times /devage/php-src/Zend/zend_execute.c(879) : Freeing 0x46D4DFBC (35 bytes), script=/srv/cowiki/htdocs/index.php /devage/php-src/Zend/zend_hash.c(377) : Actual location (location was relayed) Last leak repeated 15 times /devage/php-src/Zend/zend_execute.c(2532) : Freeing 0x46D4B744 (16 bytes), script=/srv/cowiki/htdocs/index.php Last leak repeated 16 times /devage/php-src/Zend/zend_execute.c(3097) : Freeing 0x46D4AF6C (16 bytes), script=/srv/cowiki/htdocs/index.php Last leak repeated 41 times /devage/php-src/Zend/zend_API.c(714) : Freeing 0x46D392B8 (32 bytes), script=/srv/cowiki/htdocs/index.php /devage/php-src/Zend/zend_hash.c(157) : Actual location (location was relayed) Last leak repeated 39 times /devage/php-src/Zend/zend_objects.c(106) : Freeing 0x46D38FD8 (12 bytes), script=/srv/cowiki/htdocs/index.php Last leak repeated 41 times /devage/php-src/Zend/zend_execute.c(410) : Freeing 0x46D38628 (16 bytes), script=/srv/cowiki/htdocs/index.php Last leak repeated 20 times /devage/php-src/ext/standard/string.c(2875) : Freeing 0x46CFB39C (2 bytes), script=/srv/cowiki/htdocs/index.php Last leak repeated 1 time /devage/php-src/Zend/zend_execute.c(3218) : Freeing 0x46D02974 (32 bytes), script=/srv/cowiki/htdocs/index.php /devage/php-src/Zend/zend_hash.c(157) : Actual location (location was relayed) Last leak repeated 31 times /devage/php-src/ext/standard/html.c(1034) : Freeing 0x46CE9C24 (128 bytes), script=/srv/cowiki/htdocs/index.php Last leak repeated 2 times /devage/php-src/Zend/zend_execute.c(2843) : Freeing 0x46CE6080 (16 bytes), script=/srv/cowiki/htdocs/index.php Last leak repeated 1 time /devage/php-src/ext/standard/datetime.c(988) : Freeing 0x46C9A268 (17 bytes), script=/srv/cowiki/htdocs/index.php /root/turck-mmcache-2.4.2/mmcache.c(2057) : Freeing 0x46CAFCA4 (16 bytes), script=/srv/cowiki/htdocs/index.php Last leak repeated 13 times /devage/php-src/Zend/zend_execute.c(2739) : Freeing 0x46C9E2B8 (16 bytes), script=/srv/cowiki/htdocs/index.php Last leak repeated 5 times /devage/php-src/Zend/zend_execute_API.c(393) : Freeing 0x46CAE1B4 (16 bytes), script=/srv/cowiki/htdocs/index.php Last leak repeated 1 time /devage/php-src/ext/standard/string.c(1126) : Freeing 0x080F75D4 (10 bytes), script=/srv/cowiki/htdocs/index.php /devage/php-src/ext/standard/dns.c(136) : Freeing 0x46CAE068 (27 bytes), script=/srv/cowiki/htdocs/index.php /devage/php-src/Zend/zend_variables.c(149) : Freeing 0x46CAD994 (32 bytes), script=/srv/cowiki/htdocs/index.php /devage/php-src/Zend/zend_hash.c(157) : Actual location (location was relayed) Last leak repeated 14 times /root/turck-mmcache-2.4.2/mmcache.c(2086) : Freeing 0x46CAB9F0 (32 bytes), script=/srv/cowiki/htdocs/index.php Last leak repeated 3 times /root/turck-mmcache-2.4.2/mmcache.c(2083) : Freeing 0x46CAB98C (44 bytes), script=/srv/cowiki/htdocs/index.php Last leak repeated 3 times /devage/php-src/Zend/zend_execute_API.c(421) : Freeing 0x46CAACC8 (44 bytes), script=/srv/cowiki/htdocs/index.php /devage/php-src/Zend/zend_variables.c(148) : Actual location (location was relayed) Last leak repeated 13 times /devage/php-src/Zend/zend_API.c(975) : Freeing 0x46CA3F94 (35 bytes), script=/srv/cowiki/htdocs/index.php /devage/php-src/Zend/zend_hash.c(377) : Actual location (location was relayed) Last leak repeated 5 times /devage/php-src/ext/standard/string.c(810) : Freeing 0x46CA3F40 (32 bytes), script=/srv/cowiki/htdocs/index.php /devage/php-src/Zend/zend_hash.c(157) : Actual location (location was relayed) Last leak repeated 7 times /devage/php-src/Zend/zend_API.c(973) : Freeing 0x46C8C300 (6 bytes), script=/srv/cowiki/htdocs/index.php Last leak repeated 5 times /devage/php-src/Zend/zend_execute.c(597) : Freeing 0x46C94F6C (5 bytes), script=/srv/cowiki/htdocs/index.php /devage/php-src/Zend/zend_variables.c(137) : Actual location (location was relayed) Last leak repeated 1 time /devage/php-src/Zend/zend_execute.c(594) : Freeing 0x46C94F28 (16 bytes), script=/srv/cowiki/htdocs/index.php Last leak repeated 1 time /devage/php-src/ext/standard/basic_functions.c(2877) : Freeing 0x46C92758 (8 bytes), script=/srv/cowiki/htdocs/index.php /devage/php-src/Zend/zend_variables.c(137) : Actual location (location was relayed) Last leak repeated 92 times /devage/php-src/ext/standard/basic_functions.c(2875) : Freeing 0x46C92714 (16 bytes), script=/srv/cowiki/htdocs/index.php Last leak repeated 103 times /devage/php-src/Zend/zend_execute.c(605) : Freeing 0x46C892F0 (16 bytes), script=/srv/cowiki/htdocs/index.php Last leak repeated 2 times /devage/php-src/Zend/zend_execute.c(2720) : Freeing 0x46C87780 (9 bytes), script=/srv/cowiki/htdocs/index.php /devage/php-src/Zend/zend_variables.c(137) : Actual location (location was relayed) Last leak repeated 1 time /devage/php-src/ext/standard/string.c(2641) : Freeing 0x08105AEC (3 bytes), script=/srv/cowiki/htdocs/index.php /usr/src/web/php/php5/ext/standard/var_unserializer.re(338) : Freeing 0x08106048 (32 bytes), script=/srv/cowiki/htdocs/index.php /devage/php-src/Zend/zend_hash.c(157) : Actual location (location was relayed) /usr/src/web/php/php5/ext/standard/var_unserializer.re(336) : Freeing 0x08105FE4 (44 bytes), script=/srv/cowiki/htdocs/index.php /devage/php-src/ext/session/session.c(486) : Freeing 0x08104D68 (16 bytes), script=/srv/cowiki/htdocs/index.php /root/turck-mmcache-2.4.2/mmcache.c(2146) : Freeing 0x080F73D0 (18 bytes), script=/srv/cowiki/htdocs/index.php Last leak repeated 2 times /devage/php-src/Zend/zend_API.c(972) : Freeing 0x080F05A4 (16 bytes), script=/srv/cowiki/htdocs/index.php Last leak repeated 5 times /devage/php-src/Zend/zend_builtin_functions.c(155) : Freeing 0x080ECEE8 (10 bytes), script=/srv/cowiki/htdocs/index.php /devage/php-src/Zend/zend_opcode.c(344) : Freeing 0x080D8118 (13024 bytes), script=/srv/cowiki/htdocs/index.php /devage/php-src/Zend/zend_opcode.c(66) : Freeing 0x080D80DC (4 bytes), script=/srv/cowiki/htdocs/index.php /devage/php-src/Zend/zend_language_scanner.l(487) : Freeing 0x080D7F54 (116 bytes), script=/srv/cowiki/htdocs/index.php /devage/php-src/main/php_variables.c(179) : Freeing 0x080D52F4 (16 bytes), script=/srv/cowiki/htdocs/index.php /devage/php-src/main/php_variables.c(56) : Freeing 0x080D524C (15 bytes), script=/srv/cowiki/htdocs/index.php === Total 2277 memory leaks detected === /root/turck-mmcache-2.4.2/mmcache.c(2436) : Freeing 0x46CCC244 (71 bytes), script=/srv/cowiki/htdocs/index.php Last leak repeated 61 times /root/turck-mmcache-2.4.2/mmcache.c(2067) : Freeing 0x46D86644 (9 bytes), script=/srv/cowiki/htdocs/index.php Last leak repeated 199 times /devage/php-src/Zend/zend_compile.c(44) : Freeing 0x46D85AF0 (11 bytes), script=/srv/cowiki/htdocs/index.php Last leak repeated 188 times /devage/php-src/Zend/zend_operators.c(1106) : Freeing 0x46D851E4 (51 bytes), script=/srv/cowiki/htdocs/index.php Last leak repeated 10 times /devage/php-src/Zend/zend_execute.c(3218) : Freeing 0x46D7F818 (32 bytes), script=/srv/cowiki/htdocs/index.php /devage/php-src/Zend/zend_hash.c(157) : Actual location (location was relayed) Last leak repeated 29 times /devage/php-src/Zend/zend_opcode.c(344) : Freeing 0x46D5C5B8 (13024 bytes), script=/srv/cowiki/htdocs/index.php /devage/php-src/Zend/zend_language_scanner.l(487) : Freeing 0x46D7F9F8 (116 bytes), script=/srv/cowiki/htdocs/index.php /devage/php-src/Zend/zend_execute.c(410) : Freeing 0x46D7F6E8 (16 bytes), script=/srv/cowiki/htdocs/index.php Last leak repeated 19 times /devage/php-src/Zend/zend_opcode.c(66) : Freeing 0x46D43604 (4 bytes), script=/srv/cowiki/htdocs/index.php /devage/php-src/Zend/zend_execute.c(2822) : Freeing 0x46D4E244 (5 bytes), script=/srv/cowiki/htdocs/index.php /devage/php-src/Zend/zend_variables.c(137) : Actual location (location was relayed) Last leak repeated 5 times /devage/php-src/Zend/zend_execute.c(2819) : Freeing 0x46D187BC (16 bytes), script=/srv/cowiki/htdocs/index.php Last leak repeated 310 times /devage/php-src/Zend/zend_execute.c(2720) : Freeing 0x46CFCD40 (16 bytes), script=/srv/cowiki/htdocs/index.php Last leak repeated 4 times /devage/php-src/Zend/zend_hash.c(236) : Freeing 0x46CF864C (52 bytes), script=/srv/cowiki/htdocs/index.php Last leak repeated 688 times /devage/php-src/ext/standard/html.c(1034) : Freeing 0x46CEC48C (128 bytes), script=/srv/cowiki/htdocs/index.php Last leak repeated 2 times /devage/php-src/Zend/zend_hash.c(411) : Freeing 0x46CEA880 (256 bytes), script=/srv/cowiki/htdocs/index.php /devage/php-src/Zend/zend_hash.c(157) : Actual location (location was relayed) Last leak repeated 15 times /devage/php-src/Zend/zend_API.c(714) : Freeing 0x46CE8FF8 (32 bytes), script=/srv/cowiki/htdocs/index.php /devage/php-src/Zend/zend_hash.c(157) : Actual location (location was relayed) Last leak repeated 38 times /devage/php-src/Zend/zend_API.c(808) : Freeing 0x46CE8D48 (16 bytes), script=/srv/cowiki/htdocs/index.php Last leak repeated 100 times /devage/php-src/Zend/zend_execute.c(2843) : Freeing 0x46CE89BC (16 bytes), script=/srv/cowiki/htdocs/index.php Last leak repeated 5 times /devage/php-src/Zend/zend_API.c(809) : Freeing 0x46CE8758 (13 bytes), script=/srv/cowiki/htdocs/index.php Last leak repeated 100 times /devage/php-src/Zend/zend_objects.c(106) : Freeing 0x46CE6E50 (12 bytes), script=/srv/cowiki/htdocs/index.php Last leak repeated 40 times /devage/php-src/Zend/zend_execute.c(3097) : Freeing 0x46CE6E0C (16 bytes), script=/srv/cowiki/htdocs/index.php Last leak repeated 40 times /devage/php-src/Zend/zend_execute.c(872) : Freeing 0x46CE6B7C (16 bytes), script=/srv/cowiki/htdocs/index.php Last leak repeated 43 times /devage/php-src/Zend/zend_execute.c(2532) : Freeing 0x46CE6AB0 (16 bytes), script=/srv/cowiki/htdocs/index.php Last leak repeated 16 times /devage/php-src/Zend/zend_execute.c(3098) : Freeing 0x46CE53F8 (44 bytes), script=/srv/cowiki/htdocs/index.php /devage/php-src/Zend/zend_API.c(713) : Actual location (location was relayed) Last leak repeated 40 times /devage/php-src/Zend/zend_execute.c(879) : Freeing 0x46CD1008 (35 bytes), script=/srv/cowiki/htdocs/index.php /devage/php-src/Zend/zend_hash.c(377) : Actual location (location was relayed) Last leak repeated 17 times /devage/php-src/ext/standard/datetime.c(988) : Freeing 0x46CB5A34 (17 bytes), script=/srv/cowiki/htdocs/index.php /devage/php-src/ext/pcre/php_pcre.c(829) : Freeing 0x46CB6184 (51 bytes), script=/srv/cowiki/htdocs/index.php /devage/php-src/Zend/zend_alloc.c(232) : Actual location (location was relayed) Last leak repeated 1 time /devage/php-src/ext/standard/basic_functions.c(2875) : Freeing 0x46CB1128 (16 bytes), script=/srv/cowiki/htdocs/index.php Last leak repeated 101 times /devage/php-src/ext/standard/basic_functions.c(2877) : Freeing 0x46CAEF58 (97 bytes), script=/srv/cowiki/htdocs/index.php /devage/php-src/Zend/zend_variables.c(137) : Actual location (location was relayed) Last leak repeated 89 times /devage/php-src/Zend/zend_variables.c(149) : Freeing 0x46CAB918 (32 bytes), script=/srv/cowiki/htdocs/index.php /devage/php-src/Zend/zend_hash.c(157) : Actual location (location was relayed) Last leak repeated 13 times /devage/php-src/Zend/zend_execute.c(552) : Freeing 0x080F4800 (9 bytes), script=/srv/cowiki/htdocs/index.php /devage/php-src/Zend/zend_variables.c(137) : Actual location (location was relayed) Last leak repeated 1 time /devage/php-src/Zend/zend_execute.c(605) : Freeing 0x080F57D8 (16 bytes), script=/srv/cowiki/htdocs/index.php Last leak repeated 2 times /root/turck-mmcache-2.4.2/mmcache.c(2086) : Freeing 0x46CA8A80 (32 bytes), script=/srv/cowiki/htdocs/index.php Last leak repeated 4 times /root/turck-mmcache-2.4.2/mmcache.c(2083) : Freeing 0x46CA853C (44 bytes), script=/srv/cowiki/htdocs/index.php Last leak repeated 4 times /devage/php-src/Zend/zend_execute_API.c(421) : Freeing 0x46CA4C90 (44 bytes), script=/srv/cowiki/htdocs/index.php /devage/php-src/Zend/zend_variables.c(148) : Actual location (location was relayed) Last leak repeated 11 times /devage/php-src/Zend/zend_API.c(975) : Freeing 0x46C9D0EC (35 bytes), script=/srv/cowiki/htdocs/index.php /devage/php-src/Zend/zend_hash.c(377) : Actual location (location was relayed) Last leak repeated 5 times /devage/php-src/ext/standard/string.c(810) : Freeing 0x46C9D098 (32 bytes), script=/srv/cowiki/htdocs/index.php /devage/php-src/Zend/zend_hash.c(157) : Actual location (location was relayed) Last leak repeated 7 times /devage/php-src/Zend/zend_API.c(973) : Freeing 0x46C89A08 (6 bytes), script=/srv/cowiki/htdocs/index.php Last leak repeated 5 times /devage/php-src/ext/standard/dns.c(136) : Freeing 0x46C97D54 (20 bytes), script=/srv/cowiki/htdocs/index.php /devage/php-src/Zend/zend_execute.c(2847) : Freeing 0x46C96E00 (9 bytes), script=/srv/cowiki/htdocs/index.php /devage/php-src/Zend/zend_variables.c(137) : Actual location (location was relayed) Last leak repeated 1 time /devage/php-src/Zend/zend_execute_API.c(393) : Freeing 0x46C95B88 (16 bytes), script=/srv/cowiki/htdocs/index.php Last leak repeated 1 time /devage/php-src/Zend/zend_builtin_functions.c(155) : Freeing 0x46C95AD0 (10 bytes), script=/srv/cowiki/htdocs/index.php /root/turck-mmcache-2.4.2/mmcache.c(2057) : Freeing 0x46C9500C (16 bytes), script=/srv/cowiki/htdocs/index.php Last leak repeated 15 times /devage/php-src/ext/standard/string.c(1126) : Freeing 0x46C94E0C (10 bytes), script=/srv/cowiki/htdocs/index.php /devage/php-src/Zend/zend_execute.c(597) : Freeing 0x46C92674 (5 bytes), script=/srv/cowiki/htdocs/index.php /devage/php-src/Zend/zend_variables.c(137) : Actual location (location was relayed) Last leak repeated 1 time /devage/php-src/Zend/zend_execute.c(594) : Freeing 0x46C92630 (16 bytes), script=/srv/cowiki/htdocs/index.php Last leak repeated 1 time /devage/php-src/Zend/zend_execute.c(2739) : Freeing 0x46C94658 (16 bytes), script=/srv/cowiki/htdocs/index.php /devage/php-src/ext/standard/string.c(2641) : Freeing 0x08102B90 (2 bytes), script=/srv/cowiki/htdocs/index.php /usr/src/web/php/php5/ext/standard/var_unserializer.re(171) : Freeing 0x08103784 (16 bytes), script=/srv/cowiki/htdocs/index.php Last leak repeated 3 times /usr/src/web/php/php5/ext/standard/var_unserializer.re(338) : Freeing 0x081035C4 (32 bytes), script=/srv/cowiki/htdocs/index.php /devage/php-src/Zend/zend_hash.c(157) : Actual location (location was relayed) Last leak repeated 2 times /usr/src/web/php/php5/ext/standard/var_unserializer.re(336) : Freeing 0x08103560 (44 bytes), script=/srv/cowiki/htdocs/index.php Last leak repeated 2 times /devage/php-src/ext/session/session.c(486) : Freeing 0x080FC748 (16 bytes), script=/srv/cowiki/htdocs/index.php /root/turck-mmcache-2.4.2/mmcache.c(2146) : Freeing 0x080F562C (18 bytes), script=/srv/cowiki/htdocs/index.php Last leak repeated 2 times /devage/php-src/Zend/zend_API.c(972) : Freeing 0x080EF584 (16 bytes), script=/srv/cowiki/htdocs/index.php Last leak repeated 5 times /devage/php-src/main/php_variables.c(179) : Freeing 0x080D50A4 (16 bytes), script=/srv/cowiki/htdocs/index.php /devage/php-src/main/php_variables.c(56) : Freeing 0x080D581C (13 bytes), script=/srv/cowiki/htdocs/index.php === Total 2301 memory leaks detected === Reproduce code: --------------- Running coWiki (http://www.develnet.org) with mod_php5 and enabled Turck MMCache. Disable MMCache let PHP simply segfault (no other informations as the PID of segfaulted child). -- Edit bug report at http://bugs.php.net/?id=26000&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=26000&r=trysnapshot4 Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=26000&r=trysnapshot5 Fixed in CVS: http://bugs.php.net/fix.php?id=26000&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=26000&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=26000&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=26000&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=26000&r=support Expected behavior: http://bugs.php.net/fix.php?id=26000&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=26000&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=26000&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=26000&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=26000&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=26000&r=dst IIS Stability: http://bugs.php.net/fix.php?id=26000&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=26000&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=26000&r=float