[INFO] cloning repository https://github.com/Reboare/sandbox_process [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Reboare/sandbox_process" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FReboare%2Fsandbox_process", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FReboare%2Fsandbox_process'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] a1dde6da7104d40e9f6bc9a31f8b585e33270973 [INFO] testing Reboare/sandbox_process against try#16fbf98f22730e073c09e7b03f0eafb87a295545 for pr-145628-retry-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FReboare%2Fsandbox_process" "/workspace/builds/worker-5-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-5-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/Reboare/sandbox_process [INFO] finished tweaking git repo https://github.com/Reboare/sandbox_process [INFO] tweaked toml for git repo https://github.com/Reboare/sandbox_process written to /workspace/builds/worker-5-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/Reboare/sandbox_process on toolchain 16fbf98f22730e073c09e7b03f0eafb87a295545 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+16fbf98f22730e073c09e7b03f0eafb87a295545" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/Reboare/sandbox_process already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+16fbf98f22730e073c09e7b03f0eafb87a295545" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+16fbf98f22730e073c09e7b03f0eafb87a295545" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 3fdb1d380c5383511004a9650aff288ef6554737c98fa58816e77ad090f84a57 [INFO] running `Command { std: "docker" "start" "-a" "3fdb1d380c5383511004a9650aff288ef6554737c98fa58816e77ad090f84a57", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "3fdb1d380c5383511004a9650aff288ef6554737c98fa58816e77ad090f84a57", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3fdb1d380c5383511004a9650aff288ef6554737c98fa58816e77ad090f84a57", kill_on_drop: false }` [INFO] [stdout] 3fdb1d380c5383511004a9650aff288ef6554737c98fa58816e77ad090f84a57 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+16fbf98f22730e073c09e7b03f0eafb87a295545" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] a47ef2de08936da889e88189405d0f4402283fcb67ced892ad41f0fe3a2618c2 [INFO] running `Command { std: "docker" "start" "-a" "a47ef2de08936da889e88189405d0f4402283fcb67ced892ad41f0fe3a2618c2", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.36 [INFO] [stderr] Compiling unicode-xid v0.2.2 [INFO] [stderr] Compiling syn v1.0.86 [INFO] [stderr] Compiling memchr v2.4.1 [INFO] [stderr] Compiling libc v0.2.117 [INFO] [stderr] Compiling hashbrown v0.11.2 [INFO] [stderr] Compiling heck v0.4.0 [INFO] [stderr] Compiling termcolor v1.1.2 [INFO] [stderr] Compiling textwrap v0.14.2 [INFO] [stderr] Compiling indexmap v1.8.0 [INFO] [stderr] Compiling atty v0.2.14 [INFO] [stderr] Compiling quote v1.0.15 [INFO] [stderr] Compiling os_str_bytes v6.0.0 [INFO] [stderr] Compiling proc-macro-error-attr v1.0.4 [INFO] [stderr] Compiling proc-macro-error v1.0.4 [INFO] [stderr] Compiling clap_derive v3.0.14 [INFO] [stderr] Compiling clap v3.0.14 [INFO] [stderr] Compiling sandbox_process v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `windows` [INFO] [stdout] --> src/main.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use windows::Win32::System::Threading::{OpenProcess, OpenProcessToken, PROCESS_QUERY_LIMITED_INFORMATION}; [INFO] [stdout] | ^^^^^^^ use of unresolved module or unlinked crate `windows` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `windows`, use `cargo add windows` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `windows` [INFO] [stdout] --> src/main.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use windows::Win32::Security::*; [INFO] [stdout] | ^^^^^^^ use of unresolved module or unlinked crate `windows` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `windows`, use `cargo add windows` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `windows` [INFO] [stdout] --> src/main.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use windows::Win32::Foundation::{LUID, PSID, HANDLE, PSTR}; [INFO] [stdout] | ^^^^^^^ use of unresolved module or unlinked crate `windows` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `windows`, use `cargo add windows` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `windows` [INFO] [stdout] --> src/main.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use windows::Win32::System::SystemServices::*; [INFO] [stdout] | ^^^^^^^ use of unresolved module or unlinked crate `windows` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `windows`, use `cargo add windows` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved imports `windows::Win32::System::Threading::OpenProcess`, `windows::Win32::System::Threading::OpenProcessToken`, `windows::Win32::System::Threading::PROCESS_QUERY_LIMITED_INFORMATION`, `windows::Win32::Security::*`, `windows::Win32::Foundation::LUID`, `windows::Win32::Foundation::PSID`, `windows::Win32::Foundation::HANDLE`, `windows::Win32::Foundation::PSTR`, `windows::Win32::System::SystemServices::*` [INFO] [stdout] --> src/main.rs:1:41 [INFO] [stdout] | [INFO] [stdout] 1 | use windows::Win32::System::Threading::{OpenProcess, OpenProcessToken, PROCESS_QUERY_LIMITED_INFORMATION}; [INFO] [stdout] | ^^^^^^^^^^^ ^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 2 | use windows::Win32::Security::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 3 | use windows::Win32::Foundation::{LUID, PSID, HANDLE, PSTR}; [INFO] [stdout] | ^^^^ ^^^^ ^^^^^^ ^^^^ [INFO] [stdout] 4 | use windows::Win32::System::SystemServices::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `TOKEN_ALL_ACCESS` in this scope [INFO] [stdout] --> src/main.rs:42:55 [INFO] [stdout] | [INFO] [stdout] 42 | let token_open = unsafe{OpenProcessToken(phandle, TOKEN_ALL_ACCESS, &mut token_handle)}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `LUID_AND_ATTRIBUTES` in this scope [INFO] [stdout] --> src/main.rs:49:21 [INFO] [stdout] | [INFO] [stdout] 49 | let privs = LUID_AND_ATTRIBUTES {Luid: LUID { LowPart: 0, HighPart: 0,},Attributes: SE_PRIVILEGE_REMOVED,}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `SE_PRIVILEGE_REMOVED` in this scope [INFO] [stdout] --> src/main.rs:49:93 [INFO] [stdout] | [INFO] [stdout] 49 | let privs = LUID_AND_ATTRIBUTES {Luid: LUID { LowPart: 0, HighPart: 0,},Attributes: SE_PRIVILEGE_REMOVED,}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `TOKEN_PRIVILEGES` in this scope [INFO] [stdout] --> src/main.rs:50:22 [INFO] [stdout] | [INFO] [stdout] 50 | let mut tp = TOKEN_PRIVILEGES {PrivilegeCount: 1,Privileges: [privs ;1],}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `TOKEN_PRIVILEGES` in this scope [INFO] [stdout] --> src/main.rs:53:83 [INFO] [stdout] | [INFO] [stdout] 53 | let _ = unsafe{AdjustTokenPrivileges(token_handle,false,&mut tp,size_of::() as _,null_mut(),null_mut())}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `SID_REVISION` in this scope [INFO] [stdout] --> src/main.rs:57:30 [INFO] [stdout] | [INFO] [stdout] 57 | sid_integrity.Revision = SID_REVISION as u8; [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `SECURITY_MANDATORY_UNTRUSTED_RID` in this scope [INFO] [stdout] --> src/main.rs:60:37 [INFO] [stdout] | [INFO] [stdout] 60 | sid_integrity.SubAuthority[0] = SECURITY_MANDATORY_UNTRUSTED_RID as u32; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `SE_GROUP_INTEGRITY` in this scope [INFO] [stdout] --> src/main.rs:63:40 [INFO] [stdout] | [INFO] [stdout] 63 | token_mandatory.Label.Attributes = SE_GROUP_INTEGRITY as u32; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `TokenIntegrityLevel` in this scope [INFO] [stdout] --> src/main.rs:67:9 [INFO] [stdout] | [INFO] [stdout] 67 | TokenIntegrityLevel, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `TOKEN_MANDATORY_LABEL` in this scope [INFO] [stdout] --> src/main.rs:69:30 [INFO] [stdout] | [INFO] [stdout] 69 | core::mem::size_of::() as u32 + 230 [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `LookupPrivilegeValueA` in this scope [INFO] [stdout] --> src/main.rs:52:24 [INFO] [stdout] | [INFO] [stdout] 52 | let _ = unsafe{LookupPrivilegeValueA(PSTR(null_mut() as _),cap,&mut tp.Privileges[0].Luid,)}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `AdjustTokenPrivileges` in this scope [INFO] [stdout] --> src/main.rs:53:24 [INFO] [stdout] | [INFO] [stdout] 53 | let _ = unsafe{AdjustTokenPrivileges(token_handle,false,&mut tp,size_of::() as _,null_mut(),null_mut())}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `SID` [INFO] [stdout] --> src/main.rs:56:29 [INFO] [stdout] | [INFO] [stdout] 56 | let mut sid_integrity = SID::default(); [INFO] [stdout] | ^^^ use of undeclared type `SID` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `TOKEN_MANDATORY_LABEL` [INFO] [stdout] --> src/main.rs:62:31 [INFO] [stdout] | [INFO] [stdout] 62 | let mut token_mandatory = TOKEN_MANDATORY_LABEL::default(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ use of undeclared type `TOKEN_MANDATORY_LABEL` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `SetTokenInformation` in this scope [INFO] [stdout] --> src/main.rs:66:25 [INFO] [stdout] | [INFO] [stdout] 66 | let _token = unsafe{SetTokenInformation(token_handle, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0412, E0422, E0425, E0432, E0433. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [INFO] [stdout] [INFO] [stderr] error: could not compile `sandbox_process` (bin "sandbox_process") due to 20 previous errors [INFO] running `Command { std: "docker" "inspect" "a47ef2de08936da889e88189405d0f4402283fcb67ced892ad41f0fe3a2618c2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a47ef2de08936da889e88189405d0f4402283fcb67ced892ad41f0fe3a2618c2", kill_on_drop: false }` [INFO] [stdout] a47ef2de08936da889e88189405d0f4402283fcb67ced892ad41f0fe3a2618c2