Bug #71096 [NEW]: Segfault on syntax error with symfony's server wrapper.

From: Date: Fri, 11 Dec 2015 17:35:42 +0000
Subject: Bug #71096 [NEW]: Segfault on syntax error with symfony's server wrapper.
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-197804@lists.php.net to get a copy of this message
From: sephir at cryptolab dot net Operating system: Debian 8 PHP version: 7.0.0 Package: Built-in web server Bug Type: Bug Bug description:Segfault on syntax error with symfony's server wrapper. Description: ------------ Hi. Some days ago, I tried a script containing a syntax error and executed it on both Symfony's server wrapper (executed using server:run command) and Nginx/PHP-FPM. Using Nginx I had the syntax error as expected but using the Symfony's wrapper I had a segfault, crashing the web server. I precise that only the server:run command is returning a segfault. The server:start command run as expected. Test script: --------------- <?php namespace AppBundle\Controller; use Symfony\Bundle\FrameworkBundle\Controller\Controller; use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route; class DefaultController extends Controller { public function indexAction() { $response = $this->render('') } } Expected result: ---------------- Parse error: syntax error, unexpected '}' Actual result: -------------- [OK] Server running on http://127.0.0.1:8000 // Quit the server with CONTROL-C. RUN '/usr/bin/php7.0' '-S' '127.0.0.1:8000' '/home/booteille/PhpstormProjects/my_project/vendor/symfony/symfony/src/Symfony/Bundle/FrameworkBundle/Resources/config/router_dev.php' ERR [Fri Dec 4 05:20:17 2015] 127.0.0.1:60062 [500]: / ERR [Fri Dec 4 05:20:18 2015] 127.0.0.1:60063 [200]: /bundles/framework/css/structure.css ERR [Fri Dec 4 05:20:18 2015] 127.0.0.1:60064 [200]: /bundles/framework/css/exception.css ERR [Fri Dec 4 05:20:18 2015] 127.0.0.1:60065 [200]: /bundles/framework/css/body.css ERR [Fri Dec 4 05:20:18 2015] 127.0.0.1:60066 [200]: /_wdt/f84516 ERR Segmentation fault ERR RES 139 Command did not run successfully [ERROR] Built-in server terminated unexpectedly. -- Edit bug report at https://bugs.php.net/bug.php?id=71096&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=71096&r=trysnapshot54 Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=71096&r=trysnapshot55 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=71096&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=71096&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=71096&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=71096&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=71096&r=needscript Try newer version: https://bugs.php.net/fix.php?id=71096&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=71096&r=support Expected behavior: https://bugs.php.net/fix.php?id=71096&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=71096&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=71096&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=71096&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=71096&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=71096&r=dst IIS Stability: https://bugs.php.net/fix.php?id=71096&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=71096&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=71096&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=71096&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=71096&r=mysqlcfg

« previous php.bugs (#197804) next »