php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #40929 pear scripts memory leaks
Submitted: 2007-03-27 14:06 UTC Modified: 2007-03-27 14:28 UTC
From: mzubac at post dot cz Assigned: derick (profile)
Status: Not a bug Package: Unknown/Other Function
PHP Version: 4.4.6 OS: Linux
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: mzubac at post dot cz
New email:
PHP Version: OS:

 

 [2007-03-27 14:06 UTC] mzubac at post dot cz
Description:
------------
----------------------------------------------------------------------

PHP 4.4.6 (cli) (built: Mar 23 2007 11:54:10) (DEBUG)
Copyright (c) 1997-2007 The PHP Group
Zend Engine v1.3.0, Copyright (c) 1998-2004 Zend Technologies

----------------------------------------------------------------------

[PHP Modules]
calendar
ctype
curl
exif
ftp
gd
iconv
mbstring
mime_magic
mysql
overload
pcntl
pcre
pgsql
posix
session
sockets
standard
sysvsem
sysvshm
tokenizer
xml
xmlrpc
zlib

[Zend Modules]

----------------------------------------------------------------------

PHP Version => 4.4.6

System => Linux host 2.6.13.220061012 #1 SMP Thu Oct 12 14:44:21 CEST 2006 i686
Build Date => Mar 23 2007 11:52:50
Configure Command => ./configure --prefix /usr/local/php-4.4.6 --with-apxs=/usr/local/apache/bin/apxs --enable-mbstring --disable-rpath --enable-debug --enable-memory-limit --enable-mbregex --enable-mbstr-enc-trans --enable-trans-sid --with-curl  --with-regex=php --disable-rpath --enable-debug --enable-memory-limit --with-layout=GNU --enable-calendar --enable-sysvsem --enable-sysvshm --enable-track-vars  --enable-exif --with-zlib  --disable-static  --with-jpeg-dir=shared,/usr --with-png-dir=shared,/usr --with-freetype-dir=shared,/usr --with-ttf --with-pgsql=/usr/local/postgresql-8.0.6 --with-xmlrpc --with-iconv --enable-sockets --with-exec-dir=/usr/local/php-4.4.6/libexec --enable-gd-native-ttf --enable-ftp --with-gd --with-t1lib --with-mime-magic --enable-pcntl
Server API => Command Line Interface
Virtual Directory Support => disabled
Configuration File (php.ini) Path => /usr/local/php-4.4.6/lib/php.ini
PHP API => 20020918
PHP Extension => 20020429
Zend Extension => 20050606
Debug Build => yes
Zend Memory Manager => enabled
Thread Safety => disabled
Registered PHP Streams => php, http, ftp, compress.zlib

----------------------------------------------------------------------

user@host:/usr/local/php-4.4.6/bin$ ldd php
        libcrypt.so.1 => /lib/tls/libcrypt.so.1 (0xb7f27000)
        libexpat.so.1 => /usr/lib/libexpat.so.1 (0xb7f06000)
        libpq.so.4 => /usr/local/postgresql-8.0/lib/libpq.so.4 (0xb7eed000)
        libt1.so.1 => /usr/lib/libt1.so.1 (0xb7ea7000)
        libfreetype.so.6 => /usr/lib/libfreetype.so.6 (0xb7e3a000)
        libz.so.1 => /usr/lib/libz.so.1 (0xb7e28000)
        libpng12.so.0 => /usr/lib/libpng12.so.0 (0xb7e03000)
        libjpeg.so.62 => /usr/lib/libjpeg.so.62 (0xb7de4000)
        libssl.so.0.9.7 => /usr/lib/i686/cmov/libssl.so.0.9.7 (0xb7db3000)
        libcrypto.so.0.9.7 => /usr/lib/i686/cmov/libcrypto.so.0.9.7 (0xb7cb4000)
        libdl.so.2 => /lib/tls/libdl.so.2 (0xb7cb1000)
        libresolv.so.2 => /lib/tls/libresolv.so.2 (0xb7c9f000)
        libm.so.6 => /lib/tls/libm.so.6 (0xb7c7d000)
        libnsl.so.1 => /lib/tls/libnsl.so.1 (0xb7c68000)
        libcurl.so.3 => /usr/lib/libcurl.so.3 (0xb7c36000)
        libidn.so.11 => /usr/lib/libidn.so.11 (0xb7c06000)
        libc.so.6 => /lib/tls/libc.so.6 (0xb7ad1000)
        libpthread.so.0 => /lib/tls/libpthread.so.0 (0xb7ac2000)
        /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0xb7f5d000)

