You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I managed to replicate the deadlock on my Mac, but running the following in 6 console windows, simultaneously. It takes a few minutes to get to a deadlock:
while true; do pytest tests/test_misc.py; done
(By the way, Ctrl-C does nothing.)
We have seen the deadlock in GitHub Actions as well:
Observation
I managed to replicate the deadlock on my Mac, but running the following in 6 console windows, simultaneously. It takes a few minutes to get to a deadlock:
while true; do pytest tests/test_misc.py; done
(By the way, Ctrl-C does nothing.)
We have seen the deadlock in GitHub Actions as well:
https://github.com/python-trio/trio-asyncio/runs/1662700976
Analysis
It deadlocks because of combination of two things:
test_cancel_sleep
thedo_no_run
callback sometimes runsh.cancel()
(timer inaccuracy?)raise Exceptions("should not run")
triggerswait_task_rescheduled
abort_cb
callback inrun_aio_future
and the task never gets scheduled again.trio-asyncio/tests/test_misc.py
Lines 256 to 271 in b93c320
The text was updated successfully, but these errors were encountered: