Edit report at http://bugs.php.net/bug.php?id=51216&edit=1
ID: 51216 Comment by: bluefox012 at gmail dot com Reported by: dtm2mcs at gmail dot com Summary: Segmentation fault when compiling PHP with PHAR Status: Open Type: Bug Package: PHAR related Operating System: Ubuntu 6.04 + CentOS 5.4 PHP Version: 5.3.2 New Comment: centos 5.4 have the same problem, [activating module `php5' in /home/services/web/config/httpd.conf] Installing PHP CLI binary: /usr/local/php/bin/ Installing PHP CLI man page: /usr/local/php/man/man1/ Installing build environment: /usr/local/php/lib/php/build/ Installing header files: /usr/local/php/include/php/ Installing helper programs: /usr/local/php/bin/ program: phpize program: php-config Installing man pages: /usr/local/php/man/man1/ page: phpize.1 page: php-config.1 Installing PEAR environment: /usr/local/php/lib/php/ make[1]: *** [install-pear-installer] Segmentation fault make: *** [install-pear] Error 2 Previous Comments: ------------------------------------------------------------------------ [2010-05-08 00:54:01] leonard dot f dot elia at nasa dot gov So, I tried compiling without phar: ./configure --prefix=/usr/local/php532-dist \ --with-curl=/usr/local --enable-exif --with-gd \ --with-nsapi=/usr/local/iplanet7 \ --with-mysql=/usr/local/mysql-client/mysql-5.1.40 \ --with-mysqli=/usr/local/mysql/bin/mysql_config \ --with-oci8=instantclient,/usr/local/oracle \ --with-pdo-mysql=/usr/local/mysql-client/mysql-5.1.40 \ --with-pdo-oci=/usr/local/oracle \ --with-jpeg-dir=/usr/local --with-png-dir=/usr/local \ --enable-libgcc \ --disable-phar The make now completes as expected but make install now throws up: [r...@allegro php5]# make install Installing PHP SAPI module: nsapi Installing PHP CLI binary: /usr/local/php532-dist/bin/ Installing PHP CLI man page: /usr/local/php532-dist/man/man1/ Installing build environment: /usr/local/php532-dist/lib/php/build/ Installing header files: /usr/local/php532-dist/include/php/ Installing helper programs: /usr/local/php532-dist/bin/ program: phpize program: php-config Installing man pages: /usr/local/php532-dist/man/man1/ page: phpize.1 page: php-config.1 Installing PEAR environment: /usr/local/php532-dist/lib/php/ Segmentation Fault make[1]: *** [install-pear-installer] Error 139 make: *** [install-pear] Error 2 And this bug, my friends, isn't in the bug database (that I have found). Any ideas? My system has a working php in the path (5.3.1) and is up to date on patches etc. ------------------------------------------------------------------------ [2010-05-07 23:52:55] leonard dot f dot elia at nasa dot gov Almost forgot, I am building php 5.3.2 as a NSAPI module for iPlanet 7 using mysql 5.1.40 ./configure --prefix=/usr/local/php532-dist \ --with-curl=/usr/local --enable-exif --with-gd \ --with-nsapi=/usr/local/iplanet7 \ --with-mysql=/usr/local/mysql-client/mysql-5.1.40 \ --with-mysqli=/usr/local/mysql/bin/mysql_config \ --with-oci8=instantclient,/usr/local/oracle \ --with-pdo-mysql=/usr/local/mysql-client/mysql-5.1.40 \ --with-pdo-oci=/usr/local/oracle \ --with-jpeg-dir=/usr/local --with-png-dir=/usr/local \ --enable-libgcc thank you ------------------------------------------------------------------------ [2010-05-07 23:50:26] leonard dot f dot elia at nasa dot gov I am getting this bug with gcc (GCC) 3.4.3 (csl-sol210-3_4-branch+sol_rpath) GNU Make 3.81 built for sparc-sun-solaris2.10 SunOS xxxxxxx 5.10 Generic_142900-01 sun4u sparc SUNW,Sun-Fire-480R Solaris Memory: 1024M phys mem, 608M free mem, 2048M total swap, 2018M free swap Any workarounds are gratefully appreciated ------------------------------------------------------------------------ [2010-04-22 10:24:02] ywliu at hotmail dot com I can confirm this one: 1. On CentOS 5.4 2. Apache Worker MPM. 3. With mysqlnd, it wouldn't trigger segfault. But with external mysql library (my own build of 5.0.81) , it segfaults. So looks like maybe it's the combination of worker MPM with the external mysql library. ywliu ------------------------------------------------------------------------ [2010-04-19 18:54:48] remco at maxserv dot nl I can confirm that this problem exists. Compiled with apache MPM-prefork, everything went fine. Switched to MPM-worker, breaks at the same point as mentioned in this report. (Debian, Linux KPI 2.6.26-2-686 #1 SMP Tue Mar 9 17:35:51 UTC 2010 i686 GNU/Linux) Configure used for apache: ./configure --prefix=/usr/local/apache2 --enable-so --enable-auth-digest --enable-cache --enable-deflate --enable-expires --enable-headers --enable-info --enable-logio --enable-mime-magic --enable-proxy --enable-rewrite --enable-speling --enable-ssl --enable-unique-id --with-mpm=worker Configure used for PHP: './configure' '--prefix=/usr/lib/php5' '--host=x86-pc-linux-gnu' '--mandir=/usr/lib/php5/man' '--infodir=/usr/lib/php5/info' '--sysconfdir=/etc' '--cache-file=./config.cache' '--with-libdir=lib' '--with-pcre-regex=/usr' '--enable-cli' '--with-apxs2=/usr/bin/apxs2' '--with-config-file-path=/etc/php/apache2-php5' '--with-config-file-scan-dir=/etc/php/apache2-php5/ext-active' '--with-pear' '--enable-bcmath' '--with-bz2' '--enable-calendar' '--with-curl' '--with-curlwrappers' '--enable-exif' '--enable-ftp' '--with-gettext' '--without-gmp' '--with-kerberos' '--enable-mbstring' '--with-mcrypt' '--with-mhash' '--with-mssql' '--with-openssl' '--with-openssl-dir=/usr' '--disable-pcntl' '--without-pgsql' '--without-pspell' '--without-recode' '--disable-shmop' '--with-snmp' '--enable-soap' '--enable-sockets' '--without-sybase-ct' '--disable-sysvmsg' '--disable-sysvsem' '--disable-sysvshm' '--without-tidy' '--disable-wddx' '--with-xmlrpc' '--with-xsl' '--enable-zip' '--with-zlib' '--disable-debug' '--without-enchant' '--disable-intl' '--enable-phar' '--enable-dba' '--without-cdb' '--without-db4' '--disable-flatfile' '--with-gdbm' '--disable-inifile' '--without-qdbm' '--with-freetype-dir=/usr' '--with-t1lib=/usr' '--disable-gd-jis-conv' '--with-jpeg-dir=/usr' '--with-png-dir=/usr' '--with-xpm-dir=/usr' '--with-gd' '--with-imap' '--with-imap-ssl' '--with-ldap' '--without-ldap-sasl' '--with-mysql=/usr/local/mysql' '--with-mysql-sock=/var/run/mysqld/mysqld.sock' '--with-mysqli=/usr/bin/mysql_config' '--with-unixODBC=/usr' '--without-adabas' '--without-birdstep' '--without-dbmaker' '--without-empress' '--without-esoob' '--without-ibm-db2' '--without-iodbc' '--without-sapdb' '--without-solid' '--with-pdo-dblib' '--with-pdo-mysql=/usr' '--with-pdo-odbc=unixODBC,/usr' '--without-pdo-pgsql' '--with-readline' '--without-libedit' '--without-mm' '--without-sqlite' Building without phar works, but then 'make install' fails with a segmentation fault as well. ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/bug.php?id=51216 -- Edit this bug report at http://bugs.php.net/bug.php?id=51216&edit=1