Bug #77215 [Asn->Csd]: CFG assertion failure on multiple finalizing switch frees in one block
| From: | nikic@php.net | Date: | Wed, 28 Nov 2018 19:10:53 +0000 |
| Subject: | Bug #77215 [Asn->Csd]: CFG assertion failure on multiple finalizing switch frees in one block | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-218187@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=77215&edit=1
ID: 77215
Updated by: nikic@php.net
Reported by: cyril dot velter at metadys dot com
Summary: CFG assertion failure on multiple finalizing switch
frees in one block
-Status: Assigned
+Status: Closed
Type: Bug
Package: opcache
Operating System: CentOS Linux release 7.5.1804 (C
PHP Version: 7.2.12
Assigned To: nikic
Block user comment: N
Private report: N
New Comment:
Automatic comment on behalf of nikita.ppv@gmail.com
Revision: http://git.php.net/?p=php-src.git;a=commit;h=17f8b9fb365600408f512e8d9038e38771a768e5
Log: Fixed bug #77215
Previous Comments:
------------------------------------------------------------------------
[2018-11-28 18:20:32] nikic@php.net
I think that assertion is just wrong.
------------------------------------------------------------------------
[2018-11-28 17:28:35] cyril dot velter at metadys dot com
Description:
------------
custom build of php 7.2.12
./configure --prefix=/usr/local/php --enable-cli --enable-fpm --with-fpm-systemd
--with-pgsql=/usr/pgsql-9.6 --with-pdo-pgsql=/usr/pgsql-9.6 --enable-mbstring --with-zlib
--with-openssl=/usr/local/openssl --with-gd --with-ldap --with-curl --with-gettext --with-gmp
--with-kerberos --enable-pcntl --enable-sysvsem --enable-sysvshm --enable-zip --enable-intl
--enable-ftp --with-bz2 --enable-opcache --with-mysqli=shared --with-pdo-mysql=shared
--with-jpeg-dir=/usr/lib --with-png-dir=/usr/lib --with-zlib-dir=/usr/lib --enable-debug
php.ini :
zend_extension=opcache.so
running the following script with php-fpm lead to a SIGABORT :
[pool default] child 8749 said into stderr: "t:
/home/build/build/php-7.2.12/ext/opcache/Optimizer/zend_cfg.c:156: zend_mark_reachable_blocks:
Assertion `b->start == live_range->end' failed."
Test script:
---------------
<?php
function _crash($eValeur) {
switch ($eValeur["a"]) {
default:
switch($eValeur["a"]) {
default:
return 2;
}
}
}
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=77215&edit=1