-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
meta: task dump stabilization #5638
Comments
@jswrenn Something I noticed (and I updated the checklist). The I know |
What's the current behavior with Very Stuck Tasks? I'm trying to use task dumps to diagnose some tasks not making progress. No luck so far. Besides sometimes getting panics (#6185), I'm seeing tasks where |
Thanks for reporting the panic issue — I had really hoped we fixed that, but I guess not. I'll look into that ASAP. I believe the behavior of taskdumps in the presence of very-stuck-tasks should be to hang. Tasks dumps work by waiting for all polls to complete, then re-polling all tasks in a special tracing mode. If a poll never completes, this synchronization point cannot be reached and a taskdump cannot be produced. (That's not ideal, but an infinite-looping I would only expect task dumping to produce an empty string in cases when the dumped runtime has no work to do. This might happen if you have multiple runtimes and are polling one that happens to have no work to do. That said, the fact that you're running into #6185 means that some of my assumptions are wrong. |
Hmm. I do have multiple runtimes (I give |
I think empty strings could also arise if the tasks are simple and aggressively inlined. Are you experiencing this in debug builds?
Correct. |
Feature Request: #5457
PRs:
Roadmap:
runitme::Context
do not haveDrop
implementations.Id
in taskdumps #6328)FuturesUnordered
andLocalSet
futures are included in dumps.backtrace-rs
dependency.#[cfg]
s.The text was updated successfully, but these errors were encountered: