[INFO] cloning repository https://github.com/4kmartin/simple_malware
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/4kmartin/simple_malware" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2F4kmartin%2Fsimple_malware", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2F4kmartin%2Fsimple_malware'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] 10f3a277d86f9a19c0dc0e50f32968b25b451014
[INFO] testing 4kmartin/simple_malware against master#1ef7943ee607160a564655b6596f83670ef95df5 for pr-146098-6
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2F4kmartin%2Fsimple_malware" "/workspace/builds/worker-6-tc1/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc1/source'...
[INFO] [stderr] done.
[INFO] started tweaking git repo https://github.com/4kmartin/simple_malware
[INFO] finished tweaking git repo https://github.com/4kmartin/simple_malware
[INFO] tweaked toml for git repo https://github.com/4kmartin/simple_malware written to /workspace/builds/worker-6-tc1/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/4kmartin/simple_malware on toolchain 1ef7943ee607160a564655b6596f83670ef95df5
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1ef7943ee607160a564655b6596f83670ef95df5" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] crate git repo https://github.com/4kmartin/simple_malware 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" "+1ef7943ee607160a564655b6596f83670ef95df5" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] [stderr]  Downloading crates ...
[INFO] [stderr]   Downloaded proc-macro2 v1.0.85
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+1ef7943ee607160a564655b6596f83670ef95df5" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] 55b222afe9a1b6529e16eb643742482b4e8a32e9320a98164d3f0f64cbe2dd81
[INFO] running `Command { std: "docker" "start" "-a" "55b222afe9a1b6529e16eb643742482b4e8a32e9320a98164d3f0f64cbe2dd81", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "55b222afe9a1b6529e16eb643742482b4e8a32e9320a98164d3f0f64cbe2dd81", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "55b222afe9a1b6529e16eb643742482b4e8a32e9320a98164d3f0f64cbe2dd81", kill_on_drop: false }`
[INFO] [stdout] 55b222afe9a1b6529e16eb643742482b4e8a32e9320a98164d3f0f64cbe2dd81
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+1ef7943ee607160a564655b6596f83670ef95df5" "build" "--frozen" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] 2b5b6eaf28b78101d3f25094522249c8985b0444ac943bf4aa3cd26deaa7f379
[INFO] running `Command { std: "docker" "start" "-a" "2b5b6eaf28b78101d3f25094522249c8985b0444ac943bf4aa3cd26deaa7f379", kill_on_drop: false }`
[INFO] [stderr]    Compiling proc-macro2 v1.0.85
[INFO] [stderr]    Compiling windows_x86_64_gnu v0.52.5
[INFO] [stderr]    Compiling windows-targets v0.52.5
[INFO] [stderr]    Compiling windows-result v0.1.2
[INFO] [stderr]    Compiling quote v1.0.36
[INFO] [stderr]    Compiling syn v2.0.66
[INFO] [stderr]    Compiling windows-interface v0.57.0
[INFO] [stderr]    Compiling windows-implement v0.57.0
[INFO] [stderr]    Compiling windows-core v0.57.0
[INFO] [stderr]    Compiling windows v0.57.0
[INFO] [stderr]    Compiling simple_malware v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] error: linking with `cc` failed: exit status: 1
[INFO] [stdout]   |
[INFO] [stdout]   = note:  "cc" "-m64" "/tmp/rustci5H1rP/symbols.o" "<2 object files omitted>" "-Wl,--as-needed" "-Wl,-Bstatic" "/opt/rustwide/target/debug/deps/{libwindows-f33f7a4c01cc98d5,libwindows_core-da6005e9025897f2,libwindows_result-46b749a3959baa93,libwindows_targets-ee011e7ae1c0ba6e}.rlib" "<sysroot>/lib/rustlib/x86_64-unknown-linux-gnu/lib/{libstd-*,libpanic_unwind-*,libobject-*,libmemchr-*,libaddr2line-*,libgimli-*,libcfg_if-*,librustc_demangle-*,libstd_detect-*,libhashbrown-*,librustc_std_workspace_alloc-*,libminiz_oxide-*,libadler2-*,libunwind-*,liblibc-*,librustc_std_workspace_core-*,liballoc-*,libcore-*,libcompiler_builtins-*}.rlib" "-Wl,-Bdynamic" "-lgcc_s" "-lutil" "-lrt" "-lpthread" "-lm" "-ldl" "-lc" "-L" "/tmp/rustci5H1rP/raw-dylibs" "-B<sysroot>/lib/rustlib/x86_64-unknown-linux-gnu/bin/gcc-ld" "-fuse-ld=lld" "-Wl,--eh-frame-hdr" "-Wl,-z,noexecstack" "-L" "/opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/windows_x86_64_gnu-0.52.5/lib" "-L" "<sysroot>/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-o" "/opt/rustwide/target/debug/deps/simple_malware-8a006eefaed25d81" "-Wl,--gc-sections" "-pie" "-Wl,-z,relro,-z,now" "-nodefaultlibs"
[INFO] [stdout]   = note: some arguments are omitted. use `--verbose` to show all linker arguments
[INFO] [stdout]   = note: rust-lld: error: undefined symbol: CloseHandle
[INFO] [stdout]           >>> referenced by mod.rs:7 (src/Windows/Win32/Foundation/mod.rs:7)
[INFO] [stdout]           >>>               windows-f33f7a4c01cc98d5.windows.6f538a629f982182-cgu.3.rcgu.o:(windows::Win32::Foundation::CloseHandle::hd85a6eae473549a3) in archive /opt/rustwide/target/debug/deps/libwindows-f33f7a4c01cc98d5.rlib
[INFO] [stdout]           
[INFO] [stdout]           rust-lld: error: undefined symbol: RtlCopyMemory
[INFO] [stdout]           >>> referenced by main.rs:80 (src/main.rs:80)
[INFO] [stdout]           >>>               /opt/rustwide/target/debug/deps/simple_malware-8a006eefaed25d81.simple_malware.83b779b138e95f02-cgu.0.rcgu.o:(simple_malware::mv_shellcode_to_allocated_memory::hb34a81c8f59e97a5)
[INFO] [stdout]           
[INFO] [stdout]           rust-lld: error: undefined symbol: VirtualFree
[INFO] [stdout]           >>> referenced by mod.rs:691 (/opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/windows-0.57.0/src/Windows/Win32/System/Memory/mod.rs:691)
[INFO] [stdout]           >>>               /opt/rustwide/target/debug/deps/simple_malware-8a006eefaed25d81.simple_malware.83b779b138e95f02-cgu.0.rcgu.o:(windows::Win32::System::Memory::VirtualFree::h2c09d3e7491e65f0)
[INFO] [stdout]           
[INFO] [stdout]           rust-lld: error: undefined symbol: VirtualAlloc
[INFO] [stdout]           >>> referenced by mod.rs:649 (/opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/windows-0.57.0/src/Windows/Win32/System/Memory/mod.rs:649)
[INFO] [stdout]           >>>               /opt/rustwide/target/debug/deps/simple_malware-8a006eefaed25d81.simple_malware.83b779b138e95f02-cgu.0.rcgu.o:(windows::Win32::System::Memory::VirtualAlloc::h117b00a0a302ddb2)
[INFO] [stdout]           
[INFO] [stdout]           rust-lld: error: undefined symbol: CreateThread
[INFO] [stdout]           >>> referenced by mod.rs:537 (/opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/windows-0.57.0/src/Windows/Win32/System/Threading/mod.rs:537)
[INFO] [stdout]           >>>               /opt/rustwide/target/debug/deps/simple_malware-8a006eefaed25d81.simple_malware.83b779b138e95f02-cgu.0.rcgu.o:(windows::Win32::System::Threading::CreateThread::h934b02e1cb82cf48)
[INFO] [stdout]           
[INFO] [stdout]           rust-lld: error: undefined symbol: WaitForSingleObject
[INFO] [stdout]           >>> referenced by mod.rs:2349 (/opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/windows-0.57.0/src/Windows/Win32/System/Threading/mod.rs:2349)
[INFO] [stdout]           >>>               /opt/rustwide/target/debug/deps/simple_malware-8a006eefaed25d81.simple_malware.83b779b138e95f02-cgu.0.rcgu.o:(windows::Win32::System::Threading::WaitForSingleObject::h5ea9c5f61f64b51a)
[INFO] [stdout]           
[INFO] [stdout]           rust-lld: error: undefined symbol: GetLastError
[INFO] [stdout]           >>> referenced by error.rs:43 (src/error.rs:43)
[INFO] [stdout]           >>>               windows_result-46b749a3959baa93.windows_result.7c875bcd42533e2a-cgu.0.rcgu.o:(windows_result::error::Error::from_win32::h207c06502081be6e) in archive /opt/rustwide/target/debug/deps/libwindows_result-46b749a3959baa93.rlib
[INFO] [stdout]           
[INFO] [stdout]           rust-lld: error: undefined symbol: LoadLibraryExA
[INFO] [stdout]           >>> referenced by hresult.rs:81 (src/hresult.rs:81)
[INFO] [stdout]           >>>               windows_result-46b749a3959baa93.windows_result.7c875bcd42533e2a-cgu.0.rcgu.o:(windows_result::hresult::HRESULT::message::hf5b50540ebbab4f2) in archive /opt/rustwide/target/debug/deps/libwindows_result-46b749a3959baa93.rlib
[INFO] [stdout]           
[INFO] [stdout]           rust-lld: error: undefined symbol: FormatMessageW
[INFO] [stdout]           >>> referenced by hresult.rs:84 (src/hresult.rs:84)
[INFO] [stdout]           >>>               windows_result-46b749a3959baa93.windows_result.7c875bcd42533e2a-cgu.0.rcgu.o:(windows_result::hresult::HRESULT::message::hf5b50540ebbab4f2) in archive /opt/rustwide/target/debug/deps/libwindows_result-46b749a3959baa93.rlib
[INFO] [stdout]           
[INFO] [stdout]           rust-lld: error: undefined symbol: SysStringLen
[INFO] [stdout]           >>> referenced by strings.rs:33 (src/strings.rs:33)
[INFO] [stdout]           >>>               windows_result-46b749a3959baa93.windows_result.7c875bcd42533e2a-cgu.0.rcgu.o:(windows_result::strings::BasicString::len::h4efdbb84e766bf0b) in archive /opt/rustwide/target/debug/deps/libwindows_result-46b749a3959baa93.rlib
[INFO] [stdout]           
[INFO] [stdout]           rust-lld: error: undefined symbol: GetProcessHeap
[INFO] [stdout]           >>> referenced by strings.rs:15 (src/strings.rs:15)
[INFO] [stdout]           >>>               windows_result-46b749a3959baa93.windows_result.7c875bcd42533e2a-cgu.0.rcgu.o:(_$LT$windows_result..strings..HeapString$u20$as$u20$core..ops..drop..Drop$GT$::drop::h9ab2e2ec46a47c74) in archive /opt/rustwide/target/debug/deps/libwindows_result-46b749a3959baa93.rlib
[INFO] [stdout]           
[INFO] [stdout]           rust-lld: error: undefined symbol: HeapFree
[INFO] [stdout]           >>> referenced by strings.rs:15 (src/strings.rs:15)
[INFO] [stdout]           >>>               windows_result-46b749a3959baa93.windows_result.7c875bcd42533e2a-cgu.0.rcgu.o:(_$LT$windows_result..strings..HeapString$u20$as$u20$core..ops..drop..Drop$GT$::drop::h9ab2e2ec46a47c74) in archive /opt/rustwide/target/debug/deps/libwindows_result-46b749a3959baa93.rlib
[INFO] [stdout]           
[INFO] [stdout]           rust-lld: error: undefined symbol: SysFreeString
[INFO] [stdout]           >>> referenced by strings.rs:65 (src/strings.rs:65)
[INFO] [stdout]           >>>               windows_result-46b749a3959baa93.windows_result.7c875bcd42533e2a-cgu.0.rcgu.o:(_$LT$windows_result..strings..BasicString$u20$as$u20$core..ops..drop..Drop$GT$::drop::h98d1e609cc42a71a) in archive /opt/rustwide/target/debug/deps/libwindows_result-46b749a3959baa93.rlib
[INFO] [stdout]           collect2: error: ld returned 1 exit status
[INFO] [stdout]           
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `simple_malware` (bin "simple_malware") due to 1 previous error
[INFO] running `Command { std: "docker" "inspect" "2b5b6eaf28b78101d3f25094522249c8985b0444ac943bf4aa3cd26deaa7f379", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "2b5b6eaf28b78101d3f25094522249c8985b0444ac943bf4aa3cd26deaa7f379", kill_on_drop: false }`
[INFO] [stdout] 2b5b6eaf28b78101d3f25094522249c8985b0444ac943bf4aa3cd26deaa7f379
