Edit report at https://bugs.php.net/bug.php?id=64544&edit=1
ID: 64544 Updated by: ke...@php.net Reported by: ni...@php.net Summary: Valgrind warnings after using putenv (due to processtitle) -Status: Open +Status: Closed Type: Bug Package: CGI/CLI related PHP Version: 5.5.0beta1 -Assigned To: +Assigned To: keyur Block user comment: N Private report: N New Comment: The fix for this bug has been committed. 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. Fix committed to git: https://github.com/php/php- src/commit/5bf6323e5114646357197a343d202c0f1b8450a1 Thanks for finding this! Previous Comments: ------------------------------------------------------------------------ [2013-03-29 03:52:24] larue...@php.net The following patch has been added/updated: Patch Name: bug64544.patch Revision: 1364529144 URL: https://bugs.php.net/patch-display.php?bug=64544&patch=bug64544.patch&revision=1364529144 ------------------------------------------------------------------------ [2013-03-29 03:11:48] larue...@php.net The following patch has been added/updated: Patch Name: bug64544.patch Revision: 1364526708 URL: https://bugs.php.net/patch-display.php?bug=64544&patch=bug64544.patch&revision=1364526708 ------------------------------------------------------------------------ [2013-03-28 17:07:41] ni...@php.net Description: ------------ Due to the changes introduced by https://wiki.php.net/rfc/cli_process_title running <?php putenv("FOO=BAR") causes the following valgrind warning on shutdown: ==2488== Invalid free() / delete / delete[] / realloc() ==2488== at 0x402B06C: free (in /usr/lib/valgrind/vgpreload_memcheck-x86-linux.so) ==2488== by 0x49B6E03: clearenv (setenv.c:360) ==2488== by 0x4A3C237: _Exit (_exit.S:30) ==2488== Address 0x69c6bb0 is 0 bytes inside a block of size 180 free'd ==2488== at 0x402B06C: free (in /usr/lib/valgrind/vgpreload_memcheck-x86-linux.so) ==2488== by 0x8744A6D: cleanup_ps_args (ps_title.c:410) ==2488== by 0x873A156: main (php_cli.c:1405) ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=64544&edit=1