|  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: Assigned: nikic (profile)
Status: Closed Package: opcache
PHP Version: 7.4 OS: archLinux
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
New email:
PHP Version: OS:


 [2020-10-07 08:39 UTC]
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:
class p
    public function u()
        switch ($this->z)
                throw new Exception;
            case 'mysql':
                return new Xxx($this);


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2020-10-07 12:48 UTC]
-Status: Open +Status: Verified -PHP Version: 8.0.0rc1 +PHP Version: 7.4
 [2020-10-07 12:48 UTC]
This also reproduces on PHP 7.4.
 [2020-10-07 13:02 UTC]
-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]
Automatic comment on behalf of
Log: Fixed bug #80194
 [2020-10-07 13:04 UTC]
-Status: Verified +Status: Closed
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun May 26 06:01:31 2024 UTC