You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Obviously 0x0000000138000ce0 is a JIT block and it seems to lack the R/X bit.
In zend_jit_protect, when HAVE_PTHREAD_JIT_WRITE_PROTECT_NP is defined, the function calls pthread_jit_write_protect_np(1) and exits. It works on x64 macOS systems, but dasm_buf is inaccessible in Apple Silicon.
I commented the return statement after pthread_jit_write_protect_np(1); and PHP runs fine.
Description
PHP 8.2.0-dev crashes on Apple Silicon M1.
The bench.php program crashes with JIT on. It runs fine when JIT is turned off.
Obviously
0x0000000138000ce0
is a JIT block and it seems to lack the R/X bit.In
zend_jit_protect
, whenHAVE_PTHREAD_JIT_WRITE_PROTECT_NP
is defined, the function callspthread_jit_write_protect_np(1)
and exits. It works on x64 macOS systems, butdasm_buf
is inaccessible in Apple Silicon.I commented the
return
statement afterpthread_jit_write_protect_np(1);
and PHP runs fine.PHP Version
PHP 8.2.0-dev
Operating System
macOS 12.5.1
The text was updated successfully, but these errors were encountered: