-
Notifications
You must be signed in to change notification settings - Fork 97
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
cleaning up fd to avoid thread hangup #280
Conversation
Signed-off-by: vincent <[email protected]>
67d55b7
to
a8e4f64
Compare
Why do we need to do this?
I would say in general it's when calling I don't see where the fd is leaked outside of these cases. Do you you when that happens? |
I could reproduce hang up issue by run basic demo In fact, this issue doesn't have much output information. So I'm attempting to fill in what I thought was missing to address this issue. However, you might be right; this might not be the true root cause. I'll first fix the CI and then give more thought to your feedback. |
I can totally see how 11d867a could have introduced the issue. But I don't know why. Maybe something related to the process being cloned? |
yup, me too. 🤔 |
Does it happen every time or sporadically? I can't reproduce it locally, even after 1500 iterations. What is your test environment? |
What ~ really?! I ran it on our development server and it hangs every time. That's really strange.
|
I add CI to test demo with those commits before and after stdio refactor. |
I just tried in a Ubuntu 22.04 VM, but I can't reproduce. |
I tried with a 20.04 VM and the same. |
In here, I upgrade my github runner to containerd v1.7.5 and check it inside workflow before running again
But no luck 🥲 |
Ok, I see what's happening. Doesn't explain why it works fine for me locally, but now we can fix it :-) |
Adding the missing section.
The original behavior was inside instance_linux.rs, uncertain whether it applies to Windows.