-
Notifications
You must be signed in to change notification settings - Fork 12.7k
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
Add debug logging output to Sender #11582
Comments
Note that debugging a message would probably involve using
If you built libstd with |
That strategy sounds perfect. Additionally, with the |
Triage: no change that I'm aware of. @larsbergstrom do you still feel this pain? |
So we feel the pain a bit less after the removal of green threads, because there's always a stack backtrace above the thread. That said, we have these concurrency problems ALL the time, leading to huge numbers of intermittents in Servo. I suspect, though, that the right solution is for us to be using https://github.com/mozilla/rr to debug these issues in Servo, though, rather than broken printf-debugging. If we want that, we can always (at least on linux) use some cheesy gdb-automation breakpoints to spit out messages similar to the ones @alexcrichton is suggesting, without bloating the stdlib. |
We could take the approach @alexcrichton described, but use specialization to log the actual values when |
Triage: with no comments in years, I don't think this is likely to happen. I'm going to give it a close. If anyone strongly desires this, please let me know, and we can re-open. |
Add missing lint description headers Discovered in https://github.com/rust-lang/rust-analyzer/pull/15680/files#diff-7cb229b5139c72b6c230e3c195be375724c92226421fd57d5cf08872503e8c27L214-R226 changelog: none
It would be great if we could get logging output from channels so that
send
would do something like:sending message MSG from task TASK
And any call to
recv
would doreceived message MSG in task TASK
In Servo, we frequently need to debug race conditions and deadlocks or just explain what happens when e.g. we get a mouse click in the window. Having this debugging info would greatly help (and let us build visualization tools on top of the output).
The text was updated successfully, but these errors were encountered: