Bug #74581 [NEW]: PaX killed execution attempt in PHP cli during build

From: Date: Fri, 12 May 2017 11:58:41 +0000
Subject: Bug #74581 [NEW]: PaX killed execution attempt in PHP cli during build
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-209083@lists.php.net to get a copy of this message
From: michael at orlitzky dot com Operating system: Gentoo Linux PHP version: 7.1.5 Package: Compile Failure Bug Type: Bug Bug description:PaX killed execution attempt in PHP cli during build Description: ------------ This issue affects both 7.0.19 and 7.1.5, and is new to both of those versions as far as I can tell. On a system with PaX enabled, I get the following build error: Generating phar.php Generating phar.phar PEAR package PHP_Archive not installed: generated phar will require PHP's phar extension be enabled. make: *** [Makefile:359: ext/phar/phar.phar] Killed Notice the "Killed" there at the end. That comes from the "php" CLI binary, as dmesg shows: [Thu May 11 20:59:17 2017] PAX: execution attempt in: <anonymous mapping>, 38cf40bc000-38cf40cc000 38cf40bc000 [Thu May 11 20:59:17 2017] PAX: terminating task: /var/tmp/portage/dev-lang /php-7.1.5/work/sapis-build/cli/sapi/cli/php(php):7930, uid/euid: 250/250, PC: 0000038cf40bc010, SP: 000003fa7ab2a118 I'm not sure that this is a PHP bug, but it's new in v7.0.19 and v7.1.5, so it's suspicious. To reproduce it, all one has to do is try to build PHP on a hardened Gentoo system (which are fairly common). As a workaround, we could pax-mark the "php" binary, but that nullifies a strong security measure. -- Edit bug report at https://bugs.php.net/bug.php?id=74581&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=74581&r=trysnapshot54 Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=74581&r=trysnapshot55 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=74581&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=74581&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=74581&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=74581&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=74581&r=needscript Try newer version: https://bugs.php.net/fix.php?id=74581&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=74581&r=support Expected behavior: https://bugs.php.net/fix.php?id=74581&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=74581&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=74581&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=74581&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=74581&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=74581&r=dst IIS Stability: https://bugs.php.net/fix.php?id=74581&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=74581&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=74581&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=74581&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=74581&r=mysqlcfg

« previous php.bugs (#209083) next »