-
Notifications
You must be signed in to change notification settings - Fork 13.3k
Internal compiler error with cargo run
and cargo build
#89295
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
@jakobrs can you reproduce this even after a |
It happens if I run I have no idea how I got the |
It crashes in CI with It is a bad example probably as it is a big project and takes a long time to compile. |
Yes, a lot of things has changed since September though. |
I ran I have no idea if it is possible to reliably get the build directory into this state where |
I'm going to remove the I-prioritize label as this issue seems to have become harder to reproduce (might also be a candidate for being closed if no more evidence emerge). In case, don't hesitate to raise the flag. @rustbot label -I-prioritize -s-waiting-on-author |
Triage: Relabeling issues which don't have a runnable reproduction (as opposed to having a non-minimized one) to the new label S-needs-repro. |
As far as I can tell, the ICE reported in this issue is caused by another process damaging rustc's build artifacts or by a buggy filesystem. That other process could be anything from an IDE running the compiler at the same time as a manual build to a find-and-replace that accidentally edits files in the target directory. #124686 contains a mitigation for this situation; the compiler now has a crude way to detect and ignore damaged incremental compilation files. You will still get a warning about the damaged file, but the build should proceed normally. That change shipped in Rust 1.80 which released today, so I am closing this issue and a few others which as far as I can tell all have the same root cause. You shouldn't see this ICE anymore, but please file a new issue if you see something like it on 1.80 or later. |
Code
This stops happening if I delete the
target/debug/incremental
directory.This repository: https://gitlab.com/tasbot/tasbot_pbn
tar.gz of repository: tasbot_pbn.1.tar.gz
Meta
rustc --version --verbose
:Error output
Backtrace
The text was updated successfully, but these errors were encountered: