Edit report at https://bugs.php.net/bug.php?id=51216&edit=1
ID: 51216 Comment by: uorsini1 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 should have said CFLAGS_CLEAN I think, since that's what cli builds use. Previous Comments: ------------------------------------------------------------------------ [2013-04-19 23:26:49] uorsini1 at gmail dot com I just ran into this on SPARC Solaris 5.9, php-5.3.x and 5.4.x. I remembered that long ago, way before phar, I had php coredumping when running tests. According to Andy Poliakov that was the result of a change in gcc's behavior, esp. when building code that interacts with openssl. Back then he suggested adding -fno-strict-aliasing to the CFLAGS in the main PHP Makefile. So I did the same in php-5.4.14, and voila, it gets past the phar stage and runs all tests fine. It's nothing to do with phar, it's just that 5.2.x and earlier weren't trying to use the mis-compiled php for anything during make. Anyone with this problem may want to try that. ------------------------------------------------------------------------ [2013-01-28 22:40:06] johan...@php.net 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 ... ------------------------------------------------------------------------ [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] olemar...@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 ------------------------------------------------------------------------ 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