|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #80321 Segfault with standard Symfony demo app
Submitted: 2020-11-05 11:58 UTC Modified: 2020-11-05 13:12 UTC
From: phil at phil-taylor dot com Assigned:
Status: Closed Package: opcache
PHP Version: 8.0.0RC3 OS: Alpine in docker
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.
Block user comment
Status: Assign to:
Bug Type:
From: phil at phil-taylor dot com
New email:
PHP Version: OS:


 [2020-11-05 11:58 UTC] phil at phil-taylor dot com
forked from

When PHP8RC3 is enabled in FPM mode, with preload enabled using Symfony 5.1.7 (or Symfony 5), when a page loads, and PHP accesses the Cache Pool randomly named folders, PHP Segfaults and crashes. 

Reproducible with a bare, new, Symfony demo app.

Test script:
Install PHP 8.0.0 RC 3 (However you wish, mine was a docker container)
Install Symfony CLI binary

symfony new --demo my_project
edit .env set ENV=prod
php bin/console cache:clear

Edit php.ini and set (note your path & user might be different)


cd my_project/public
php -S
Try to load a webpage

Expected result:
No Segfault - page loads.

Actual result:
see screenshot:

"Segmentation Fault"

see screenshot:

When tracing the process I get to:

SIGSEGV {si_signo=SIGSEGV, si_code=SEGV_MAPERR, si_addr=0x10}


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2020-11-05 12:03 UTC]
That might have the same cause as bug #80307.  Could you try with
a current Git snapshot?
 [2020-11-05 13:11 UTC] phil at phil-taylor dot com
Im pleased to report, after compiling PHP from git sources, in Alpine Docker containers, and running PHP 8.1.0-dev with my massive Symfony 4.4.16 application, with PHP Preloading enabled, and JIT Enabled, this bug seems resolved and PHP doesn't segfault.

It seems this has been fixed since PHP8.0RC3 :-) 

You can also take this as a vote of confidence that bug #80307 fix has been tested and works. 

 [2020-11-05 13:12 UTC] phil at phil-taylor dot com
-Status: Open +Status: Closed
 [2020-11-05 13:12 UTC] phil at phil-taylor dot com
Closing... Thank you...
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Feb 27 12:01:27 2024 UTC