opcache crashes on Ubuntu 21.10 - php 8.0.8 (segfault) both within apache2 and cli

Bug #1964687 reported by pk
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
php-defaults (Ubuntu)
Fix Released
Low
Unassigned
Impish
Triaged
Low
Unassigned

Bug Description

bug description : see details on https://github.com/php/php-src/issues/8193

segfault with opcache enabled ...

    with Ubuntu 21.10 php 8.0.8 : bug occurs...
    with Ubuntu 22.04 alpha php 8.1.0 : no bug!

nikic suggested to me to report this on the Ubuntu bugtracker, so you can backport whatever patch is necessary...

has been tested ok with php 8.0.16

ProblemType: Bug
DistroRelease: Ubuntu 21.10
Package: php 2:8.0+82~0build1
ProcVersionSignature: Ubuntu 5.13.0-35.40-generic 5.13.19
Uname: Linux 5.13.0-35-generic x86_64
ApportVersion: 2.20.11-0ubuntu71
Architecture: amd64
CasperMD5CheckResult: pass
CurrentDesktop: LXDE
Date: Sat Mar 12 23:02:31 2022
InstallationDate: Installed on 2022-03-04 (8 days ago)
InstallationMedia: Ubuntu-Server 21.10 "Impish Indri" - Release amd64 (20211013)
PackageArchitecture: all
SourcePackage: php-defaults
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
pk (pk-fr) wrote :
Revision history for this message
Sergio Durigan Junior (sergiodj) wrote :

Thank you for your bug report.

I could indeed reproduce the problem here by following your instructions from the upstream bug. For those coming after me:

$ lxc launch ubuntu-daily:impish php-bug1964687
$ lxc shell php-bug1964687
# apt update && apt install -y php
# cat > 1.php << EOF
<?php

echo "before<br>";
include "obfuscated.php";
echo "after<br>";

?>
EOF
# (grab the contents of https://3v4l.org/EUeM7 and put them into a file named obfuscated.php)
# sed -i -e 's@^;opcache\.enable=.*@opcache.enable=1@' -e 's@^;opcache\.enable_cli=.*@opcache.enable_cli=1@' /etc/php/8.0/cli/php.ini

Unfortunately, this seems to me like a low priority bug, especially considering that we're nearing Impish's EOL (which will happen in June). Unless you can point us to an upstream patch that fixes this issue, I find it unlikely that a member of our team will have the time to investigate this issue soon. If you are interested and have the time, we certainly encourage bug reporters and community members to drive the process of SRU'ing a fix in this case. Let us know if you would like to do that.

Thanks.

Changed in php-defaults (Ubuntu):
status: New → Triaged
importance: Undecided → Low
Changed in php-defaults (Ubuntu Impish):
status: New → Triaged
importance: Undecided → Low
Changed in php-defaults (Ubuntu):
status: Triaged → Fix Released
Revision history for this message
pk (pk-fr) wrote :

updating php 8.0.8 to 8.0.16 would solve the problem...

Revision history for this message
Bryce Harrington (bryce) wrote :

Hi pk, can you tell us which bugfix in 8.0.16 resolved the crash for you?
https://www.php.net/ChangeLog-8.php#PHP_8_0

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.