We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
When I set the JIT related php.ini configuration as
opcache.jit_debug=0xfffff opcache.jit=off
or
opcache.jit_debug=0xfffff opcache.jit=disable
execute ./sapi/cli/php -c php.ini test.php, the test.php code:
./sapi/cli/php -c php.ini test.php
<?php function add1($x){ $x = $x + 1; return add2($x); } function add2($x){ $x = $x + 2; return add3($x); } function add3($x){ return $x + 3; } $x = 0; for($i = 0; $i < 1000; $i++) { $x = add1($x); } echo("x=$x\n"); ?>
Resulted in this output:
x=6000 Segmentation fault (core dumped)
But I expected this output instead:
x=6000
It was further found that when JIT is closed, this error will only be reported if the 0x200 bit of JIT_debug is turned on, such as
opcache.jit_debug=0x200 opcache.jit=disable
PHP 8.1.4 or later versions
Ubuntu22.04
The text was updated successfully, but these errors were encountered:
Fix phpGH-13232: Segmentation fault will be reported when JIT is off …
7dc8b43
…but JIT_debug is still on
d417072
Merge branch 'PHP-8.2' into PHP-8.3
31e8cea
* PHP-8.2: Fix GH-13232: Segmentation fault will be reported when JIT is off but JIT_debug is still on
Merge branch 'PHP-8.3'
e2c3c48
* PHP-8.3: Fix GH-13232: Segmentation fault will be reported when JIT is off but JIT_debug is still on
Successfully merging a pull request may close this issue.
Description
When I set the JIT related php.ini configuration as
or
execute
./sapi/cli/php -c php.ini test.php
, the test.php code:Resulted in this output:
But I expected this output instead:
It was further found that when JIT is closed, this error will only be reported if the 0x200 bit of JIT_debug is turned on, such as
PHP Version
PHP 8.1.4 or later versions
Operating System
Ubuntu22.04
The text was updated successfully, but these errors were encountered: