-
Notifications
You must be signed in to change notification settings - Fork 15
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
Waking the current task leads to a deadlock #3
Comments
This is the backtrace from the moment of the deadlock, according to gdb:
It looks like |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
If a Rust future is co_awaited from C++ and that future decides to wake the current task, then a deadlock will occur.
Found while trying to use
futures::FuturesUnordered
which wakes the current task here.I attach a minimal example below.
main.hh
:main.cc
:main.rs
:Only "Start!" is printed, then the program deadlocks.
The text was updated successfully, but these errors were encountered: