Bug #76560 [NEW]: Absurd memory allocation during PEAR step of "make install"
| From: | php at nearlyfreespeech dot net | Date: | Mon, 02 Jul 2018 02:25:48 +0000 |
| Subject: | Bug #76560 [NEW]: Absurd memory allocation during PEAR step of "make install" | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-216067@lists.php.net to get a copy of this message | ||
From: php at nearlyfreespeech dot net
Operating system: FreeBSD
PHP version: 7.3.0alpha2
Package: Compile Failure
Bug Type: Bug
Bug description:Absurd memory allocation during PEAR step of "make install"
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 bug report at https://bugs.php.net/bug.php?id=76560&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=76560&r=trysnapshot54
Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=76560&r=trysnapshot55
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=76560&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=76560&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=76560&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=76560&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=76560&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=76560&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=76560&r=support
Expected behavior: https://bugs.php.net/fix.php?id=76560&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=76560&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=76560&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=76560&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=76560&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=76560&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=76560&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=76560&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=76560&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=76560&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=76560&r=mysqlcfg