Bug #71438 [NEW]: Segmentation fault encountered when building PHP 7 in QEMU MIPS chroot jail

From: Date: Sat, 23 Jan 2016 23:32:40 +0000
Subject: Bug #71438 [NEW]: Segmentation fault encountered when building PHP 7 in QEMU MIPS chroot jail
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-198847@lists.php.net to get a copy of this message
From: ramsey Operating system: Debian Wheezy PHP version: 7.0.2 Package: Compile Failure Bug Type: Bug Bug description:Segmentation fault encountered when building PHP 7 in QEMU MIPS chroot jail Description: ------------ I am encountering a segmentation fault when attempting to build PHP 7.0.2 in a chroot jail that is using QEMU to emulate a MIPS architecture. Using the same script with identical settings and configuration, I am able to build PHP 5.4.45, 5.5.31, and 5.6.17 without any segmentation faults. The segmentation fault occurs toward the end of the make command, immediately after the "Generating phar.php" line (see "Actual result" below for error output). ---------- For those wondering why I am building PHP in an emulated MIPS environment: I am creating Docker images on which Travis CI runs tests for my ramsey/uuid library. I want to ensure consistent generation of UUIDs on 64-bit, 32-bit, little-endian, and big-endian systems. If interested, see the following: * https://github.com/ramsey/uuid * https://hub.docker.com/r/benramsey/ramsey-uuid/ * https://travis-ci.org/ramsey/uuid Test script: --------------- Here is a Gist that will allow you to reproduce this issue within a Vagrant VM: https://gist.github.com/ramsey/8ba95a871c75c3aad820 See the comments at the top of the script, but in short, once you're ready to run the script in the VM, you can run it like this to build different chroot jails with different PHP versions: sudo ./php7-qemu-mips-build.sh 7.0.2 mips mips wheezy sudo ./php7-qemu-mips-build.sh 5.6.17 mips mips wheezy sudo ./php7-qemu-mips-build.sh 5.5.31 mips mips wheezy The 7.0.2 version is the one where I am encountering the segmentation fault. Actual result: -------------- Generating phar.php qemu: uncaught target signal 11 (Segmentation fault) - core dumped /bin/bash: line 1: 23824 Segmentation fault (core dumped) ` if test -x "/php-src/php-7.0.2/sapi/cli/php"; then /php-src/php-7.0.2/build/shtool echo -n -- "/php-src/php-7.0.2/sapi/cli/php -n"; if test "x" != "x"; then /php-src/php-7.0.2/build/shtool echo -n -- " -d extension_dir=/php-src/php-7.0.2/modules"; for i in bz2 zlib phar; do if test -f "/php-src/php-7.0.2/modules/$i.la"; then . /php-src/php-7.0.2/modules/$i.la; /php-src/php-7.0.2/build/shtool echo -n -- " -d extension=$dlname"; fi; done; fi; else /php-src/php-7.0.2/build/shtool echo -n -- "/php-src/php-7.0.2/sapi/cli/php"; fi;` -n -d 'open_basedir=' -d 'output_buffering=0' -d 'memory_limit=-1' -d phar.readonly=0 -d 'safe_mode=0' /php-src/php-7.0.2/ext/phar/build_precommand.php > ext/phar/phar.php make: *** [ext/phar/phar.php] Error 139 -- Edit bug report at https://bugs.php.net/bug.php?id=71438&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=71438&r=trysnapshot54 Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=71438&r=trysnapshot55 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=71438&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=71438&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=71438&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=71438&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=71438&r=needscript Try newer version: https://bugs.php.net/fix.php?id=71438&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=71438&r=support Expected behavior: https://bugs.php.net/fix.php?id=71438&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=71438&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=71438&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=71438&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=71438&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=71438&r=dst IIS Stability: https://bugs.php.net/fix.php?id=71438&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=71438&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=71438&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=71438&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=71438&r=mysqlcfg

« previous php.bugs (#198847) next »