----------------------------------------------------------------------


Reproduce code:
---------------
/php-4.4.6/pear/install-pear.php

Actual result:
--------------
/php-4.4.6/Zend/zend_execute.c(1818) :  Freeing 0x08C2BDDC (12 bytes), script=/php-4.4.6/pear/install-pear.php
Last leak repeated 47 times
/php-4.4.6/Zend/zend_execute.c(2126) :  Freeing 0x08B54264 (12 bytes), script=/php-4.4.6/pear/install-pear.php
Last leak repeated 1270 times
/php-4.4.6/Zend/zend_hash.c(458) :  Freeing 0x08C2694C (128 bytes), script=/php-4.4.6/pear/install-pear.php
Last leak repeated 152 times
/php-4.4.6/Zend/zend_execute.c(2129) :  Freeing 0x08E0CA4C (107 bytes), script=/php-4.4.6/pear/install-pear.php
/php-4.4.6/Zend/zend_variables.c(111) : Actual location (location was relayed)
Last leak repeated 1270 times
/php-4.4.6/Zend/zend_hash.c(280) :  Freeing 0x08D0CC0C (82 bytes), script=/php-4.4.6/pear/install-pear.php
Last leak repeated 5294 times
/php-4.4.6/Zend/zend_hash.c(424) :  Freeing 0x08D65C7C (35 bytes), script=/php-4.4.6/pear/install-pear.php
Last leak repeated 1958 times
/php-4.4.6/Zend/zend_execute.c(1676) :  Freeing 0x08D6150C (12 bytes), script=/php-4.4.6/pear/install-pear.php
Last leak repeated 197 times
/php-4.4.6/Zend/zend_execute.c(1950) :  Freeing 0x08E1BA5C (12 bytes), script=/php-4.4.6/pear/install-pear.php
Last leak repeated 53 times
/php-4.4.6/Zend/zend_execute.c(512) :  Freeing 0x08E1BF1C (12 bytes), script=/php-4.4.6/pear/install-pear.php
Last leak repeated 631 times
/php-4.4.6/Zend/zend_execute.c(2392) :  Freeing 0x08D8C0EC (12 bytes), script=/php-4.4.6/pear/install-pear.php
Last leak repeated 39 times
/php-4.4.6/Zend/zend_execute.c(1845) :  Freeing 0x08D7A1B4 (12 bytes), script=/php-4.4.6/pear/install-pear.php
Last leak repeated 71 times
/php-4.4.6/Zend/zend_execute.c(2075) :  Freeing 0x08E2C71C (12 bytes), script=/php-4.4.6/pear/install-pear.php
Last leak repeated 62 times
/php-4.4.6/Zend/zend_hash.c(204) :  Freeing 0x08E237E4 (32 bytes), script=/php-4.4.6/pear/install-pear.php
Last leak repeated 1708 times
/php-4.4.6/ext/standard/string.c(1057) :  Freeing 0x08DA4DF4 (5 bytes), script=/php-4.4.6/pear/install-pear.php
/php-4.4.6/Zend/zend_variables.c(111) : Actual location (location was relayed)
Last leak repeated 153 times
/php-4.4.6/Zend/zend_execute.c(787) :  Freeing 0x08DA2994 (44 bytes), script=/php-4.4.6/pear/install-pear.php
/php-4.4.6/Zend/zend_API.c(563) : Actual location (location was relayed)
Last leak repeated 8 times
/php-4.4.6/ext/standard/var_unserializer.c(625) :  Freeing 0x08DE3CDC (44 bytes), script=/php-4.4.6/pear/install-pear.php
Last leak repeated 36 times
/php-4.4.6/Zend/zend_execute.c(795) :  Freeing 0x08C67F84 (12 bytes), script=/php-4.4.6/pear/install-pear.php
Last leak repeated 319 times
/php-4.4.6/ext/standard/var_unserializer.c(230) :  Freeing 0x08D6E0D4 (12 bytes), script=/php-4.4.6/pear/install-pear.php
Last leak repeated 102 times
/php-4.4.6/ext/standard/var_unserializer.c(679) :  Freeing 0x08DE1C9C (13 bytes), script=/php-4.4.6/pear/install-pear.php
Last leak repeated 59 times
/php-4.4.6/Zend/zend_execute.c(784) :  Freeing 0x08DDF354 (12 bytes), script=/php-4.4.6/pear/install-pear.php
Last leak repeated 8 times
/php-4.4.6/Zend/zend_execute.c(2106) :  Freeing 0x08C60234 (44 bytes), script=/php-4.4.6/pear/install-pear.php
/php-4.4.6/Zend/zend_API.c(563) : Actual location (location was relayed)
Last leak repeated 593 times
/php-4.4.6/Zend/zend_API.c(595) :  Freeing 0x08D0F19C (44 bytes), script=/php-4.4.6/pear/install-pear.php
/php-4.4.6/Zend/zend_API.c(583) : Actual location (location was relayed)
Last leak repeated 62 times
/php-4.4.6/Zend/zend_execute.c(504) :  Freeing 0x08D8834C (44 bytes), script=/php-4.4.6/pear/install-pear.php
/php-4.4.6/Zend/zend_variables.c(123) : Actual location (location was relayed)
Last leak repeated 15 times
/php-4.4.6/ext/pcre/php_pcre.c(868) :  Freeing 0x08D8FCCC (129 bytes), script=/php-4.4.6/pear/install-pear.php
/php-4.4.6/Zend/zend_alloc.c(233) : Actual location (location was relayed)
Last leak repeated 129 times
/php-4.4.6/Zend/zend_API.c(760) :  Freeing 0x08D8FC8C (12 bytes), script=/php-4.4.6/pear/install-pear.php
Last leak repeated 129 times
/php-4.4.6/Zend/zend_execute.c(1297) :  Freeing 0x08DA0D8C (44 bytes), script=/php-4.4.6/pear/install-pear.php
/php-4.4.6/Zend/zend_variables.c(123) : Actual location (location was relayed)
Last leak repeated 19 times
/php-4.4.6/Zend/zend_execute.c(2608) :  Freeing 0x08D969EC (89 bytes), script=/php-4.4.6/pear/install-pear.php
/php-4.4.6/Zend/zend_variables.c(111) : Actual location (location was relayed)
Last leak repeated 5 times
/php-4.4.6/Zend/zend_execute.c(276) :  Freeing 0x08C77074 (131 bytes), script=/php-4.4.6/pear/install-pear.php
/php-4.4.6/Zend/zend_variables.c(111) : Actual location (location was relayed)
Last leak repeated 779 times
/php-4.4.6/ext/xml/xml.c(512) :  Freeing 0x08D09D6C (48 bytes), script=/php-4.4.6/pear/install-pear.php
Last leak repeated 1613 times
/php-4.4.6/Zend/zend_execute.c(273) :  Freeing 0x08DE5304 (12 bytes), script=/php-4.4.6/pear/install-pear.php
Last leak repeated 801 times
/php-4.4.6/ext/standard/string.c(569) :  Freeing 0x08D6A2C4 (5 bytes), script=/php-4.4.6/pear/install-pear.php
Last leak repeated 35 times
/php-4.4.6/Zend/zend_API.c(679) :  Freeing 0x08DE1764 (12 bytes), script=/php-4.4.6/pear/install-pear.php
Last leak repeated 1613 times
/php-4.4.6/ext/xml/xml.c(647) :  Freeing 0x08DD879C (12 bytes), script=/php-4.4.6/pear/install-pear.php
Last leak repeated 546 times
/php-4.4.6/Zend/zend_execute.c(1812) :  Freeing 0x08DDE0DC (44 bytes), script=/php-4.4.6/pear/install-pear.php
/php-4.4.6/Zend/zend_variables.c(138) : Actual location (location was relayed)
Last leak repeated 3 times
/php-4.4.6/ext/xml/xml.c(648) :  Freeing 0x08DDE4B4 (44 bytes), script=/php-4.4.6/pear/install-pear.php
/php-4.4.6/Zend/zend_API.c(563) : Actual location (location was relayed)
Last leak repeated 546 times
/php-4.4.6/Zend/zend_execute.c(1808) :  Freeing 0x08D62F14 (12 bytes), script=/php-4.4.6/pear/install-pear.php
Last leak repeated 3 times
/php-4.4.6/Zend/zend_operators.c(1030) :  Freeing 0x08D63D34 (27 bytes), script=/php-4.4.6/pear/install-pear.php
Last leak repeated 5 times
/php-4.4.6/Zend/zend_execute.c(501) :  Freeing 0x08C6B6EC (12 bytes), script=/php-4.4.6/pear/install-pear.php
Last leak repeated 17 times
/php-4.4.6/Zend/zend_execute.c(1848) :  Freeing 0x08C4BB9C (8 bytes), script=/php-4.4.6/pear/install-pear.php
/php-4.4.6/Zend/zend_variables.c(111) : Actual location (location was relayed)
Last leak repeated 52 times
/php-4.4.6/ext/standard/php_smart_str.h(83) :  Freeing 0x08CFAFA4 (129 bytes), script=/php-4.4.6/pear/install-pear.php
Last leak repeated 1 time
/php-4.4.6/Zend/zend_operators.c(1069) :  Freeing 0x08C49694 (97 bytes), script=/php-4.4.6/pear/install-pear.php
Last leak repeated 34 times
/php-4.4.6/Zend/zend_execute.c(2114) :  Freeing 0x08BAE504 (12 bytes), script=/php-4.4.6/pear/install-pear.php
Last leak repeated 23 times
/php-4.4.6/Zend/zend_execute.c(1922) :  Freeing 0x08AD13AC (44 bytes), script=/php-4.4.6/pear/install-pear.php
/php-4.4.6/Zend/zend_variables.c(123) : Actual location (location was relayed)
Last leak repeated 1 time
/php-4.4.6/ext/standard/php_smart_str.h(83) :  Freeing 0x088F4F8C (133 bytes), script=/php-4.4.6/pear/install-pear.php
/php-4.4.6/Zend/zend_compile.c(1703) :  Freeing 0x088FFF54 (12 bytes), script=/php-4.4.6/pear/install-pear.php
Last leak repeated 38 times
Zend/zend_language_parser.c(3915) :  Freeing 0x088FFEA4 (44 bytes), script=/php-4.4.6/pear/install-pear.php
/php-4.4.6/Zend/zend_API.c(563) : Actual location (location was relayed)
Last leak repeated 6 times
/php-4.4.6/Zend/zend_execute_API.c(312) :  Freeing 0x0885B09C (12 bytes), script=/php-4.4.6/pear/install-pear.php
Last leak repeated 12 times
/php-4.4.6/Zend/zend_execute_API.c(339) :  Freeing 0x0885AE3C (44 bytes), script=/php-4.4.6/pear/install-pear.php
/php-4.4.6/Zend/zend_variables.c(123) : Actual location (location was relayed)
Last leak repeated 15 times
/php-4.4.6/ext/standard/formatted_print.c(769) :  Freeing 0x0885AC34 (4 bytes), script=/php-4.4.6/pear/install-pear.php
Last leak repeated 1 time
Zend/zend_language_scanner.c(4673) :  Freeing 0x0884D434 (1 bytes), script=/php-4.4.6/pear/install-pear.php
Last leak repeated 128 times
/php-4.4.6/Zend/zend_hash.c(1076) :  Freeing 0x088551AC (8 bytes), script=/php-4.4.6/pear/install-pear.php
Last leak repeated 2 times
/php-4.4.6/ext/standard/array.c(2160) :  Freeing 0x087C3144 (12 bytes), script=/php-4.4.6/pear/install-pear.php
Last leak repeated 2 times
/php-4.4.6/ext/standard/array.c(2148) :  Freeing 0x087C26D4 (44 bytes), script=/php-4.4.6/pear/install-pear.php
/php-4.4.6/Zend/zend_API.c(563) : Actual location (location was relayed)
/php-4.4.6/Zend/zend_constants.c(238) :  Freeing 0x087C16CC (16 bytes), script=/php-4.4.6/pear/install-pear.php
/php-4.4.6/Zend/zend_variables.c(111) : Actual location (location was relayed)
Last leak repeated 14 times
/php-4.4.6/Zend/zend_compile.c(1899) :  Freeing 0x085FFBBC (12 bytes), script=/php-4.4.6/pear/install-pear.php
Last leak repeated 167 times
Zend/zend_language_parser.c(3935) :  Freeing 0x085FF6C4 (44 bytes), script=/php-4.4.6/pear/install-pear.php
/php-4.4.6/Zend/zend_API.c(563) : Actual location (location was relayed)
Last leak repeated 23 times
Zend/zend_language_parser.c(3940) :  Freeing 0x085FE6B4 (44 bytes), script=/php-4.4.6/pear/install-pear.php
/php-4.4.6/Zend/zend_API.c(563) : Actual location (location was relayed)
Last leak repeated 3 times
/php-4.4.6/main/main.c(1597) :  Freeing 0x0848185C (25 bytes), script=/php-4.4.6/pear/install-pear.php
Last leak repeated 1 time
/php-4.4.6/main/main.c(1594) :  Freeing 0x0848181C (12 bytes), script=/php-4.4.6/pear/install-pear.php


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2007-03-27 14:28 UTC] derick@php.net
Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to report
a bug at http://bugs.php.net/how-to-report.php

PHP doesn\'t clear circular references until the end of the request.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Oct 18 04:01:29 2024 UTC