Edit report at https://bugs.php.net/bug.php?id=64544&edit=1

 ID:                 64544
 Patch added by:     larue...@php.net
 Reported by:        ni...@php.net
 Summary:            Valgrind warnings after using putenv (due to
                     processtitle)
 Status:             Open
 Type:               Bug
 Package:            CGI/CLI related
 PHP Version:        5.5.0beta1
 Block user comment: N
 Private report:     N

 New Comment:

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


Previous Comments:
------------------------------------------------------------------------
[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

Reply via email to