Bug #51216 [Nab]: Segmentation fault when compiling PHP with PHAR
| From: | johannes@php.net | Date: | Mon, 28 Jan 2013 22:40:06 +0000 |
| Subject: | Bug #51216 [Nab]: Segmentation fault when compiling PHP with PHAR | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-176313@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=51216&edit=1
ID: 51216
Updated by: johannes@php.net
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:
Apparently this is due to Gentoo bugs or such, please a) try running
./sapi/cli/php -m
or such in the working dir after building PHP, maybe under gdb. And then verify the patches ...
Previous Comments:
------------------------------------------------------------------------
[2013-01-28 19:42:37] renton at renton dot name
php-5.3.20 # make
...
Generating phar.phar
make: *** [ext/phar/phar.phar] Segmentation fault
Gentoo.
------------------------------------------------------------------------
[2013-01-04 13:15:04] olemarkus@php.net
Several Gentoo users have reported the same issue:
https://bugs.gentoo.org/show_bug.cgi?id=449386
------------------------------------------------------------------------
[2012-07-26 14:07:16] adamjonr at gmail dot com
Same issue.
Ubuntu 12.04
./configure --enable-debug --enable-maintainer-zts
Generating phar.php
/bin/bash: line 1: 27380 Segmentation fault (core dumped) ` if test -x
"/usr/local/src/php-5.4.4/sapi/cli/php"; then /usr/local/src/php-
5.4.4/build/shtool echo -n -- "/usr/local/src/php-5.4.4/sapi/cli/php -n"; if test
"x" != "x"; then /usr/local/src/php-5.4.4/build/shtool echo -n -- " -d
extension_dir=/usr/local/src/php-5.4.4/modules"; for i in bz2 zlib phar; do if
test -f "/usr/local/src/php-5.4.4/modules/$i.la"; then . /usr/local/src/php-
5.4.4/modules/$i.la; /usr/local/src/php-5.4.4/build/shtool echo -n -- " -d
extension=$dlname"; fi; done; fi; else /usr/local/src/php-5.4.4/build/shtool echo
-n -- "/usr/local/src/php-5.4.4/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.4.4/ext/phar/build_precommand.php > ext/phar/phar.php
make: *** [ext/phar/phar.php] Error 139
------------------------------------------------------------------------
[2012-03-28 04:13:51] daykinandy at gmail dot com
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
------------------------------------------------------------------------
[2011-03-25 02:09:44] rasmus@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.
------------------------------------------------------------------------
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