-
Notifications
You must be signed in to change notification settings - Fork 7.7k
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
Segmentation fault in zend_mm_alloc_small, heap->free_slot corrupted #14913
Comments
Hi
are you using opcache JIT ? |
@devnexen |
Hi @shm-dmitry! Can you try disabling observers? The stack trace itself is not super indicative of the error, because it is likely cause by a buffer overwrite in some other place. If you can reproduce the error locally, you could try compiling PHP with the |
You got a heap corruption because of use-after-free or double free. |
@dstogov , this is production server with old operation system. Modules list
|
I see, you don't use third-party extensions, so the bug should be in the mai PHP source tree. |
@dstogov , I'm sorry, but my previous modules list was from another server.
|
This won't help me to identify the problem, but now I see third-party extensions that may be the source of failure. |
I can try to disable it, which modules are you talking about?
I've seen some problems with the geo-ip extension somewhere, I'll try to disable it. |
Most probably the "bad" extension is used by your app and won't work without it. |
@shm-dmitry You might want to try to remove Xdebug at least, which should generally not be installed in your production environment. |
@iluuu1994 , yes, I disabled xdebug, and no crashes have occurred in the last hour. I am continuing to check this now and will write a message when I am sure of the result. |
I waited for a while and ran some tests, and now I'm sure the problem was in the
I think this issue can be closed due to a problem (probably?) in the external module. |
As you didn't have a consistent reproduction case, removal of xdebug might only hide the problem and it might appear back on some conditions. Also may be xdebug has to be fixed. |
Description
I have site running under apache & php.
One of apache process crashes in random moment of time a few times per hour.
Apache log:
I took core dump and opened it in gdb.
As you see heap->free_slot[13] is an invalid pointer.
Backtrace:
zbacktrace:
php.ini:
The
opcache.protect_memory
string does not affect crashes.PHP Version
PHP 8.3.8
Operating System
CentOS Linux 7
The text was updated successfully, but these errors were encountered: