-
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
opcache.jit=1211 in php.ini causes apache to crash #9105
Comments
I cannot reproduce this with php-8.1.7-Win32-vs16-x64. A stack backtrace might be helpful to figure out the root cause of the crash. Also any more relevant details about which script/application you are running (ideally a minimal reproduce script). |
Here in my php.ini. You will see where I have commented out I don't get a crash running php from the command line, only from Apache. Uncommenting this one line causes a crash. P.S. Sorry - but the running a stack-trace is too much effort. |
Okay, I still cannot reproduce with a similar php.ini. Does it crash if you disable Xdebug (don't load it at all)? |
Hmmm. I tried this twice with both |
Is |
No. They were being held in memory because there were no files in the opcache folder. |
Okay. That still might explain the different outcome. As is, apache2handler on Windows (assuming mpm_winnt) creates the shared memory for OPcache, and than tries to re-attach once. If the re-attaching fails, no OPcache is used at all. This is why we generally recommend to use the file_cache as backup mechanism. Of course, this info doesn't really help to resolve the issue at hand. :( |
This ticket is unactionable right now. There have been countless fixes to opcache & jit since this, and there's even an entirely new JIT engine in PHP 8.4. Please retry on PHP 8.3 or higher. I'll close this now, if you still experience this and have more information please place a comment and we can reopen. |
Description
I tried to configure JIT with
opcache.jit=1211
in php.ini and although I could successfully do a CLIphp -i
, when trying to load a php webpage through apache caused apache to crash.Commenting this out (and falling back to
opcache.jit=tracing
made JIT work.PHP Version
8.1.7
Operating System
Windows 10 / Apache 2.4.54
The text was updated successfully, but these errors were encountered: