-
Notifications
You must be signed in to change notification settings - Fork 13k
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
ICE because of a bad file on disk? #127167
Comments
I'm on chapter 3 of the Rust book (Brown.edu version) as a complete beginner and tried adding a comment (without knowing the correct syntax, though I looked it up and it looks like this should be right?) and it exploded, I suspect it's the same as this issue? EDIT: It seems like running EDIT 2: It occured to me, this possibly because I'm using fuse filesystem for /home. I haven't noticed any other issues with it (for general desktop computing purposes for a few months) but mentioning in case. Possible similar issues: #126794 #126982 Codefn main() {
println!("Hello, world!");
// test
} Meta
Switching to the beta version with
Error outputClick to expand
Backtrace
|
@ethus3h You are running into a different problem, unless you have the exact same error message please file a separate issue. The original issue here is about
But you are reporting
|
As far as I'm aware, the original issue here is indeed a corrupt file on disk. I added code that should work around such corruption in #124686, but it lands in 1.80 which is not stable yet. As that PR description states, that PR is likely to eliminate ICEs that mention Incremental compilation ICEs mentioning other values will not be affected. |
The incremental compilation system that rustc uses really needs both hardlinks and filesystem locks to behave correctly. It wouldn't surprise me if you are using a fuse-based filesystem that is subtly buggy. You wouldn't be the first. |
I see, good to know. I'll just use |
The specific ICE that mentions |
In that case, you might as well just disable incremental compilation, ie without |
Code
Structurally it's a workspace with 2 binaries and a lib. I got the issue whilst compiling bin1 which only depends on serde, clap and zip.
The code isn't special, just reading a zip file and writing a few text files. After
cargo clean
everything was back to normal, hence why my code isn't the culprit here.Meta
rustc --version --verbose
:Error output
I first noticed the issue when Enhanced Rust on Sublime Text told me to check the error logs and I saw the backtrace, which was different from the one I had when just calling
cargo build
.Enhanced Rust Backtrace
Cargo build Backtrace
The text was updated successfully, but these errors were encountered: