-
Notifications
You must be signed in to change notification settings - Fork 7.9k
EG(strtod_state).freelist leaks with opcache.preload #16577
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
Comments
I can reproduce this only on ZTS. |
This happens because on ZTS we execute |
nielsdos
added a commit
to nielsdos/php-src
that referenced
this issue
Oct 25, 2024
This happens because on ZTS we execute `executor_globals_ctor` which reset the `freelist` and `p5s` pointers, while on NTS we don't. On NTS we can reuse the caches but on ZTS we can't, the easiest fix is to call `zend_shutdown_strtod` when preloading is shut down. This regressed in phpGH-13974 and therefore only exists in PHP 8.4 and higher.
Sorry for not mentioning that it's a ZTS build, though I was aware that it's ZTS specific. Thanks :-) |
No worries 🙂 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Description
The following code (in a file
preload.php
):Resulted in this output:
PHP Version
PHP 8.4RC3
Operating System
No response
The text was updated successfully, but these errors were encountered: