Bug #76560 [Com]: Absurd memory allocation during PEAR step of "make install"
| From: | dc dot link at yahoo dot fr | Date: | Mon, 02 Jul 2018 09:13:54 +0000 |
| Subject: | Bug #76560 [Com]: Absurd memory allocation during PEAR step of "make install" | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-216069@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=76560&edit=1
ID: 76560
Comment by: dc dot link at yahoo dot fr
Reported by: php at nearlyfreespeech dot net
Summary: Absurd memory allocation during PEAR step of "make
install"
Status: Open
Type: Bug
Package: Compile Failure
Operating System: FreeBSD
PHP Version: 7.3.0alpha2
Block user comment: N
Private report: N
New Comment:
As a FreeBSD user here my memory settings.
...
hw.physmem: 8435605504
hw.usermem: 5781114880
hw.realmem: 8589934592
...
Was able to install.
Might need to check maybe the /etc/login.conf settings ? Otherwise no clues.
Previous Comments:
------------------------------------------------------------------------
[2018-07-02 02:25:46] php at nearlyfreespeech dot net
Description:
------------
With a clean pull from the 7.3.0alpha2 tag, everything builds OK, but during the install, there is
an error during a memory allocation attempt:
Fatal error: Out of memory (allocated 8388608) (tried to allocate 12298126926392233984 bytes) in
phar://install-pear-nozlib.phar/PEAR/Config.php on line 1032
That's a lot of memory. Seems like some sort of 64 bit related error?
The specific install command that causes the error is:
/data/build/php-src/sapi/cli/php -n -dshort_open_tag=0 -dopen_basedir= -derror_reporting=1803
-dmemory_limit=-1 -ddetect_unicode=0 pear/install-pear-nozlib.phar -d
"/usr/local/php/7.3.0alpha2/lib" -b "/usr/local/php/7.3.0alpha2/bin" -dp a -ds a
The configure command used was:
'./configure' '--with-apxs2=/usr/local/apache/2.4/bin/apxs'
'--prefix=/usr/local/php/7.3.0alpha2'
'--includedir=/usr/local/php/7.3.0alpha2/include/'
'--libdir=/usr/local/php/7.3.0alpha2'
'--libexecdir=/usr/local/php/7.3.0alpha2/libexec/'
'--mandir=/usr/local/php/7.3.0alpha2/man/'
'--sbindir=/usr/local/php/7.3.0alpha2/bin/'
'--with-config-file-path=/usr/local/php/7.3.0alpha2/etc/' '--disable-all'
'--with-openssl' '--enable-cgi' '--enable-cli'
'--enable-fpm' '--enable-hash' '--enable-zlib'
'--enable-phpdbg' '--enable-libxml' '--enable-xml'
'--enable-simplexml' '--enable-pdo' '--with-pdo-mysql=mysqlnd'
'--with-mysqli=mysqlnd' '--with-pear=/usr/local/php/7.3.0alpha2/lib'
'--with-pcre-regex'
The full output of "make install" is in the "actual result" section.
Is there anything else we can do to help narrow down what might be causing this?
Actual result:
--------------
Installing PHP SAPI module: apache2handler
/usr/local/apache/2.4.33/build/instdso.sh
SH_LIBTOOL='/usr/local/share/apr/build-1/libtool' libphp7.la
/usr/local/apache/2.4.33/libexec
/usr/local/share/apr/build-1/libtool --mode=install install libphp7.la
/usr/local/apache/2.4.33/libexec/
libtool: install: install .libs/libphp7.so /usr/local/apache/2.4.33/libexec/libphp7.so
libtool: install: install .libs/libphp7.lai /usr/local/apache/2.4.33/libexec/libphp7.la
libtool: warning: remember to run 'libtool --finish /data/build/php-src/libs'
chmod 755 /usr/local/apache/2.4.33/libexec/libphp7.so
[activating module `php7' in /usr/local/apache/2.4.33/conf/httpd.conf]
Installing PHP CLI binary: /usr/local/php/7.3.0alpha2/bin/
Installing PHP CLI man page: /usr/local/php/7.3.0alpha2/man/man1/
Installing PHP FPM binary: /usr/local/php/7.3.0alpha2/bin/
Installing PHP FPM defconfig: /usr/local/php/7.3.0alpha2/etc/
Installing PHP FPM man page: /usr/local/php/7.3.0alpha2/man/man8/
Installing PHP FPM status page: /usr/local/php/7.3.0alpha2/php/php/fpm/
Installing phpdbg binary: /usr/local/php/7.3.0alpha2/bin/
Installing phpdbg man page: /usr/local/php/7.3.0alpha2/man/man1/
Installing PHP CGI binary: /usr/local/php/7.3.0alpha2/bin/
Installing PHP CGI man page: /usr/local/php/7.3.0alpha2/man/man1/
Installing build environment: /usr/local/php/7.3.0alpha2/build/
Installing header files: /usr/local/php/7.3.0alpha2/include/php/
Installing helper programs: /usr/local/php/7.3.0alpha2/bin/
program: phpize
program: php-config
Installing man pages: /usr/local/php/7.3.0alpha2/man/man1/
page: phpize.1
page: php-config.1
Installing PEAR environment: /usr/local/php/7.3.0alpha2/lib/
[PEAR] Archive_Tar - installed: 1.4.3
[PEAR] Console_Getopt - installed: 1.4.1
[PEAR] Structures_Graph- installed: 1.1.1
[PEAR] XML_Util - installed: 1.4.2
[PEAR] PEAR - installed: 1.10.5
mmap() failed: [12] Cannot allocate memory
mmap() failed: [12] Cannot allocate memory
Fatal error: Out of memory (allocated 8388608) (tried to allocate 12298126926392233984 bytes) in
phar://install-pear-nozlib.phar/PEAR/Config.php on line 1032
*** Error code 255
Stop.
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=76560&edit=1