Skip to content
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

Some way to dump debug info about all living tasks #12229

Closed
lilyball opened this issue Feb 13, 2014 · 3 comments
Closed

Some way to dump debug info about all living tasks #12229

lilyball opened this issue Feb 13, 2014 · 3 comments

Comments

@lilyball
Copy link
Contributor

There should be some way to print debug info about all tasks that are still alive. The use-case I have for this is figuring out why my app didn't exit (because at least one task is still alive). This could be the default behavior for e.g. the USR1 signal, or it could be provided as a debug method that I can then call from my own signal handler.

@lilyball
Copy link
Contributor Author

cc @alexcrichton

@thestinger
Copy link
Contributor

With native tasks, it's easy to inspect them by attaching a debugger or using OS-specific mechanisms like /proc on Linux.

@thestinger
Copy link
Contributor

I think attaching a debugger is a satisfactory solution now that #17325 is filed / approved. In gdb, the command for this is info threads. #10302 would be easy to implement and would provide the task names there.

bors added a commit to rust-lang-ci/rust that referenced this issue Jul 25, 2022
fix: Fix vscode config descriptions not recognizing all valid values
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants