php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #73575 built-in webserver segfaults with Symfony 3.2
Submitted: 2016-11-21 15:39 UTC Modified: 2016-11-22 08:55 UTC
From: me at derrabus dot de Assigned:
Status: Closed Package: Built-in web server
PHP Version: 7.1.0RC6 OS: macOS 10.11.6
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: me at derrabus dot de
New email:
PHP Version: OS:

 

 [2016-11-21 15:39 UTC] me at derrabus dot de
Description:
------------
The Symfony framework provides a handy console command to start php's built-in webserver for a Symfony project. Running Symfony 3.2 RC1 on php 7.1 RC6, this command exits with a segmentation fault.

See https://github.com/symfony/symfony/issues/20580 for details.

To reproduce this problem, checkout https://github.com/symfony/symfony-standard/ at branch 3.2, install the vendors and run

./bin/console server:run

Open the browser at `http://localhost:8000/` and reload the page.

The `server:run` command launches php as an external process. What it essentially does is running the following command from the projects "web" folder.

php -S 127.0.0.1:8000 ../vendor/symfony/symfony/src/Symfony/Bundle/FrameworkBundle/Resources/config/router_dev.php

If there's something I can do to trace down the issue, please let me know.

Actual result:
--------------
$ php -S 127.0.0.1:8000 ../vendor/symfony/symfony/src/Symfony/Bundle/FrameworkBundle/Resources/config/router_dev.php
PHP 7.1.0RC6 Development Server started at Mon Nov 21 16:27:44 2016
Listening on http://127.0.0.1:8000
Document root is /Users/rabus/PhpstormProjects/symfony-standard/web
Press Ctrl-C to quit.
[Mon Nov 21 16:27:50 2016] 127.0.0.1:51219 [200]: /
[Mon Nov 21 16:27:50 2016] 127.0.0.1:51220 [200]: /_wdt/e168e6
Segmentation fault: 11

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2016-11-22 02:57 UTC] laruence@php.net
-Status: Open +Status: Feedback
 [2016-11-22 02:57 UTC] laruence@php.net
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.


 [2016-11-22 08:55 UTC] me at derrabus dot de
-Status: Feedback +Status: Closed
 [2016-11-22 08:55 UTC] me at derrabus dot de
Thank you for your quick reply. I've just rebuilt php from source, and the segfault is gone. So, I'm going to report the problem to homebrew instead because it looks like their pre-built binaries are broken.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Apr 20 14:01:29 2024 UTC