Subject: Re: Re: "Allowed memory size of 8388608 bytes exhausted" installing www/php4
To: Quentin Garnier <cube@cubidou.net>
From: Joel CARNAT <joel@carnat.net>
List: pkgsrc-users
Date: 03/04/2006 19:09:28
--AqsLC8rIMeq19msA
Content-Type: text/plain; charset=iso-8859-15
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Sat, Mar 04 2006 - 18:44, Quentin Garnier wrote:
> On Sat, Mar 04, 2006 at 06:28:07PM +0100, Joel CARNAT wrote:
> > Hi,
> >=20
> > 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).
> >=20
> > =3D> Unwrapping files-to-be-installed.
> > =3D=3D=3D> Installing for php-4.4.2
> > =3D=3D=3D> 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
> >=20
> > 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=
=2Ephp
> > on line 604
> [...]
> > any clue on this ?
> > memory trouble, php compilation issue ?
>=20
> Try cranking up the data size limit (ulimit, limit, sysctl, login class,
> whichever method you prefer).
>=20

I tried to change as much as possible (with ulimit and sysctl) but the
issue is still there :(

Which value did you thought might solve my problem (I can't have
stacksize.* to change).

# sysctl proc.curproc.rlimit
proc.curproc.rlimit.cputime.soft =3D unlimited
proc.curproc.rlimit.cputime.hard =3D unlimited
proc.curproc.rlimit.filesize.soft =3D unlimited
proc.curproc.rlimit.filesize.hard =3D unlimited
proc.curproc.rlimit.datasize.soft =3D 1073741824
proc.curproc.rlimit.datasize.hard =3D 1073741824
proc.curproc.rlimit.stacksize.soft =3D 8388608
proc.curproc.rlimit.stacksize.hard =3D 8388608
proc.curproc.rlimit.coredumpsize.soft =3D unlimited
proc.curproc.rlimit.coredumpsize.hard =3D unlimited
proc.curproc.rlimit.memoryuse.soft =3D unlimited
proc.curproc.rlimit.memoryuse.hard =3D unlimited
proc.curproc.rlimit.memorylocked.soft =3D unlimited
proc.curproc.rlimit.memorylocked.hard =3D unlimited
proc.curproc.rlimit.maxproc.soft =3D 1044
proc.curproc.rlimit.maxproc.hard =3D 1044
proc.curproc.rlimit.descriptors.soft =3D 3404
proc.curproc.rlimit.descriptors.hard =3D 3404
proc.curproc.rlimit.sbsize.soft =3D unlimited
proc.curproc.rlimit.sbsize.hard =3D unlimited


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

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

iD8DBQFECdfY0/VH7L7F7Y4RAoRQAJ9NW6/8zTsX1kueMpmPbBNP5G+0rgCfdqfm
CcVe7HM4RfU9h1dnIePCf3Y=
=n4Z3
-----END PGP SIGNATURE-----

--AqsLC8rIMeq19msA--