-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
ErrorHandler produces OOM error when trying to handle a previous OOM error #40824
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
Hey, thanks for your report! |
Just a quick reminder to make a comment on this. If I don't hear anything I'll close this. |
Thanks for providing a reproducer! |
No, I never found a workaround.
Sorry, I don't have the time. |
I created a PR (see above), but I don't think that the code is going to be enough. Any feedback or suggestions are welcome. |
…0k to 32k (sakalys) This PR was merged into the 4.4 branch. Discussion ---------- [Debug][ErrorHandler] Increased the reserved memory from 10k to 32k | Q | A | ------------- | --- | Branch? | 4.4 | Bug fix? | yes | New feature? | no | Deprecations? | no | Tickets | Fix #40824 | License | MIT | Doc PR | n/a The ErrorHandler's job includes handling out of memory (OOM) exceptions, therefore it is important that that feature works. In the current state, when handling OOM exceptions, the error handler produces an OOM error itself, because the old 10kB reserve is apparently not enough anymore. To mitigate that, the reserved memory gets bumped to 32k (which is enough). *Note* I'm not familiar with the whole open source submitting process, so any feedback and instructions on how to improve this PR are welcome. I am not sure on how to write a unit test to test something like that (talking about the issue here #40824). Commits ------- cbac313 Increased the reserved memory from 10k to 32k
Symfony version(s) affected: 4.4.16, 5.2.6
Description
On some OOM errors the Symfony ErrorHandler itself throws an OOM error trying to handle the previous error. This is a problem as it can make handling OOM errors impossible to handle.
This is the php output:
The second fatal error is not expected.
How to reproduce
https://github.com/tachnik/reproduce-oom-in-error-handler-bug
The text was updated successfully, but these errors were encountered: