-
Notifications
You must be signed in to change notification settings - Fork 13.4k
ICE due to possibly corrupted cargo target folder #93558
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
Comments
Apparently github doesn't like attaching large zips to an issue. If anyone is interested in the target directory, please tell me in what way I can provide it most easily. It's 700Mb large. |
Can you update to the latest nightly? If this happens again, you should get a crash with a more detailed error message. |
I will give it a try. I hope I can reproduce it. |
🎉 I have been able to reproduce this error. While working on the same project it just sort of happened again. This time I could try it with nightly. However, on nightly I cannot reproduce the bug as compiling with nightly rebuilds the target directory (for nightly) solving the issue. I will keep working on the project in nightly for a while to try to reproduce it properly. I accidentally rebuilt my cargo target directory (I changed a compiler flag) so I don't have a backup of the version that caused the ICE. However, this might not be very useful anyway since we established earlier that tarring/untarring it resolved the bug. |
Thank you for confirming this has been fixed! |
Code
This internal compiler error has not been caused by any specific code. I got it when I ran
cargo test
on a library. I went back through my git history to find a known-good commit on whichcargo test
passed. However, I got the backtrace as shown below even on this known-good version of the codebase.I suspected my target folder somehow got corrupted. Therefore I made a backup of it, removed it and rebuilt the entire project. This removed the ICE.
This leads me to believe that rust/cargo somehow got its own target folder in a weird state where compilation was no longer possible.
I attached my target folder of when the error occurred here if its of any use. I understand that this entire issue report doesn't provide much to go on. I still decided to report it since in general I don't think ICEs are ever desired.
EDIT: I moved by backup target folder back to see if I could reproduce the bug and I couldn't. This means we've got even less to go on :(.
Meta
rustc --version --verbose
:Error output
Backtrace
The text was updated successfully, but these errors were encountered: