|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #77215 CFG assertion failure on multiple finalizing switch frees in one block
Submitted: 2018-11-28 17:28 UTC Modified: 2018-11-28 19:05 UTC
From: cyril dot velter at metadys dot com Assigned: nikic (profile)
Status: Closed Package: opcache
PHP Version: 7.2.12 OS: CentOS Linux release 7.5.1804 (C
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
Solve the problem:
45 + 31 = ?
Subscribe to this entry?

 [2018-11-28 17:28 UTC] cyril dot velter at metadys dot com
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 :

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:

function _crash($eValeur) {
        switch ($eValeur["a"]) {
                        switch($eValeur["a"]) {
                                        return 2;


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2018-11-28 18:20 UTC]
-Status: Open +Status: Verified
 [2018-11-28 18:20 UTC]
I think that assertion is just wrong.
 [2018-11-28 19:05 UTC]
-Summary: PHP-FPM exited on signal 6 (SIGABRT) +Summary: CFG assertion failure on multiple finalizing switch frees in one block -Status: Verified +Status: Assigned -Assigned To: +Assigned To: nikic
 [2018-11-28 19:10 UTC]
Automatic comment on behalf of
Log: Fixed bug #77215
 [2018-11-28 19:10 UTC]
-Status: Assigned +Status: Closed
PHP Copyright © 2001-2022 The PHP Group
All rights reserved.
Last updated: Sun Jul 03 17:05:45 2022 UTC