-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
libcontainer: read init-p: connection reset by peer #1547
Comments
You need to import |
It's already in my code: https://github.com/clearcontainers/agent/blob/master/agent.go#L37 |
After some investigations, I found and fixed my issue. Every time that we call into container.Run() or container.Start(), the calling process has to wait for one child to be reaped. This should be clearly specified in the libcontainer code comments. It would help to understand that if we don't do that, we leave one zombie every time a new process is started. |
@cyphar Cool, so you think I can safely remove the reaper from my code ? Here: clearcontainers/agent@56aca91 Also, what do you mean by "it was not intentional" ? Not intentional to fix this issue with the PR #1506 or you mean that the issue was not intentional and that libcontainer should have reaped this zombie child from the beginning but that you never realized ? |
runc should've been reaping the zombie created during the |
@cyphar well of course I still have to wait for the exit code, but if I understand #1506 correctly, there is no |
Yeah, it fixes the issue for |
I have here https://github.com/clearcontainers/agent a piece of code relying heavily on libcontainer to spawn new containers/processes inside a VM.
I started some long running tests to validate the functioning but I run into some issues...
Here is what I do
And after 15930 iterations, I get always the same error:
After that, I cannot run any more
exec
command.Any idea ?
The text was updated successfully, but these errors were encountered: