Skip to content

x.py sometimes panics on Windows when the build is cancelled #86499

Closed
@jyn514

Description

@jyn514
PS C:\Users\Joshua Nelson\src\rust> x check
Updating only changed submodules
Submodules updated in 0.14 seconds
   Compiling bootstrap v0.0.0 (C:\Users\Joshua Nelson\src\rust\src\bootstrap)
    Finished dev [unoptimized + debuginfo] target(s) in 13.28s

Build completed unsuccessfully in 0:00:14
PS C:\Users\Joshua Nelson\src\rust> thread 'main' panicked at 'PID `14496` doesn't seem to exist: The parameter is incorrect. (os error 87)', src\bootstrap\job.rs:106:5

Meta

rust/src/bootstrap/job.rs

Lines 105 to 111 in e82b650

let parent = OpenProcess(PROCESS_DUP_HANDLE, FALSE, pid.parse().unwrap());
assert!(
!parent.is_null(),
"PID `{}` doesn't seem to exist: {}",
pid,
io::Error::last_os_error()
);

Metadata

Metadata

Assignees

Labels

C-bugCategory: This is a bug.O-windowsOperating system: WindowsT-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