Skip to content

Fix GH-8517: FPM child pointer can be possibly uninitialized #9444

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

Closed
wants to merge 1 commit into from

Conversation

bukka
Copy link
Member

@bukka bukka commented Aug 28, 2022

The idea is that there might be a moment when the child log event is executed after freeing child. That could possibly happen if child output is triggered at the same time like terminating the child. Then the output event could be potentially processed after the terminating event which would cause this kind of issue.

The issue might got more visible after introducing the log_stream on child because it is more likely that this cannot be dereferenced after free. However it is very hard to reproduce this issue so this is still a guess based on the logs and code.

@bukka
Copy link
Member Author

bukka commented Aug 28, 2022

It should be noted that the initial implementation might introduce extra load on master process due to the child searching which is not exactly optimal. If the issue is confirmed and the extra load is visible, some extra optimization can be added. However if there's not much extra load visible, we could leave the optimization to more stable version as they are more risky.

@bukka
Copy link
Member Author

bukka commented Nov 23, 2022

Merged via c9c1934

@bukka bukka closed this Nov 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants