Git Product home page Git Product logo

Comments (7)

lengyijun avatar lengyijun commented on August 19, 2024

fixed after cargo clean

from rust.

saethlin avatar saethlin commented on August 19, 2024

It's great that you managed to get your own workflow going by running cargo clean, but that papers over the problem. Crashes like this are not acceptable compiler behavior. I added this assertion in order to more clearly detect a bug if there was one, and clearly there is.

from rust.

lengyijun avatar lengyijun commented on August 19, 2024

this panic happens after I fix an out-of-disk problem

from rust.

saethlin avatar saethlin commented on August 19, 2024

Ooooo I thought I fixed all of the out-of-disk problems in 1.77. I'll take a look again.

from rust.

saethlin avatar saethlin commented on August 19, 2024

this panic happens after I fix an out-of-disk problem

Ah I see you edited your message. What do you mean by "fix" here? Did you run out of disk during a build, then free up some space, then try to compile again and get this crash?

from rust.

lengyijun avatar lengyijun commented on August 19, 2024

this panic happens after I fix an out-of-disk problem

Ah I see you edited your message. What do you mean by "fix" here? Did you run out of disk during a build, then free up some space, then try to compile again and get this crash?

IIRC, this is the case

I'm working on a proxmox virtual machine
I notice proxmox's io-error (a yellow symbol) when I was using rust-analyzer in vscode,
then cleanup disk, with a lot of reboots
then compile, then panic

from rust.

lukas-code avatar lukas-code commented on August 19, 2024

I've just hit the same assertion after recompiling after a power failure.

I think we may need to call fsync / File::sync_all on the dep-graph.part.bin file before renaming it to dep-graph.bin, otherwise data might get lost.

backtrace
thread 'rustc' panicked at /rustc/efd9d2df12b5e17fac0b4d0fb89f612ecd79f259/compiler/rustc_query_system/src/dep_graph/serialized.rs:190:9:
assertion `left == right` failed
  left: 30725197
 right: 32962287060911799
stack backtrace:
   0: rust_begin_unwind
             at /rustc/efd9d2df12b5e17fac0b4d0fb89f612ecd79f259/library/std/src/panicking.rs:645:5
   1: core::panicking::panic_fmt
             at /rustc/efd9d2df12b5e17fac0b4d0fb89f612ecd79f259/library/core/src/panicking.rs:72:14
   2: core::panicking::assert_failed_inner
             at /rustc/efd9d2df12b5e17fac0b4d0fb89f612ecd79f259/library/core/src/panicking.rs:343:17
   3: core::panicking::assert_failed::<usize, usize>
   4: rustc_incremental::persist::load::setup_dep_graph
   5: <rustc_interface::queries::Queries>::global_ctxt
   6: rustc_interface::interface::run_compiler::<core::result::Result<(), rustc_span::ErrorGuaranteed>, rustc_driver_impl::run_compiler::{closure#0}>::{closure#0}

dep-graph.bin.zip

from rust.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.