From: Operating system: Linux PHP version: 5.4.0RC1 Package: Session related Bug Type: Bug Bug description:valgrind reports LEAK --with-mm
Description: ------------ Valgrind reports LEAKs --with-mm (php-src HEAD is affected, too. I noticed this while I'm making strict session patch.) ===================================================================== LEAKED TEST SUMMARY --------------------------------------------------------------------- session rfc1867 [ext/session/tests/rfc1867.phpt] session rfc1867 [ext/session/tests/rfc1867_cleanup.phpt] session rfc1867 disabled [ext/session/tests/rfc1867_disabled.phpt] session rfc1867 disabled 2 [ext/session/tests/rfc1867_disabled_2.phpt] session rfc1867 [ext/session/tests/rfc1867_inter.phpt] session rfc1867 no name [ext/session/tests/rfc1867_no_name.phpt] session rfc1867 sid cookie [ext/session/tests/rfc1867_sid_cookie.phpt] session rfc1867 sid get [ext/session/tests/rfc1867_sid_get.phpt] session rfc1867 sid get 2 [ext/session/tests/rfc1867_sid_get_2.phpt] session rfc1867 sid cookie [ext/session/tests/rfc1867_sid_invalid.phpt] session rfc1867 sid only cookie [ext/session/tests/rfc1867_sid_only_cookie.phpt] session rfc1867 sid only cookie 2 [ext/session/tests/rfc1867_sid_only_cookie_2.phpt] session rfc1867 sid post [ext/session/tests/rfc1867_sid_post.phpt] Test session_module_name() function : variation [ext/session/tests/session_module_name_variation3.phpt] Test session_name() function : error functionality [ext/session/tests/session_name_basic.phpt] Test session_name() function : error functionality [ext/session/tests/session_name_error.phpt] Test session_name() function : variation [ext/session/tests/session_name_variation1.phpt] Test session_save_path() function : basic functionality [ext/session/tests/session_save_path_basic.phpt] Test session_save_path() function : error functionality [ext/session/tests/session_save_path_error.phpt] Test session_save_path() function : variation [ext/session/tests/session_save_path_variation1.phpt] Test session_save_path() function : variation [ext/session/tests/session_save_path_variation4.phpt] Test session_save_path() function : variation [ext/session/tests/session_save_path_variation5.phpt] Test session_set_save_handler() function : basic functionality [ext/session/tests/session_set_save_handler_basic.phpt] Test session_set_save_handler() function : using closures as callbacks [ext/session/tests/session_set_save_handler_closures.phpt] Test session_set_save_handler() function : error functionality [ext/session/tests/session_set_save_handler_error3.phpt] Test session_set_save_handler() function : variation [ext/session/tests/session_set_save_handler_variation4.phpt] ===================================================================== All LEAK reports are the same. ******* ext/session/tests/rfc1867.mem ************ ==29422== Invalid read of size 1 ==29422== at 0x57D8D3: zm_startup_ps_mm (mod_mm.c:281) ==29422== by 0x578A94: zm_startup_session (session.c:2178) ==29422== by 0x6784D4: zend_startup_module_ex (zend_API.c:1653) ==29422== by 0x681304: zend_hash_apply (zend_hash.c:716) ==29422== by 0x67BB15: zend_startup_modules (zend_API.c:1780) ==29422== by 0x61C27B: php_module_startup (main.c:2132) ==29422== by 0x718F02: php_cgi_startup (cgi_main.c:931) ==29422== by 0x7195D2: main (cgi_main.c:1873) ==29422== Address 0x4fa31af is 1 bytes before a block of size 1 alloc'd ==29422== at 0x4A05FDE: malloc (vg_replace_malloc.c:236) ==29422== by 0x6516AD: zend_strndup (zend_alloc.c:2617) ==29422== by 0x62361B: php_ini_parser_cb (php_ini.c:274) ==29422== by 0x64B84E: ini_parse (zend_ini_parser.c:1669) ==29422== by 0x64BAED: zend_parse_ini_string (zend_ini_parser.c:348) ==29422== by 0x622B44: php_init_config (php_ini.c:722) ==29422== by 0x61C1C9: php_module_startup (main.c:2078) ==29422== by 0x718F02: php_cgi_startup (cgi_main.c:931) ==29422== by 0x7195D2: main (cgi_main.c:1873) ==29422== Test script: --------------- N/A Expected result: ---------------- No LEAKs Actual result: -------------- LEAKs are reported -- Edit bug report at https://bugs.php.net/bug.php?id=60339&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=60339&r=trysnapshot54 Try a snapshot (PHP 5.3): https://bugs.php.net/fix.php?id=60339&r=trysnapshot53 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=60339&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=60339&r=fixed Fixed in SVN and need be documented: https://bugs.php.net/fix.php?id=60339&r=needdocs Fixed in release: https://bugs.php.net/fix.php?id=60339&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=60339&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=60339&r=needscript Try newer version: https://bugs.php.net/fix.php?id=60339&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=60339&r=support Expected behavior: https://bugs.php.net/fix.php?id=60339&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=60339&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=60339&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=60339&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=60339&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=60339&r=dst IIS Stability: https://bugs.php.net/fix.php?id=60339&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=60339&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=60339&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=60339&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=60339&r=mysqlcfg