Bug #80321 [NEW]: Segfault with standard Symfony demo app
From: phil at phil-taylor dot com
Operating system: Alpine in docker
PHP version: 8.0.0RC3
Package: opcache
Bug Type: Bug
Bug description:Segfault with standard Symfony demo app
Description:
------------
forked from https://github.com/symfony/symfony/issues/38997
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)
[opcache]
opcache.enable=1
opcache.preload='/application/var/cache/prod/App_KernelProdContainer.preload.php';
opcache.preload_user=www-data
cd my_project/public
php -S 0.0.0.0:8000
Try to load a webpage
Expected result:
----------------
No Segfault - page loads.
Actual result:
--------------
see screenshot:
https://user-images.githubusercontent.com/400092/98182889-c4f74d00-1efe-11eb-8d3e-930d67df7d88.png
"Segmentation Fault"
see screenshot:
https://user-images.githubusercontent.com/400092/98183196-93cb4c80-1eff-11eb-8a00-4d03e02551be.png
When tracing the process I get to:
SIGSEGV {si_signo=SIGSEGV, si_code=SEGV_MAPERR, si_addr=0x10}
--
Edit bug report at https://bugs.php.net/bug.php?id=80321&edit=1
--
Fix committed: https://bugs.php.net/fix.php?id=80321&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=80321&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=80321&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=80321&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=80321&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=80321&r=support
Expected behavior: https://bugs.php.net/fix.php?id=80321&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=80321&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=80321&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=80321&r=globals
PHP version support discontinued: https://bugs.php.net/fix.php?id=80321&r=phptooold
Daylight Savings: https://bugs.php.net/fix.php?id=80321&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=80321&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=80321&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=80321&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=80321&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=80321&r=mysqlcfg
Thread (4 messages)
- phil at phil-taylor dot com