-
Notifications
You must be signed in to change notification settings - Fork 551
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
Assertion failure in uv__io_stop #311
Comments
Thanks for reporting this. We'll take a look soon. |
This is highly-possibly caused by the last comment I put in libuv/libuv#2058, and #317 for the same reason. |
* in order to detect peer close on O_WRONLY pipe_t * partially reverted d8fe153 * refs libuv/libuv#2058 * refs MagicStack#317 * fixes MagicStack#311, fixes MagicStack#312
* in order to detect peer close on O_WRONLY pipe_t * partially reverted d8fe153 * refs libuv/libuv#2058 * refs MagicStack#317 * fixes MagicStack#311, fixes MagicStack#312
* in order to detect peer close on O_WRONLY pipe_t * partially reverted d8fe153 * refs libuv/libuv#2058 * refs #317 * fixes #311, fixes #312
@fantix
I tried to use gdb to print stack as below
I cannot get useful information from the stack, can you help me to confirm is it relative about this ticket? Or how can I reproduce this error? |
PYTHONASYNCIODEBUG
in env?: Yes.The attached testcase test.zip crashes uvloop with the following message:
This looks similar to #88. Here is a stacktrace using gdb: stacktrace.txt
The real-world application tries to read kadmin’s stdout and write to its stdin. The included mock.py replaces kadmin, but – for this issue – behaves the same. Vanilla asyncio works exactly as expected.
edit: Upon further investigation replacing the two lines
with a single write
solves the issue, which indicates a race condition somewhere inside uvloop.
The text was updated successfully, but these errors were encountered: