[php-maint] Bug#477185: Bug#477185: Memory leak in date command

Raphael Geissert atomo64 at gmail.com
Mon Apr 21 21:01:10 UTC 2008


On 21/04/2008, Dominique Fournier <dominique.fournier at grenoble.cnrs.fr> wrote:
> Package: php5-cli
>  Version: 5.2.0-8+etch10
>
>  Hello,
>
>  When I use the date command in a loop, I see the memory grow up.
>  Code :
>  <?
>     while (1)
>     {
>       printf (date("d/m/Y H:i:s")." ".memory_get_usage() ." \n");
>     }
>  ?>
>
>
>  The result is :
>  ....
>  21/04/2008 18:51:32 15657592
>  21/04/2008 18:51:32 15658136
>  21/04/2008 18:51:32 15658680
>  21/04/2008 18:51:32 15659224
>  21/04/2008 18:51:32 15659768
>  21/04/2008 18:51:32 15660312
>  ...

I can confirm in etch with php5 5.2.0-8+etch10 only under i686, but
not under x86_64.

Related stuff:

On the machine where I can reproduce:
$ apt-cache policy tzdata
tzdata:
  Installed: 2007k-1etch1
Related stuff:

On the machine where I can NOT reproduce:
$ apt-cache policy tzdata
tzdata:
  Installed: 2007j-1etch1

... but even after upgrading to 2007k-1etch1, as expected, I still
can't reproduce.

I guess valgrind is our friend in this case, anyone willing to track this down?

P.S. I can't reproduce the problem on lenny/sid.

>
>
>  I can see this on ps command, where the memory use goes up.
>
>  This arrive on AMD64 and i386 machines, in Etch, up to date.
>
>  Thanks
>  --
>     __   __   ___  __
>   /     /  /  /  /    Dominique Fournier
>   /     /__/  /  /     CNRS / Centre Réseau et Informatique Commun
>   \___ /  \ _/_  \___  Tel : 04 76 88 78 59 / Fax : 04 76 88 12 95
>                       Assistance Technique  CRIC : 04 76 88 79 54
>  Certificats :
> http://igc.services.cnrs.fr/Doc/General/trust.html
>  Site Perso  :  http://dominique.fournier.homedns.org
>    ;-)
>
>
> _______________________________________________
>  pkg-php-maint mailing list
>  pkg-php-maint at lists.alioth.debian.org
> http://lists.alioth.debian.org/mailman/listinfo/pkg-php-maint
>
>


-- 
Atomo64 - Raphael

Please avoid sending me Word, PowerPoint or Excel attachments.
See http://www.gnu.org/philosophy/no-word-attachments.html


More information about the pkg-php-maint mailing list