[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] building 4kmartin/simple_malware against master#ad211ced81509462cdfe4c29ed10f97279a0acae for pr-135216
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2F4kmartin%2Fsimple_malware" "/workspace/builds/worker-2-tc1/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc1/source'...
[INFO] [stderr] done.
[INFO] validating manifest of git repo https://github.com/4kmartin/simple_malware on toolchain ad211ced81509462cdfe4c29ed10f97279a0acae
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ad211ced81509462cdfe4c29ed10f97279a0acae" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[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-2-tc1/source/Cargo.toml
[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" "+ad211ced81509462cdfe4c29ed10f97279a0acae" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] [stderr]  Downloading crates ...
[INFO] [stderr]   Downloaded windows-core v0.57.0
[INFO] [stderr]   Downloaded windows-implement v0.57.0
[INFO] [stderr]   Downloaded windows-interface v0.57.0
[INFO] [stderr]   Downloaded windows-result v0.1.2
[INFO] [stderr]   Downloaded windows v0.57.0
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+ad211ced81509462cdfe4c29ed10f97279a0acae" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] 24a827ea086833db736aaeb4be07c70ee0a451a458710563097c6af1fb0aeed8
[INFO] running `Command { std: "docker" "start" "-a" "24a827ea086833db736aaeb4be07c70ee0a451a458710563097c6af1fb0aeed8", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "24a827ea086833db736aaeb4be07c70ee0a451a458710563097c6af1fb0aeed8", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "24a827ea086833db736aaeb4be07c70ee0a451a458710563097c6af1fb0aeed8", kill_on_drop: false }`
[INFO] [stdout] 24a827ea086833db736aaeb4be07c70ee0a451a458710563097c6af1fb0aeed8
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+ad211ced81509462cdfe4c29ed10f97279a0acae" "build" "--frozen" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] d2aaf6d864ad94fa8836a9048266886da38ab134b0e3a621360d0204afd9f3eb
[INFO] running `Command { std: "docker" "start" "-a" "d2aaf6d864ad94fa8836a9048266886da38ab134b0e3a621360d0204afd9f3eb", 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: LC_ALL="C" PATH="/opt/rustwide/rustup-home/toolchains/ad211ced81509462cdfe4c29ed10f97279a0acae/lib/rustlib/x86_64-unknown-linux-gnu/bin:/opt/rustwide/rustup-home/toolchains/ad211ced81509462cdfe4c29ed10f97279a0acae/lib/rustlib/x86_64-unknown-linux-gnu/bin/self-contained:/opt/rustwide/cargo-home/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin" VSLANG="1033" "cc" "-m64" "/tmp/rustcf8XEuh/symbols.o" "<2 object files omitted>" "-Wl,--as-needed" "-Wl,-Bstatic" "/opt/rustwide/target/debug/deps/{libwindows-27166d0e2af55c84.rlib,libwindows_core-9804d9dd0c5655af.rlib,libwindows_result-8390634a9cbb4af5.rlib,libwindows_targets-19caa2a45f88e0f3.rlib}" "/opt/rustwide/rustup-home/toolchains/ad211ced81509462cdfe4c29ed10f97279a0acae/lib/rustlib/x86_64-unknown-linux-gnu/lib/{libstd-d6f1d924b2f4233e.rlib,libpanic_unwind-00eb06e39850f679.rlib,libobject-d0382f11baa011b6.rlib,libmemchr-b7e2e2c1a7e4643d.rlib,libaddr2line-30ced7f1999cfa29.rlib,libgimli-3ee7e14c58e31ebd.rlib,librustc_demangle-a4f649bba77ffcc5.rlib,libstd_detect-c89a3ce7ad7c3dbd.rlib,libhashbrown-e1ce1d3d110c6707.rlib,librustc_std_workspace_alloc-e0604fecbf0f39dc.rlib,libminiz_oxide-0a9c6172f04822cc.rlib,libadler2-14a33f7117abcee7.rlib,libunwind-24c16adbe5e57356.rlib,libcfg_if-d2688d4a5c8e415b.rlib,liblibc-8ff7ba6d97853f27.rlib,liballoc-5c001d095eb077ec.rlib,librustc_std_workspace_core-395a38b8e0851c9b.rlib,libcore-d453bab70303062c.rlib,libcompiler_builtins-dd545221bb4f4734.rlib}" "-Wl,-Bdynamic" "-lgcc_s" "-lutil" "-lrt" "-lpthread" "-lm" "-ldl" "-lc" "-B/opt/rustwide/rustup-home/toolchains/ad211ced81509462cdfe4c29ed10f97279a0acae/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" "/opt/rustwide/rustup-home/toolchains/ad211ced81509462cdfe4c29ed10f97279a0acae/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-o" "/opt/rustwide/target/debug/deps/simple_malware-e21f1e5ffa776fcf" "-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-27166d0e2af55c84.windows.f4cda056f9a2d535-cgu.3.rcgu.o:(windows::Win32::Foundation::CloseHandle::hc55ab42606ce5229) in archive /opt/rustwide/target/debug/deps/libwindows-27166d0e2af55c84.rlib
[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-e21f1e5ffa776fcf.simple_malware.ca48041b6da36646-cgu.0.rcgu.o:(windows::Win32::System::Memory::VirtualFree::h596561de718f5093)
[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-e21f1e5ffa776fcf.simple_malware.ca48041b6da36646-cgu.0.rcgu.o:(windows::Win32::System::Memory::VirtualAlloc::h7d41b8fd9d7ce3dc)
[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-e21f1e5ffa776fcf.simple_malware.ca48041b6da36646-cgu.0.rcgu.o:(windows::Win32::System::Threading::CreateThread::hde44c1dd5933b082)
[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-e21f1e5ffa776fcf.simple_malware.ca48041b6da36646-cgu.0.rcgu.o:(windows::Win32::System::Threading::WaitForSingleObject::he6425597bff771a5)
[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-e21f1e5ffa776fcf.simple_malware.ca48041b6da36646-cgu.0.rcgu.o:(simple_malware::mv_shellcode_to_allocated_memory::h72e2597d4d2bba39)
[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-8390634a9cbb4af5.windows_result.3f6177b8211311f-cgu.0.rcgu.o:(_$LT$windows_result..strings..HeapString$u20$as$u20$core..ops..drop..Drop$GT$::drop::hb69e1a9d24817b57) in archive /opt/rustwide/target/debug/deps/libwindows_result-8390634a9cbb4af5.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-8390634a9cbb4af5.windows_result.3f6177b8211311f-cgu.0.rcgu.o:(_$LT$windows_result..strings..HeapString$u20$as$u20$core..ops..drop..Drop$GT$::drop::hb69e1a9d24817b57) in archive /opt/rustwide/target/debug/deps/libwindows_result-8390634a9cbb4af5.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-8390634a9cbb4af5.windows_result.3f6177b8211311f-cgu.0.rcgu.o:(windows_result::strings::BasicString::len::h2fe42719ee5a2464) in archive /opt/rustwide/target/debug/deps/libwindows_result-8390634a9cbb4af5.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-8390634a9cbb4af5.windows_result.3f6177b8211311f-cgu.0.rcgu.o:(_$LT$windows_result..strings..BasicString$u20$as$u20$core..ops..drop..Drop$GT$::drop::hcc53b3bd9097b6d9) in archive /opt/rustwide/target/debug/deps/libwindows_result-8390634a9cbb4af5.rlib
[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-8390634a9cbb4af5.windows_result.3f6177b8211311f-cgu.0.rcgu.o:(windows_result::error::Error::from_win32::hb271060740131233) in archive /opt/rustwide/target/debug/deps/libwindows_result-8390634a9cbb4af5.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-8390634a9cbb4af5.windows_result.3f6177b8211311f-cgu.0.rcgu.o:(windows_result::hresult::HRESULT::message::h05af50b373ecdf4d) in archive /opt/rustwide/target/debug/deps/libwindows_result-8390634a9cbb4af5.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-8390634a9cbb4af5.windows_result.3f6177b8211311f-cgu.0.rcgu.o:(windows_result::hresult::HRESULT::message::h05af50b373ecdf4d) in archive /opt/rustwide/target/debug/deps/libwindows_result-8390634a9cbb4af5.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" "d2aaf6d864ad94fa8836a9048266886da38ab134b0e3a621360d0204afd9f3eb", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "d2aaf6d864ad94fa8836a9048266886da38ab134b0e3a621360d0204afd9f3eb", kill_on_drop: false }`
[INFO] [stdout] d2aaf6d864ad94fa8836a9048266886da38ab134b0e3a621360d0204afd9f3eb
