php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #80194 Assertion failure during block assembly of unreachable free with leading nop
Submitted: 2020-10-07 08:39 UTC Modified: 2020-10-07 13:02 UTC
From: sjon@php.net Assigned: nikic (profile)
Status: Closed Package: opcache
PHP Version: 7.4 OS: archLinux
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:
MUST BE VALID
Solve the problem:
21 + 38 = ?
Subscribe to this entry?

 
 [2020-10-07 08:39 UTC] sjon@php.net
Description:
------------
probably somewhat related to #80046

ext/opcache/Optimizer/block_pass.c:973: assemble_code_blocks: Assertion `op_array->opcodes[b->start].opcode == 70 || op_array->opcodes[b->start].opcode == 127' failed.

print op_array->opcodes[b->start].opcode
$1 = 0 '\000'

Test script:
---------------
<?php
class p
{
    public function u()
    {
        switch ($this->z)
        {
            default:
                throw new Exception;
            case 'mysql':
                return new Xxx($this);
                break;
        }
    }
}



Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2020-10-07 12:48 UTC] nikic@php.net
-Status: Open +Status: Verified -PHP Version: 8.0.0rc1 +PHP Version: 7.4
 [2020-10-07 12:48 UTC] nikic@php.net
This also reproduces on PHP 7.4.
 [2020-10-07 13:02 UTC] nikic@php.net
-Summary: ext/opcache/Optimizer/block_pass.c:973: assemble_code_blocks: Assertion..failed +Summary: Assertion failure during block assembly of unreachable free with leading nop -Assigned To: +Assigned To: nikic
 [2020-10-07 13:04 UTC] nikic@php.net
Automatic comment on behalf of nikita.ppv@gmail.com
Revision: http://git.php.net/?p=php-src.git;a=commit;h=683c988493920e033f0c7f5455ebfc3825c38887
Log: Fixed bug #80194
 [2020-10-07 13:04 UTC] nikic@php.net
-Status: Verified +Status: Closed
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Mar 29 11:01:29 2024 UTC