Subject: "Allowed memory size of 8388608 bytes exhausted" installing www/php4
To: None <pkgsrc-users@netbsd.org>
From: Joel CARNAT <joel@carnat.net>
List: pkgsrc-users
Date: 03/04/2006 18:28:07
--fdj2RfSjLxBAspz7
Content-Type: text/plain; charset=iso-8859-15
Content-Disposition: inline

Hi,

on my way to update www/php4 (on NetBSD/sparc64 3.0), I ended there :
############################################################################
Build complete.
(It is safe to ignore warnings about tempnam and tmpnam).

=> Unwrapping files-to-be-installed.
===> Installing for php-4.4.2
===> Becoming root@thundera.tumfatig.net to install php.
/usr/pkg/bin/sudo Installing PHP SAPI module:       cgi
Installing PHP CGI into: /usr/pkg/bin/
Installing PEAR environment:      /usr/pkg/lib/php/
warning : bad md5sum for file /usr/pkg/lib/php/Archive/Tar.php

Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to
allocate 92160 bytes) in
/tmp/pkgwork/www/php4/work/php-4.4.2/pear/PEAR/PackageFile/Generator/v1.php
on line 604
gmake[1]: *** [install-pear-packages] Error 255
gmake: *** [install-pear] Error 2
*** Error code 2

Stop.
make: stopped in /home/cvs/pkgsrc/www/php4
*** Error code 1
############################################################################

Although I don't think it matters here, my php.ini has:
############################################################################
#  grep memory_limit /usr/pkg/etc/php.ini
memory_limit = 16M      ; Maximum amount of memory a script may consume
(8MB)
############################################################################

I tried getting mem info while "make update"
############################################################################
# vmstat -w 1
 procs    memory      page                       disks      faults cpu
 r b w    avm    fre  flt  re  pi   po   fr   sr m0 c0 w0   in   sy  cs us sy id
 1 9 0 226080  13320  263  21   0    0   21   65  0  0  8  350  351  52 16  2 82
 0 9 0 226080  13320    7   0   0    0    0    0  0  0  0 1475   56 334 0  1 99
 2 9 0 226840  12512 3555   0   0    0    0    0  0  0  0 1731 1934 661 18 22 60
<here is where "make update" starts>
 2 9 0 229032  10216 2518   0   0    0    0    0  0  0  1 1569 1969 754 88 12  0
 1 9 0 231032   8112 3897   0   0    0    0    0  0  0  0 2977 2603 1475 74 26  0
 1 9 0 234096   4712 6139   0   0    0    0    0  0  0  0  809 3491 426 65 35  0
 1 9 0 232896   6088 15235   0   0    0    0    0  0  0  0  717 6652 597 27 73  0
 1 9 0 233160   5768 15368   0   0    0    0    0  0  0  0  783 6697 613 28 72  0
 2 9 0 233160   5768 15216   0   0    0    0    0  0  0  0  983 6567 657 25 75  0
 2 9 0 232904   6080 15105   0   0    0    0    0  0  0  1  956 6523 659 33 65  2
 3 9 0 233168   5760 15061   0   0    0    0    0  0  0  1 1053 6616 736 34 66  0
 3 9 0 229576   9632 13048   0   0    0    0    0  0  0  1  897 6517 644 40 60  0
 1 9 0 231848   7200 3895   0   0    0    0    0  0  0  1 1742 2371 838 76 24  0
 2 9 0 234600   4256 4422   0   0    0    0    0  0  0  0 1785 5222 842 74 26  0
 1 9 0 235544   3312 3237   0   0    0    0    0  0  0  0 2429 3770 1190 75 25  0
 1 8 0 234096   4848 12648   0   0    0    0    0  0  0  0 1432 5222 893 46 54  0
 1 7 0 233816   5104 4257   0   0    0    0    0  0  0  2 3036 2717 1473 72 28  0
 1 9 0 233936   4984 2410   0   0    0    0    0  0  0  0 1330 2308 624 84 16  0
 1 9 0 236432   2264 3465   0   0    0    0    0  0  0  0 1159 2606 555 82 18  0
 1 9 0 237504    576 9389 8641   0    0 1048 9818  0  0 31  978 4949 525 47 53  0
 1 9 0 210936  28080 3733   1   0    0  875  880  0  0  0 1659 4302 763 59 34  7
<here is when "Fatal error: Allowed memory size of 8388608 bytes exhausted">
 0 9 0 210936  28080   26   0   0    0    0    0  0  0  0 1566  393 376 1  3 96
 0 9 0 210936  28080   11   0   0    0    0    0  0  0  0 1309  197 307 0  6 94
 0 9 0 210928  28088    5   0   0    0    0    0  0  0  8 1345   32 295 0  4 96
############################################################################

any clue on this ?
memory trouble, php compilation issue ?

TIA,
	Jo


--fdj2RfSjLxBAspz7
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.1 (NetBSD)

iD8DBQFECc4n0/VH7L7F7Y4RAoLOAJsGMKaOlTgwI7G2+hIb2f/jqSSbwgCdHiAk
8UXKfEs12XKPpdwe4DnDoX8=
=JAKN
-----END PGP SIGNATURE-----

--fdj2RfSjLxBAspz7--