-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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
deadlock ice: missing thread name #122035
Comments
Hm, I did recently land a related std change but I'm not sure if it would cause this issue. It should only affect threads that Rust doesn't create itself and in any case it switches the default name from Though maybe there's something about parallel's deadlocks I'm missing. |
I think you're good since the problem is older than your pr :D |
Oh good! I mean bad, but I was dreading a very long debugging session 😆 |
well, if you feel bored or something.... 🙃 |
Serial rustc creates a single thread called rustc. I assume parallel rustc just doesn't name its rayon threads, no debugging session ahead. |
We create a new thread to look for query cycles, it's unnamed at the moment and that's where the panic happens. |
Some tweaks to the parallel query cycle handler This renames `deadlock` to `break_query_cycles`. The abort logic is moved next to the thread spawning and gives the thread a name. Fixes rust-lang#122035. r? `@oli-obk`
Some tweaks to the parallel query cycle handler This renames `deadlock` to `break_query_cycles`. The abort logic is moved next to the thread spawning and gives the thread a name. Fixes rust-lang#122035. r? ``@oli-obk``
Rollup merge of rust-lang#122215 - Zoxc:cycle-detect-names, r=oli-obk Some tweaks to the parallel query cycle handler This renames `deadlock` to `break_query_cycles`. The abort logic is moved next to the thread spawning and gives the thread a name. Fixes rust-lang#122035. r? ```@oli-obk```
Some tweaks to the parallel query cycle handler This renames `deadlock` to `break_query_cycles`. The abort logic is moved next to the thread spawning and gives the thread a name. Fixes rust-lang/rust#122035. r? ```@oli-obk```
I noticed that when parallel rustc panics due to deadlock, it would say
thread 'unnamed' panicked
instead ofthread 'rustc' panicked
.Is this intended?
The text was updated successfully, but these errors were encountered: