Skip to content

Core dumped in ext/opcache/jit/ir/ir_cfg.c #15909

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
YuanchengJiang opened this issue Sep 16, 2024 · 2 comments
Closed

Core dumped in ext/opcache/jit/ir/ir_cfg.c #15909

YuanchengJiang opened this issue Sep 16, 2024 · 2 comments

Comments

@YuanchengJiang
Copy link

Description

The following code:

<?php
function foo() {
for(;x;)for(;$fusion=1;);
}

Resulted in this output:

/php-src/ext/opcache/jit/ir/ir_cfg.c:681: ir_build_dominators_tree: Assertion `blocks[idom].idom > 0' failed.
Aborted (core dumped)

To reproduce:

-d "zend_extension=/php-src/modules/opcache.so" -d "opcache.enable_cli=1" -d "opcache.jit=1001"

PHP Version

PHP 8.4.0-dev

Operating System

ubuntu 22.04

@iluuu1994
Copy link
Member

This doesn't reproduce for me. @dstogov Is the assertion enough for you to be useful?

@dstogov
Copy link
Member

dstogov commented Sep 17, 2024

It's reproducible. I'll take care.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants