Skip to content

Bootstrap should better handle cases where the lock is hold by nobody #135972

Closed
@WaffleLapkin

Description

@WaffleLapkin

Summary

I just saw this:

WARNING: build directory locked by process , waiting for lock

Which made me quite confused confused. is , the process? (not unheard of, I have a binary called ,) Is the process empty string?

The actual result is (most likely) that because rust-analyzer OOM'ed after using >44GiB of RAM today, the lock was not released and so is held by no process (thus, empty string).

Command used

x b proc-macro-srv-cli rustfmt --stage 0 --build-dir build/rust-analyzer

(although it does not matter)

Expected behaviour

Bootstrap explicitly saying that no process is holding the lock & possibly even suggesting removing the lockfile.

Operating system

NixOS

HEAD

99768c8

Metadata

Metadata

Assignees

Labels

C-bugCategory: This is a bug.T-bootstrapRelevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap)

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions