-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
Panic: pidfd is ready to read, the process should have exited #7144
Comments
I just noticed that it only seems to happen while I am |
I'm not sure, but can we eliminate your map from the equation? E.g., could you instead do let send = send.clone();
tokio::spawn(async move { send.send((key, child.wait().await)) }); with |
@Darksonn best I could do was to use a I was still able to trigger the issue with a Only when |
|
cc @ipetkov Ideas? I guess the pidfd sometimes becomes ready when stracing? |
To clarify, this happens while stracing and the child exits during that time. |
Version
TL;DR:
1.42.0
cargo tree
Platform
Linux version 5.15.98
Description
I'm launching
crun run ...
commands withtokio::process::Command
and usingChild::wait
.I am using a
FutureMap
(implementation) and spawning children on it like:Then I'm polling it in
tokio::select!
.Is it because my
FutureMap
is not cancel safe?The text was updated successfully, but these errors were encountered: