Skip to content
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

When server is under heavy load, binding with the PlaceholderBinder causes SEGFAULT!!! #385

Closed
g105b opened this issue Oct 19, 2022 · 0 comments
Assignees
Labels

Comments

@g105b
Copy link
Member

g105b commented Oct 19, 2022

This is a libxml issue, but it can be fixed here.

There seems to be a memory leak in libxml, similar to what's described in PHP Bug 81506.

I've managed to trace the issue down to PlaceholderBinder's use of Text::splitText. If this is done within a bindList operation, it's fine, but the scary thing is when other PHP processes do the same thing, concurrently, a SEGFAULT is caused.

This is only apparent on busy applications, but a good way of replicating is by running PHPUnit thousands of times in parallel.

@g105b g105b self-assigned this Oct 19, 2022
@g105b g105b added the bug label Oct 19, 2022
g105b added a commit that referenced this issue Oct 19, 2022
g105b added a commit that referenced this issue Oct 19, 2022
@g105b g105b closed this as completed in 2e0df6c Oct 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant