Debian Bug report logs -
#375070
php-pear: pear and pecl memory limits too low
Reported by: Christopher Seufert <seufert@gmail.com>
Date: Fri, 23 Jun 2006 03:18:02 UTC
Severity: important
Tags: patch
Merged with 379774
Found in version php5/5.1.4-0.1
Fixed in version 5.2.0-3
Done: sean finney <seanius@debian.org>
Bug is archived. No further changes may be made.
Toggle useless messages
Report forwarded to debian-bugs-dist@lists.debian.org, seufert@gmail.com, Debian PHP Maintainers <pkg-php-maint@lists.alioth.debian.org>:
Bug#375070; Package php-pear.
(full text, mbox, link).
Acknowledgement sent to Christopher Seufert <seufert@gmail.com>:
New Bug report received and forwarded. Copy sent to seufert@gmail.com, Debian PHP Maintainers <pkg-php-maint@lists.alioth.debian.org>.
(full text, mbox, link).
Message #5 received at submit@bugs.debian.org (full text, mbox, reply):
Package: php-pear
Version: 5.1.4-0.1
Severity: important
Tags: patch
when attemping to install APC using pecl, I get the following error
# pecl install apc
downloading APC-3.0.10.tgz ...
Starting to download APC-3.0.10.tgz (85,818 bytes)
.....................done: 85,818 bytes
Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 143 bytes) in /usr/share/php/PEAR/Builder.php on line 118
So I poked around in /usr/bin/pecl
and altered this line:
exec $PHP -C -n -q $INCARG -d output_buffering=1 -d safe_mode=0 $INCDIR/peclcmd.php "$@"
to look like this:
exec $PHP -C -n -q $INCARG -d output_buffering=1 -d safe_mode=0 -d memory_limit=24M $INCDIR/peclcmd.php "$@"
I had similar problems with pear install , while trying to build a package for phpdocumentor. Perhaps the increased memory_limit could be applied to /usr/bin/pear as well.
-Chris Seufert
-- System Information:
Debian Release: testing/unstable
APT prefers unstable
APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)
Shell: /bin/sh linked to /bin/bash
Kernel: Linux 2.6.15.6
Locale: LANG=en_AU, LC_CTYPE=en_AU (charmap=ISO-8859-1)
Versions of packages php-pear depends on:
ii php5-cli 5.1.4-0.1 command-line interpreter for the p
ii php5-common 5.1.4-0.1 Common files for packages built fr
Versions of packages php-pear recommends:
ii gnupg 1.4.3-1 GNU privacy guard - a free PGP rep
-- no debconf information
Information forwarded to debian-bugs-dist@lists.debian.org, Debian PHP Maintainers <pkg-php-maint@lists.alioth.debian.org>:
Bug#375070; Package php-pear.
(full text, mbox, link).
Acknowledgement sent to Charles Fry <cfry@debian.org>:
Extra info received and forwarded to list. Copy sent to Debian PHP Maintainers <pkg-php-maint@lists.alioth.debian.org>.
(full text, mbox, link).
Message #10 received at 375070@bugs.debian.org (full text, mbox, reply):
[Message part 1 (text/plain, inline)]
retitle 375070 php-pear: pear and pecl memory limits too low
thanks
Hi,
I just wanted to emphasize the importance of addressing this for both
pear and pecl. Currently bug #206536 is dependent on this being resolved
for pear.
thanks,
Charles
--
Hat and tie
Smart and clean
Space between
Spoiled the scene
He should use
Burma-Shave
http://burma-shave.org/jingles/1948/hat_and_tie
[signature.asc (application/pgp-signature, inline)]
Changed Bug title.
Request was from Charles Fry <cfry@debian.org>
to control@bugs.debian.org.
(full text, mbox, link).
Information forwarded to debian-bugs-dist@lists.debian.org, Debian PHP Maintainers <pkg-php-maint@lists.alioth.debian.org>:
Bug#375070; Package php-pear.
(full text, mbox, link).
Acknowledgement sent to Charles Fry <cfry@debian.org>:
Extra info received and forwarded to list. Copy sent to Debian PHP Maintainers <pkg-php-maint@lists.alioth.debian.org>.
(full text, mbox, link).
Message #17 received at 375070@bugs.debian.org (full text, mbox, reply):
[Message part 1 (text/plain, inline)]
> Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 64 bytes) in /usr/share/php/PEAR/Registry.php on line 1012
> Allowed memory size of 8388608 bytes exhausted (tried to allocate 23 bytes)
> make: *** [common-install-indep] Error 1
This is really just an expression of bug #375070.
Charles
--
Ruddy cheeks
And face
Of tan
Neatly shaven
What a man!
Burma-Shave
http://burma-shave.org/jingles/1933/ruddy_cheeks
[signature.asc (application/pgp-signature, inline)]
Tags added: pending
Request was from Sean Finney <seanius@costa.debian.org>
to control@bugs.debian.org.
(full text, mbox, link).
Reply sent to sean finney <seanius@debian.org>:
You have taken responsibility.
(full text, mbox, link).
Notification sent to Christopher Seufert <seufert@gmail.com>:
Bug acknowledged by developer.
(full text, mbox, link).
Message #24 received at 375070-close@bugs.debian.org (full text, mbox, reply):
Source: php5
Source-Version: 5.1.6-5
We believe that the bug you reported is fixed in the latest version of
php5, which is due to be installed in the Debian FTP archive:
libapache-mod-php5_5.1.6-5_amd64.deb
to pool/main/p/php5/libapache-mod-php5_5.1.6-5_amd64.deb
libapache2-mod-php5_5.1.6-5_amd64.deb
to pool/main/p/php5/libapache2-mod-php5_5.1.6-5_amd64.deb
php-pear_5.1.6-5_all.deb
to pool/main/p/php5/php-pear_5.1.6-5_all.deb
php5-cgi_5.1.6-5_amd64.deb
to pool/main/p/php5/php5-cgi_5.1.6-5_amd64.deb
php5-cli_5.1.6-5_amd64.deb
to pool/main/p/php5/php5-cli_5.1.6-5_amd64.deb
php5-common_5.1.6-5_amd64.deb
to pool/main/p/php5/php5-common_5.1.6-5_amd64.deb
php5-curl_5.1.6-5_amd64.deb
to pool/main/p/php5/php5-curl_5.1.6-5_amd64.deb
php5-dev_5.1.6-5_amd64.deb
to pool/main/p/php5/php5-dev_5.1.6-5_amd64.deb
php5-gd_5.1.6-5_amd64.deb
to pool/main/p/php5/php5-gd_5.1.6-5_amd64.deb
php5-ldap_5.1.6-5_amd64.deb
to pool/main/p/php5/php5-ldap_5.1.6-5_amd64.deb
php5-mhash_5.1.6-5_amd64.deb
to pool/main/p/php5/php5-mhash_5.1.6-5_amd64.deb
php5-mysql_5.1.6-5_amd64.deb
to pool/main/p/php5/php5-mysql_5.1.6-5_amd64.deb
php5-mysqli_5.1.6-5_amd64.deb
to pool/main/p/php5/php5-mysqli_5.1.6-5_amd64.deb
php5-odbc_5.1.6-5_amd64.deb
to pool/main/p/php5/php5-odbc_5.1.6-5_amd64.deb
php5-pgsql_5.1.6-5_amd64.deb
to pool/main/p/php5/php5-pgsql_5.1.6-5_amd64.deb
php5-recode_5.1.6-5_amd64.deb
to pool/main/p/php5/php5-recode_5.1.6-5_amd64.deb
php5-snmp_5.1.6-5_amd64.deb
to pool/main/p/php5/php5-snmp_5.1.6-5_amd64.deb
php5-sqlite_5.1.6-5_amd64.deb
to pool/main/p/php5/php5-sqlite_5.1.6-5_amd64.deb
php5-sybase_5.1.6-5_amd64.deb
to pool/main/p/php5/php5-sybase_5.1.6-5_amd64.deb
php5-xmlrpc_5.1.6-5_amd64.deb
to pool/main/p/php5/php5-xmlrpc_5.1.6-5_amd64.deb
php5-xsl_5.1.6-5_amd64.deb
to pool/main/p/php5/php5-xsl_5.1.6-5_amd64.deb
php5_5.1.6-5.diff.gz
to pool/main/p/php5/php5_5.1.6-5.diff.gz
php5_5.1.6-5.dsc
to pool/main/p/php5/php5_5.1.6-5.dsc
php5_5.1.6-5_all.deb
to pool/main/p/php5/php5_5.1.6-5_all.deb
A summary of the changes between this version and the previous one is
attached.
Thank you for reporting the bug, which will now be closed. If you
have further comments please address them to 375070@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
sean finney <seanius@debian.org> (supplier of updated php5 package)
(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@debian.org)
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Format: 1.7
Date: Sat, 28 Oct 2006 14:29:44 +0200
Source: php5
Binary: php5-mysqli php5-gd php5-ldap php5 php5-xmlrpc libapache2-mod-php5 php5-xsl php5-cgi php-pear php5-pgsql php5-cli php5-recode php5-mhash php5-sybase php5-curl php5-odbc php5-mysql php5-common php5-snmp php5-dev php5-sqlite libapache-mod-php5
Architecture: source amd64 all
Version: 5.1.6-5
Distribution: unstable
Urgency: high
Maintainer: Debian PHP Maintainers <pkg-php-maint@lists.alioth.debian.org>
Changed-By: sean finney <seanius@debian.org>
Description:
libapache-mod-php5 - server-side, HTML-embedded scripting language (apache 1.3 module)
libapache2-mod-php5 - server-side, HTML-embedded scripting language (apache 2.0 module)
php-pear - PEAR - PHP Extension and Application Repository
php5 - server-side, HTML-embedded scripting language (meta-package)
php5-cgi - server-side, HTML-embedded scripting language (CGI binary)
php5-cli - command-line interpreter for the php5 scripting language
php5-common - Common files for packages built from the php5 source
php5-curl - CURL module for php5
php5-dev - Files for PHP5 module development
php5-gd - GD module for php5
php5-ldap - LDAP module for php5
php5-mhash - MHASH module for php5
php5-mysql - MySQL module for php5
php5-mysqli - MySQL Improved module for php5
php5-odbc - ODBC module for php5
php5-pgsql - PostgreSQL module for php5
php5-recode - recode module for php5
php5-snmp - SNMP module for php5
php5-sqlite - SQLite module for php5
php5-sybase - Sybase / MS SQL Server module for php5
php5-xmlrpc - XML-RPC module for php5
php5-xsl - XSL module for php5
Closes: 340586 361211 375070 381438 388697 391368 391586 393788
Changes:
php5 (5.1.6-5) unstable; urgency=high
.
[sean finney]
* add a README.Debian.security to clarify how we handle/respond
to security problems in stable releases.
* SECURITY: include patch for integer overflow in zend_alloc.c.
Reference: CVE-2006-04812 (closes: #391586).
patch: 110-CVE-2006-4812_zend_alloc.patch
* bump the debhelper compatibility level to 4.
* remove cyclic depends for mysql/mysqli.
* the long overdue rework of configuration file handling. this also
removes the need for debconf and template translations
(closes: #361211, #393788, #388697).
* start using ucf to manage the the various SAPI php.ini files.
* cleanup and consolidation of a few things in the ./debian dir
* bump the memory limit to 32M for the cli API (closes: #375070, #340586).
* include a fix for missing mbstring headers reported by Jan Wagner
(closes: #391368).
patch: 111-mbstring-headers.patch.
* include support for PTY's in proc_open, as reported by Eike Dehling.
according to php's BTS (http://bugs.php.net/bug.php?id=39224) the
feature was disabled only because the configure script couldn't
accurately determine whether the feature was available, and we know
it is :) (closes: #381438).
patch: 112-proc_open.patch.
* update standards-version to 3.7.2
Files:
69d4eff31fd6fa54a7a6f5e091fe7c46 1800 web optional php5_5.1.6-5.dsc
36610cb53ca214405d3180b36b2d3efd 90272 web optional php5_5.1.6-5.diff.gz
699c804d34c943f0b7f84458ee9102e3 167076 web optional php5-common_5.1.6-5_amd64.deb
27868ba039c8fd2d5c3e27d355692c72 2422102 web optional libapache-mod-php5_5.1.6-5_amd64.deb
36abaf5905734da03d142b00dfb32041 2422946 web optional libapache2-mod-php5_5.1.6-5_amd64.deb
eb4b629f0f799d878392bf7aa3bda5ee 4715644 web optional php5-cgi_5.1.6-5_amd64.deb
98676bfa55f951762655553cee1224b3 2378588 web optional php5-cli_5.1.6-5_amd64.deb
23b16dcb81ca45fb3d8af080f5d7f653 316396 devel optional php5-dev_5.1.6-5_amd64.deb
396acccafb2bf342ae03218e62e6b398 22400 web optional php5-curl_5.1.6-5_amd64.deb
7e317dc8994de55c624ddc39a6447167 33624 web optional php5-gd_5.1.6-5_amd64.deb
1f97b287132e687f9f1c1cae54a03908 18604 web optional php5-ldap_5.1.6-5_amd64.deb
838aa4204bcc36e67b5023d35fcab0ea 5240 web optional php5-mhash_5.1.6-5_amd64.deb
e47306307113c47699aa0e058677d0b3 21764 web optional php5-mysql_5.1.6-5_amd64.deb
27d6baae6c067373f7b046f6175d610f 40562 web optional php5-mysqli_5.1.6-5_amd64.deb
e54c4e499dfbd1c70f0822f506d5d35e 26538 web optional php5-odbc_5.1.6-5_amd64.deb
0f4b860b013cce3fa4178a7966264f6d 40826 web optional php5-pgsql_5.1.6-5_amd64.deb
6cbd0085c1fea12dbbc307a4e3f5db4c 4866 web optional php5-recode_5.1.6-5_amd64.deb
07358f5481424f65e7ebeb62bcac6f1a 11878 web optional php5-snmp_5.1.6-5_amd64.deb
abd4197dc8ee4083b4464be7b0e30d23 25812 web optional php5-sqlite_5.1.6-5_amd64.deb
cf57112b95deb2abaf010b28143dd5dd 19282 web optional php5-sybase_5.1.6-5_amd64.deb
c8fdeb95c1e03455c836e921c8d188ce 39106 web optional php5-xmlrpc_5.1.6-5_amd64.deb
ebd60a1a38b341d075eb84eda5048a7b 12888 web optional php5-xsl_5.1.6-5_amd64.deb
597625809ba5212557e9f1a3953aeecd 1032 web optional php5_5.1.6-5_all.deb
9dbb199ea56b80c7fb61e6e343f600ed 305610 web optional php-pear_5.1.6-5_all.deb
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (GNU/Linux)
iD8DBQFFQ1NoynjLPm522B0RAkZ6AJ4xfXzQZUDtWQGItLxRiIXXhGa4mwCeJw3U
9YQUklsjo+BnowJ0WRPvHC0=
=ZZe2
-----END PGP SIGNATURE-----
Information forwarded to debian-bugs-dist@lists.debian.org, Debian PHP Maintainers <pkg-php-maint@lists.alioth.debian.org>:
Bug#375070; Package php-pear.
(full text, mbox, link).
Acknowledgement sent to aj@andaco.de (Andreas Jochens):
Extra info received and forwarded to list. Copy sent to Debian PHP Maintainers <pkg-php-maint@lists.alioth.debian.org>.
(full text, mbox, link).
Message #29 received at 375070@bugs.debian.org (full text, mbox, reply):
Hello,
On 06-Jul-25 11:48, Charles Fry wrote:
> > Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 64 bytes) in /usr/share/php/PEAR/Registry.php on line 1012
> > Allowed memory size of 8388608 bytes exhausted (tried to allocate 23 bytes)
> > make: *** [common-install-indep] Error 1
>
> This is really just an expression of bug #375070.
Bug #375070 has been closed some time ago.
However, I still get the same 'Fatal error' when trying to build
php-simpletest on amd64.
I can avoid this error by adding something like '-d memory_limit="32M"'
to the 'exec $PHP' line in the /usr/bin/pear script.
Regards
Andreas Jochens
Information forwarded to debian-bugs-dist@lists.debian.org, Debian PHP Maintainers <pkg-php-maint@lists.alioth.debian.org>:
Bug#375070; Package php-pear.
(full text, mbox, link).
Acknowledgement sent to Charles Fry <cfry@debian.org>:
Extra info received and forwarded to list. Copy sent to Debian PHP Maintainers <pkg-php-maint@lists.alioth.debian.org>.
(full text, mbox, link).
Message #34 received at 375070@bugs.debian.org (full text, mbox, reply):
[Message part 1 (text/plain, inline)]
> Bug #375070 has been closed some time ago.
Uh, one week ago. :-)
> However, I still get the same 'Fatal error' when trying to build
> php-simpletest on amd64.
>
> I can avoid this error by adding something like '-d memory_limit="32M"'
> to the 'exec $PHP' line in the /usr/bin/pear script.
The changelog for bug #375070 indicates "bump the memory limit to 32M
for the cli API". Can you verify that you are seeing this problem even
with php5 version 5.1.6-5? If so, it would appear that #375070 should be
reopened.
Charles
--
With glamour girls
You'll never click
Bewhiskered
Like a
Bolshevik
Burma-Shave
http://burma-shave.org/jingles/1940/with_glamour_girls
[signature.asc (application/pgp-signature, inline)]
Information forwarded to debian-bugs-dist@lists.debian.org, Debian PHP Maintainers <pkg-php-maint@lists.alioth.debian.org>:
Bug#375070; Package php-pear.
(full text, mbox, link).
Acknowledgement sent to aj@andaco.de (Andreas Jochens):
Extra info received and forwarded to list. Copy sent to Debian PHP Maintainers <pkg-php-maint@lists.alioth.debian.org>.
(full text, mbox, link).
Message #39 received at 375070@bugs.debian.org (full text, mbox, reply):
Hello,
On 06-Nov-04 12:17, Charles Fry wrote:
> The changelog for bug #375070 indicates "bump the memory limit to 32M
> for the cli API". Can you verify that you are seeing this problem even
> with php5 version 5.1.6-5? If so, it would appear that #375070 should be
> reopened.
I still have this problem with php5 version 5.1.6-5 and also with the
latest version 5.1.6-6 from unstable. The "bump the memory limit to 32M
for the cli API" change in php5 did not make any difference. It seems
that the memory limit has to be set elsewhere.
Regards
Andreas Jochens
Information forwarded to debian-bugs-dist@lists.debian.org, Debian PHP Maintainers <pkg-php-maint@lists.alioth.debian.org>:
Bug#375070; Package php-pear.
(full text, mbox, link).
Acknowledgement sent to Charles Fry <cfry@debian.org>:
Extra info received and forwarded to list. Copy sent to Debian PHP Maintainers <pkg-php-maint@lists.alioth.debian.org>.
(full text, mbox, link).
Message #44 received at 375070@bugs.debian.org (full text, mbox, reply):
[Message part 1 (text/plain, inline)]
reopen 375070
reassign 379774 php-pear
severity 379774 important
merge 375070 379774
thanks
In that case I'm reopening 375070 (and finally merging it with 379774)
since it has apparently failed to do its job. Your proposed patch to
pear seems to be one feasible way to deal with this.
Charles
-----Original Message-----
> From: Andreas Jochens <aj@andaco.de>
> Subject: Re: Bug#379774: php-simpletest: FTBFS (amd64): Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 64 bytes) in /usr/share/php/PEAR/Registry.php on line 1012
> Date: Sat, 4 Nov 2006 18:38:07 +0100
> To: Charles Fry <cfry@debian.org>
> Cc: 379774@bugs.debian.org, 375070@bugs.debian.org
>
> Hello,
>
> On 06-Nov-04 12:17, Charles Fry wrote:
> > The changelog for bug #375070 indicates "bump the memory limit to 32M
> > for the cli API". Can you verify that you are seeing this problem even
> > with php5 version 5.1.6-5? If so, it would appear that #375070 should be
> > reopened.
>
> I still have this problem with php5 version 5.1.6-5 and also with the
> latest version 5.1.6-6 from unstable. The "bump the memory limit to 32M
> for the cli API" change in php5 did not make any difference. It seems
> that the memory limit has to be set elsewhere.
>
> Regards
> Andreas Jochens
--
The wolf
Who longs
To roam and prowl
Should shave before
He starts to howl
Burma-Shave
http://burma-shave.org/jingles/1947/the_wolf
[signature.asc (application/pgp-signature, inline)]
Bug reopened, originator not changed.
Request was from Charles Fry <cfry@debian.org>
to control@bugs.debian.org.
(full text, mbox, link).
Reply sent to sean finney <seanius@debian.org>:
You have taken responsibility.
(full text, mbox, link).
Notification sent to Christopher Seufert <seufert@gmail.com>:
Bug acknowledged by developer.
(full text, mbox, link).
Message #53 received at 375070-done@bugs.debian.org (full text, mbox, reply):
[Message part 1 (text/plain, inline)]
Version: 5.2.0-3
since the above version pear/pecl are invoked with -d memory_limit="-1"
or similar, so memory limits should be disabled entirely.
thanks,
sean
[signature.asc (application/pgp-signature, inline)]
Reply sent to sean finney <seanius@debian.org>:
You have taken responsibility.
(full text, mbox, link).
Notification sent to Andreas Jochens <aj@andaco.de>:
Bug acknowledged by developer.
(full text, mbox, link).
Bug archived.
Request was from Debbugs Internal Request <owner@bugs.debian.org>
to internal_control@bugs.debian.org.
(Tue, 26 Jun 2007 10:29:13 GMT) (full text, mbox, link).
Send a report that this bug log contains spam.
Debian bug tracking system administrator <owner@bugs.debian.org>.
Last modified:
Wed Jul 3 05:14:12 2024;
Machine Name:
buxtehude
Debian Bug tracking system
Debbugs is free software and licensed under the terms of the GNU
Public License version 2. The current version can be obtained
from https://bugs.debian.org/debbugs-source/.
Copyright © 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson,
2005-2017 Don Armstrong, and many other contributors.