Edit report at https://bugs.php.net/bug.php?id=51216&edit=1
ID: 51216 Comment by: daykinandy at gmail dot com Reported by: dtm2mcs at gmail dot com Summary: Segmentation fault when compiling PHP with PHAR Status: Not a bug Type: Bug Package: PHAR related Operating System: Ubuntu 6.04 + CentOS 5.4 PHP Version: 5.3.2 Block user comment: N Private report: N New Comment: I got the issue on opensuse 12.1 kde trying to install PHP 5.4 with a source compiled version of apache (2.2.22). Here is the output: /bin/sh: line 1: 31873 Segmentation fault ` if test -x "/home/adminuser/Downloads/php-5.4.0/sapi/cli/php"; then /home/adminuser/Downloads/php-5.4.0/build/shtool echo -n -- "/home/adminuser/Downloads/php-5.4.0/sapi/cli/php -n"; if test "x" != "x"; then /home/adminuser/Downloads/php-5.4.0/build/shtool echo -n -- " -d extension_dir=/home/adminuser/Downloads/php-5.4.0/modules"; for i in bz2 zlib phar; do if test -f "/home/adminuser/Downloads/php-5.4.0/modules/$i.la"; then . /home/adminuser/Downloads/php-5.4.0/modules/$i.la; /home/adminuser/Downloads/php-5.4.0/build/shtool echo -n -- " -d extension=$dlname"; fi; done; fi; else /home/adminuser/Downloads/php-5.4.0/build/shtool echo -n -- "/home/adminuser/Downloads/php-5.4.0/sapi/cli/php"; fi;` -d 'open_basedir=' -d 'output_buffering=0' -d 'memory_limit=-1' -d phar.readonly=0 -d 'safe_mode=0' /home/adminuser/Downloads/php-5.4.0/ext/phar/build_precommand.php > ext/phar/phar.php make: *** [ext/phar/phar.php] Error 139 Here is my configure statement for PHP: ./configure --datadir=/usr/share/php5 --with-libdir=/lib --includedir=/usr/include --bindir=/usr/bin --with-pear --with-pcre-regex --enable-bcmath --enable-calendar --enable-debug --with-apxs2=/usr/local/apache2/bin/apxs --with-config-file-path=/etc/php5 --with-config-file-scan-dir=/etc/php5/conf.d --sysconfdir=/etc/php5 This was my apache configure statement: ./configure --enable-cache --enable-deflate --enable-expires --enable-headers --enable-rewrite --enable-ssl --enable-vhost-alias --enable-so --sysconfdir=/etc/apache2 Previous Comments: ------------------------------------------------------------------------ [2011-03-25 02:09:44] ras...@php.net Why aren't you using 5.3.6? Not saying it is fixed there, but it is more useful to us if reports are against the current code. ------------------------------------------------------------------------ [2011-03-25 02:04:40] david at universe dot sonoma dot edu so I tried something different: ./configure \ --with-apxs2=/usr/local/apache2/bin/apxs \ --with-openssl-dir=/usr/local/ssl \ --with-mysql=/usr/bin/ \ --enable-libgcc \ --with-libdir=lib64 \ --with-libxml-dir=/usr/lib64 \ --disable-cgi \ --with-zlib-dir=/usr/local/include \ --enable-zip \ --with-gd \ --with-png-dir=/usr/lib \ --with-jpeg-dir=/usr/lib \ --with-mcrypt=/usr/lib \ --with-gettext \ --enable-mbstring \ --with-curl=/usr/bin/curl \ --enable-sockets \ --with-mysql-sock=/var/lib/mysql/mysql.sock \ --with-mysqli=mysqlnd and I got: -lxml2 -lz -lm -lcrypt -lxml2 -lz -lm -lxml2 -lz -lm -lxml2 -lz -lm -lcrypt -o sapi/cli/php Generating phar.php /usr/local/src/php-5.3.5/sapi/cli/php: error while loading shared libraries: libltdl.so.7: cannot open shared object file: No such file or directory make: *** [ext/phar/phar.php] Error 127 Generating phar.phar /usr/local/src/php-5.3.5/sapi/cli/php: error while loading shared libraries: libltdl.so.7: cannot open shared object file: No such file or directory make: *** [ext/phar/phar.phar] Error 127 ------------------------------------------------------------------------ [2011-03-25 01:34:17] david at universe dot sonoma dot edu Forgot to mention: this is RHEL Linux XXXXXXXXX 2.6.18-92.el5 #1 SMP Tue Apr 29 13:16:15 EDT 2008 x86_64 x86_64 x86_64 GNU/Linux ------------------------------------------------------------------------ [2011-03-25 01:32:05] david at universe dot sonoma dot edu ./configure \ --with-mysql=/usr/bin\ \ --with-mysql-sock=/var/lib/mysql/mysql.sock \ --with-mysqli=mysqlnd \ --with-apxs2=/usr/local/apache2/bin/apxs \ --with-openssl-dir=/usr/local/ssl \ --with-libxml-dir=/usr/lib64 \ --with-zlib-dir=/usr/local/lib \ --with-imap=/usr/local/imap-2007e \ --with-imap-ssl \ --with-mcrypt=/usr/local/lib \ --with-jpeg-dir=/usr/lib64 \ --with-png-dir=/usr/lib64 \ --enable-zip \ --with-gettext \ --enable-mbstring \ --with-curl=/usr/bin/curl \ --enable-sockets \ --with-pdo-mysql=/usr/bin/mysql \ --with-gd=/usr/local produces: /usr/local/imap-2007e/c-client/libc-client.a(osdep.o): In function `ssl_onceonlyinit': /usr/local/imap-2007e/c-client/osdep.c:337: warning: the use of `tmpnam' is dangerous, better use `mkstemp' Generating phar.php /bin/sh: line 1: 6945 Segmentation fault ` if test -x "/usr/local/src/php-5.3.5/sapi/cli/php"; then /usr/local/src/php-5.3.5/build/shtool echo -n -- "/usr/local/src/php-5.3.5/sapi/cli/php -n"; if test "x" != "x"; then /usr/local/src/php-5.3.5/build/shtool echo -n -- " -d extension_dir=/usr/local/src/php-5.3.5/modules"; for i in bz2 zlib phar; do if test -f "/usr/local/src/php-5.3.5/modules/$i. la"; then . /usr/local/src/php-5.3.5/modules/$i.la; /usr/local/src/php-5.3.5/build/shtool echo -n -- " -d extension=$dlname"; fi; done; fi; else /usr/local/src/php-5.3.5/build/shtool echo -n -- "/usr/l ocal/src/php-5.3.5/sapi/cli/php"; fi;` -d 'open_basedir=' -d 'output_buffering=0' -d 'memory_limit=-1' -d phar.readonly=0 -d 'safe_mode=0' /usr/local/src/php-5.3.5/ext/phar/build_precommand.php > ext/p har/phar.php make: *** [ext/phar/phar.php] Error 139 Generating phar.phar make: *** [ext/phar/phar.phar] Segmentation fault :-(( ------------------------------------------------------------------------ [2011-03-24 22:57:57] david at universe dot sonoma dot edu and now even stranger: ./configure \ --with-mysql=/usr/bin\ \ --with-mysql-sock=/var/lib/mysql/mysql.sock \ --with-mysqli=mysqlnd \ --with-apxs2=/usr/local/apache2/bin/apxs \ --with-openssl-dir=/usr/local/ssl \ --with-libxml-dir=/usr/lib64 \ --disable-cgi \ --with-zlib-dir=/usr/local/lib \ --with-imap=/usr/local/imap-2007e \ --with-imap-ssl \ --with-mcrypt=/usr/local/lib \ --enable-zip \ --with-gettext \ --enable-mbstring \ --with-curl=/usr/bin/curl \ --enable-sockets \ --with-gd=/usr/local/ /usr/local/imap-2007e/c-client/libc-client.a(osdep.o): In function `ssl_onceonlyinit': /usr/local/imap-2007e/c-client/osdep.c:337: warning: the use of `tmpnam' is dangerous, better use `mkstemp' Generating phar.php /bin/sh: line 1: 19438 Segmentation fault ` if test -x "/usr/local/src/php-5.3.5/sapi/cli/php"; then /usr/local/src/php-5.3.5/build/shtool echo -n -- "/usr/local/src/php-5.3.5/sapi/cli/php -n"; if test "x" != "x"; then /usr/local/src/php-5.3.5/build/shtool echo -n -- " -d extension_dir=/usr/local/src/php-5.3.5/modules"; for i in bz2 zlib phar; do if test -f "/usr/local/src/php-5.3.5/modules/$i. la"; then . /usr/local/src/php-5.3.5/modules/$i.la; /usr/local/src/php-5.3.5/build/shtool echo -n -- " -d extension=$dlname"; fi; done; fi; else /usr/local/src/php-5.3.5/build/shtool echo -n -- "/usr/l ocal/src/php-5.3.5/sapi/cli/php"; fi;` -d 'open_basedir=' -d 'output_buffering=0' -d 'memory_limit=-1' -d phar.readonly=0 -d 'safe_mode=0' /usr/local/src/php-5.3.5/ext/phar/build_precommand.php > ext/p har/phar.php make: *** [ext/phar/phar.php] Error 139 Generating phar.phar make: *** [ext/phar/phar.phar] Segmentation fault ------------------------------------------------------------------------ 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 https://bugs.php.net/bug.php?id=51216 -- Edit this bug report at https://bugs.php.net/bug.php?id=51216&edit=1