-
Notifications
You must be signed in to change notification settings - Fork 7.8k
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
Segfault with frameless jumps and minimal JIT #15981
Comments
Looks related to #15658. |
Semi-automatically reduced to: <?php
namespace NS { // Namespace is important to reproduce the issue
class Tester {
static public function findExecutable(): string {
for ($i = 0; $i < 2; $i++) {
// Need this loop to reproduce
}
return dirname(__DIR__);
}
}
}
namespace {
NS\Tester::findExecutable();
} Or with <?php
namespace NS { // Namespace is important to reproduce the issue
class Tester {
static public function findExecutable(): string {
return dirname(__DIR__);
}
}
}
namespace {
NS\Tester::findExecutable();
} |
It's again related to FLFs. ZEND_INIT_NS_FCALL_BY_NAME VM handler is called with I think the JIT should generate a move to php-src/ext/opcache/jit/zend_jit.c Lines 1409 to 1419 in d95e222
|
cc @dstogov I'm not sure how to fix this, I would need some input to know how to tackle this issue please. |
I don't know this new code... cc @iluuu1994 |
Description
The following code:
Resulted in this output:
To reproduce:
tester.inc:
PHP Version
PHP 8.4.0-dev
Operating System
ubuntu 22.04
The text was updated successfully, but these errors were encountered: