Skip to content

Chaos ensues when cargo miri is run concurrently #2340

Closed
@RalfJung

Description

@RalfJung

Two instances of cargo miri running concurrently can lead to the following fun situation:

  • A creates and fills the Xargo.toml.
  • B empties the Xargo toml.
  • A runs xargo.
  • (B fills the Xargo.toml but now it's too late.)

Then we end up building a no-std systroot. oops
We need to either do the Xargo.toml writing atomically via rename or so and hope that xargo itself is fine with the concurrency, or (probably better) have some kind of file system locking.

Thanks to @matthiaskrgr for reporting this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-cargoArea: affects the cargo wrapper (cargo miri)C-bugCategory: This is a bug.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions