assertion failed: next.is_notified()
during task dump with tokio v1.35.0
#6343
Labels
assertion failed: next.is_notified()
during task dump with tokio v1.35.0
#6343
Version
List the versions of all
tokio
crates you are using. The easiest way to getthis information is using
cargo tree
subcommand:cargo tree | grep tokio
tokio v1.35.0
Platform
The output of
uname -a
(UNIX), or version and 32 or 64-bit (Windows)Linux ip-10-0-173-157 4.14.336-178.554.amzn1.x86_64 #1 SMP Fri Jan 12 10:40:15 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux
Description
I'm getting panics with the experimental task dump stuff. I'm running this code:
and while it is running, I see panics such as:
These are very similar to those reported in #6051. We saw these more frequently prior to the fix mentioned there, but apparently they still happen sometime.
I've attached a log snippet; notes:
dump 0 completed with 41 active tasks
,active task
messages, and some other periodically logged stuff. So the dump does complete; it's workers in the dumped runtime that crash as it's running. The code above should be running on the main thread anyway, so if it were the panicking one, it wouldn't saythread 'tokio-runtime-worker' panicked
.As mentioned in this comment, this is a rare production thing that I unfortunately don't know how to reproduce.
@Darksonn asked:
Let's call it 99% sure. There are active tasks as mentioned above, and some of them were doing stuff as it happened, but the panics were just as the task dump was running, we've never seen them any other time, I don't think we do anything else strange right when we start the task dump, and the message is identical to the one from the previous task dump bug, so I'm going with the likely thing here.
pruned.csv
The text was updated successfully, but these errors were encountered: