Bug #71096 [Opn->Fbk]: Segfault on syntax error with symfony's server wrapper.

From: Date: Sat, 12 Dec 2015 01:44:50 +0000
Subject: Bug #71096 [Opn->Fbk]: Segfault on syntax error with symfony's server wrapper.
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-197822@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=71096&edit=1 ID: 71096 Updated by: laruence@php.net Reported by: sephir at cryptolab dot net Summary: Segfault on syntax error with symfony's server wrapper. -Status: Open +Status: Feedback Type: Bug Package: Built-in web server Operating System: Debian 8 PHP Version: 7.0.0 -Assigned To: +Assigned To: laruence Block user comment: N Private report: N New Comment: Thank you for this bug report. To properly diagnose the problem, we need a backtrace to see what is happening behind the scenes. To find out how to generate a backtrace, please read http://bugs.php.net/bugs-generating-backtrace.php for *NIX and http://bugs.php.net/bugs-generating-backtrace-win32.php for Win32 Once you have generated a backtrace, please submit it to this bug report and change the status back to "Open". Thank you for helping us make PHP better. Previous Comments: ------------------------------------------------------------------------ [2015-12-11 17:35:39] sephir at cryptolab dot net 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 this bug report at https://bugs.php.net/bug.php?id=71096&edit=1

« previous php.bugs (#197822) next »