[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#733b47ea4b1b86216f14ef56e49440c33933f230+rustflags=-Copt-level=3 for pr-138759
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2F4kmartin%2Fsimple_malware" "/workspace/builds/worker-7-tc2/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc2/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-7-tc2/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/4kmartin/simple_malware on toolchain 733b47ea4b1b86216f14ef56e49440c33933f230
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+733b47ea4b1b86216f14ef56e49440c33933f230" "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" "+733b47ea4b1b86216f14ef56e49440c33933f230" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+733b47ea4b1b86216f14ef56e49440c33933f230" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] 0958dcbc254caf8b09d0e448c1c279c461eac01c47ccc95a7253ca2a4dad781f
[INFO] running `Command { std: "docker" "start" "-a" "0958dcbc254caf8b09d0e448c1c279c461eac01c47ccc95a7253ca2a4dad781f", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "0958dcbc254caf8b09d0e448c1c279c461eac01c47ccc95a7253ca2a4dad781f", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "0958dcbc254caf8b09d0e448c1c279c461eac01c47ccc95a7253ca2a4dad781f", kill_on_drop: false }`
[INFO] [stdout] 0958dcbc254caf8b09d0e448c1c279c461eac01c47ccc95a7253ca2a4dad781f
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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 -Copt-level=3" "-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+733b47ea4b1b86216f14ef56e49440c33933f230" "build" "--frozen" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] b1ddb36a1dd494f595d63ade7d649abdefc2e133206d57f1184621e87ebfbe57
[INFO] running `Command { std: "docker" "start" "-a" "b1ddb36a1dd494f595d63ade7d649abdefc2e133206d57f1184621e87ebfbe57", kill_on_drop: false }`
[INFO] [stderr]    Compiling proc-macro2 v1.0.85
[INFO] [stderr]    Compiling unicode-ident v1.0.12
[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-implement v0.57.0
[INFO] [stderr]    Compiling windows-interface 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/rustcKoQcrL/symbols.o" "<2 object files omitted>" "-Wl,--as-needed" "-Wl,-Bstatic" "/opt/rustwide/target/debug/deps/{libwindows-47481eff86994d4c.rlib,libwindows_core-909bc480a5ccaad8.rlib,libwindows_result-f5723bc8e5c8fb91.rlib,libwindows_targets-ef6d1f8f18670372.rlib}.rlib" "<sysroot>/lib/rustlib/x86_64-unknown-linux-gnu/lib/{libstd-*,libpanic_unwind-*,libobject-*,libmemchr-*,libaddr2line-*,libgimli-*,librustc_demangle-*,libstd_detect-*,libhashbrown-*,librustc_std_workspace_alloc-*,libminiz_oxide-*,libadler2-*,libunwind-*,libcfg_if-*,liblibc-*,librustc_std_workspace_core-*,liballoc-*,libcore-*,libcompiler_builtins-*}.rlib" "-Wl,-Bdynamic" "-lgcc_s" "-lutil" "-lrt" "-lpthread" "-lm" "-ldl" "-lc" "-L" "/tmp/rustcKoQcrL/raw-dylibs" "-B<sysroot>/lib/rustlib/x86_64-unknown-linux-gnu/bin/gcc-ld" "-fuse-ld=lld" "-Wl,-znostart-stop-gc" "-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-b4c10d151837f699" "-Wl,--gc-sections" "-pie" "-Wl,-z,relro,-z,now" "-Wl,-O1" "-nodefaultlibs"
[INFO] [stdout]   = note: some arguments are omitted. use `--verbose` to show all linker arguments
[INFO] [stdout]   = note: 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-b4c10d151837f699.simple_malware.9d56197d3a5f4ada-cgu.0.rcgu.o:(simple_malware::main::h09c058d68f66fa73)
[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-b4c10d151837f699.simple_malware.9d56197d3a5f4ada-cgu.0.rcgu.o:(simple_malware::main::h09c058d68f66fa73)
[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-b4c10d151837f699.simple_malware.9d56197d3a5f4ada-cgu.0.rcgu.o:(simple_malware::main::h09c058d68f66fa73)
[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-b4c10d151837f699.simple_malware.9d56197d3a5f4ada-cgu.0.rcgu.o:(simple_malware::main::h09c058d68f66fa73)
[INFO] [stdout]           
[INFO] [stdout]           rust-lld: error: undefined symbol: CloseHandle
[INFO] [stdout]           >>> referenced by mod.rs:7 (/opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/windows-0.57.0/src/Windows/Win32/Foundation/mod.rs:7)
[INFO] [stdout]           >>>               /opt/rustwide/target/debug/deps/simple_malware-b4c10d151837f699.simple_malware.9d56197d3a5f4ada-cgu.0.rcgu.o:(simple_malware::main::h09c058d68f66fa73)
[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-b4c10d151837f699.simple_malware.9d56197d3a5f4ada-cgu.0.rcgu.o:(simple_malware::main::h09c058d68f66fa73)
[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-f5723bc8e5c8fb91.windows_result.7b81151bacda9cb1-cgu.0.rcgu.o:(core::ptr::drop_in_place$LT$windows_result..strings..HeapString$GT$::hafada6f3f789ee20) in archive /opt/rustwide/target/debug/deps/libwindows_result-f5723bc8e5c8fb91.rlib
[INFO] [stdout]           >>> referenced by strings.rs:15 (src/strings.rs:15)
[INFO] [stdout]           >>>               windows_result-f5723bc8e5c8fb91.windows_result.7b81151bacda9cb1-cgu.0.rcgu.o:(windows_result::hresult::HRESULT::message::h189d867d1b811d1d) in archive /opt/rustwide/target/debug/deps/libwindows_result-f5723bc8e5c8fb91.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-f5723bc8e5c8fb91.windows_result.7b81151bacda9cb1-cgu.0.rcgu.o:(core::ptr::drop_in_place$LT$windows_result..strings..HeapString$GT$::hafada6f3f789ee20) in archive /opt/rustwide/target/debug/deps/libwindows_result-f5723bc8e5c8fb91.rlib
[INFO] [stdout]           >>> referenced by strings.rs:15 (src/strings.rs:15)
[INFO] [stdout]           >>>               windows_result-f5723bc8e5c8fb91.windows_result.7b81151bacda9cb1-cgu.0.rcgu.o:(windows_result::hresult::HRESULT::message::h189d867d1b811d1d) in archive /opt/rustwide/target/debug/deps/libwindows_result-f5723bc8e5c8fb91.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-f5723bc8e5c8fb91.windows_result.7b81151bacda9cb1-cgu.0.rcgu.o:(windows_result::error::Error::from_win32::ha6fa24aaaca6e2e0) in archive /opt/rustwide/target/debug/deps/libwindows_result-f5723bc8e5c8fb91.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-f5723bc8e5c8fb91.windows_result.7b81151bacda9cb1-cgu.0.rcgu.o:(windows_result::error::Error::message::h30fe76445fc53562) in archive /opt/rustwide/target/debug/deps/libwindows_result-f5723bc8e5c8fb91.rlib
[INFO] [stdout]           >>> referenced by strings.rs:65 (src/strings.rs:65)
[INFO] [stdout]           >>>               windows_result-f5723bc8e5c8fb91.windows_result.7b81151bacda9cb1-cgu.0.rcgu.o:(windows_result::error::Error::message::h30fe76445fc53562) in archive /opt/rustwide/target/debug/deps/libwindows_result-f5723bc8e5c8fb91.rlib
[INFO] [stdout]           >>> referenced by strings.rs:65 (src/strings.rs:65)
[INFO] [stdout]           >>>               windows_result-f5723bc8e5c8fb91.windows_result.7b81151bacda9cb1-cgu.0.rcgu.o:(windows_result::error::Error::message::h30fe76445fc53562) in archive /opt/rustwide/target/debug/deps/libwindows_result-f5723bc8e5c8fb91.rlib
[INFO] [stdout]           >>> referenced 2 more times
[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-f5723bc8e5c8fb91.windows_result.7b81151bacda9cb1-cgu.0.rcgu.o:(windows_result::error::Error::message::h30fe76445fc53562) in archive /opt/rustwide/target/debug/deps/libwindows_result-f5723bc8e5c8fb91.rlib
[INFO] [stdout]           >>> referenced by strings.rs:33 (src/strings.rs:33)
[INFO] [stdout]           >>>               windows_result-f5723bc8e5c8fb91.windows_result.7b81151bacda9cb1-cgu.0.rcgu.o:(windows_result::error::Error::message::h30fe76445fc53562) in archive /opt/rustwide/target/debug/deps/libwindows_result-f5723bc8e5c8fb91.rlib
[INFO] [stdout]           >>> referenced by strings.rs:33 (src/strings.rs:33)
[INFO] [stdout]           >>>               windows_result-f5723bc8e5c8fb91.windows_result.7b81151bacda9cb1-cgu.0.rcgu.o:(windows_result::error::Error::message::h30fe76445fc53562) in archive /opt/rustwide/target/debug/deps/libwindows_result-f5723bc8e5c8fb91.rlib
[INFO] [stdout]           >>> referenced 1 more times
[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-f5723bc8e5c8fb91.windows_result.7b81151bacda9cb1-cgu.0.rcgu.o:(windows_result::hresult::HRESULT::message::h189d867d1b811d1d) in archive /opt/rustwide/target/debug/deps/libwindows_result-f5723bc8e5c8fb91.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-f5723bc8e5c8fb91.windows_result.7b81151bacda9cb1-cgu.0.rcgu.o:(windows_result::hresult::HRESULT::message::h189d867d1b811d1d) in archive /opt/rustwide/target/debug/deps/libwindows_result-f5723bc8e5c8fb91.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" "b1ddb36a1dd494f595d63ade7d649abdefc2e133206d57f1184621e87ebfbe57", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "b1ddb36a1dd494f595d63ade7d649abdefc2e133206d57f1184621e87ebfbe57", kill_on_drop: false }`
[INFO] [stdout] b1ddb36a1dd494f595d63ade7d649abdefc2e133206d57f1184621e87ebfbe57
