Giter Club home page Giter Club logo

Comments (5)

dtolnay avatar dtolnay commented on June 26, 2024 1

I also observed this in https://github.com/dtolnay/rustversion/actions/runs/8429673336/job/23084341781, in which I use neither -Zminimal-versions nor -Zdirect-minimal-versions. Seems like a broader issue. Nightly-2024-03-26 is the first version affected in my case as well.

from cargo.

epage avatar epage commented on June 26, 2024 1

So it appears the reason manual testing and the test suite didn't hit this is there wasn't contention over the package lock. In fact, we only have one test that even attempts to capture the Blocking status.

We could try to make a specific test case to prevent regressions in this one case but then we'd likely run into this in other places. As an alternative, we could do a useless borrow of shell() further up the stack where it'd be unconditional so tests would be more likely to catch this.

from cargo.

dtolnay avatar dtolnay commented on June 26, 2024

Bisects to #13561 and specifically 4ab2797, using cargo test in the rustversion repo. @epage

from cargo.

taiki-e avatar taiki-e commented on June 26, 2024

From a quick look at the panic location (GlobalContext::shell), backtrace, and #13561 diff, it appears to be related to the fact that BorrowMut (returned by GlobalContext::shell), which previously persisted only during printing, now persists for the entire print_lockfile_updates.

from cargo.

weihanglo avatar weihanglo commented on June 26, 2024

we could do a useless borrow of shell() further up the stack where it'd be unconditional so tests would be more likely to catch this.

I wonder How it looks like and how it applies to other RefCell usages in the codebase.

from cargo.

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.