[INFO] cloning repository https://github.com/b1-team/phantom [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/b1-team/phantom" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fb1-team%2Fphantom", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fb1-team%2Fphantom'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 5f4a6ddf3d2c576a44f364af6a6ff66ff21b303f [INFO] testing b1-team/phantom against master#562dee4820c458d823175268e41601d4c060588a for pr-154210-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fb1-team%2Fphantom" "/workspace/builds/worker-1-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/b1-team/phantom [INFO] finished tweaking git repo https://github.com/b1-team/phantom [INFO] tweaked toml for git repo https://github.com/b1-team/phantom written to /workspace/builds/worker-1-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/b1-team/phantom on toolchain 562dee4820c458d823175268e41601d4c060588a [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+562dee4820c458d823175268e41601d4c060588a" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/b1-team/phantom 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" "+562dee4820c458d823175268e41601d4c060588a" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+562dee4820c458d823175268e41601d4c060588a" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] f03642793f0f3d1636331b3c0b90839736feba11f069676e7ceb0a0c8f7cb0e4 [INFO] running `Command { std: "docker" "start" "-a" "f03642793f0f3d1636331b3c0b90839736feba11f069676e7ceb0a0c8f7cb0e4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "f03642793f0f3d1636331b3c0b90839736feba11f069676e7ceb0a0c8f7cb0e4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f03642793f0f3d1636331b3c0b90839736feba11f069676e7ceb0a0c8f7cb0e4", kill_on_drop: false }` [INFO] [stdout] f03642793f0f3d1636331b3c0b90839736feba11f069676e7ceb0a0c8f7cb0e4 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+562dee4820c458d823175268e41601d4c060588a" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] f550bcabd58924115d3bc1422fb4e3306892c6361f2ff3c323f63afaa7f7a889 [INFO] running `Command { std: "docker" "start" "-a" "f550bcabd58924115d3bc1422fb4e3306892c6361f2ff3c323f63afaa7f7a889", kill_on_drop: false }` [INFO] [stderr] Compiling windows_x86_64_gnu v0.48.0 [INFO] [stderr] Compiling windows-targets v0.48.1 [INFO] [stderr] Compiling windows-sys v0.48.0 [INFO] [stderr] Compiling phantom v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/utils.rs:38:20 [INFO] [stdout] | [INFO] [stdout] 34 | fn check_allocation_protection(allocation: *mut c_void, allocation_size: usize) -> c_ulong { [INFO] [stdout] | ------- expected `u64` because of return type [INFO] [stdout] ... [INFO] [stdout] 38 | return p_mem_info.Protect; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ expected `u64`, found `u32` [INFO] [stdout] | [INFO] [stdout] help: you can convert a `u32` to a `u64` [INFO] [stdout] | [INFO] [stdout] 38 | return p_mem_info.Protect.into(); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/utils.rs:189:18 [INFO] [stdout] | [INFO] [stdout] 186 | if check_allocation_protection( [INFO] [stdout] | ________________- [INFO] [stdout] 187 | | ((*(*exception_data).ContextRecord).Rip) as *mut c_void, [INFO] [stdout] 188 | | INFO.sh.len(), [INFO] [stdout] 189 | | ) == PAGE_EXECUTE_READ [INFO] [stdout] | | - ^^^^^^^^^^^^^^^^^ expected `u64`, found `u32` [INFO] [stdout] | |_____________| [INFO] [stdout] | expected because this is `u64` [INFO] [stdout] | [INFO] [stdout] help: you can convert a `u32` to a `u64` [INFO] [stdout] | [INFO] [stdout] 189 | ) == PAGE_EXECUTE_READ.into() [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/utils.rs:221:28 [INFO] [stdout] | [INFO] [stdout] 174 | ) -> c_long { [INFO] [stdout] | ------ expected `i64` because of return type [INFO] [stdout] ... [INFO] [stdout] 221 | return EXCEPTION_CONTINUE_EXECUTION; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `i64`, found `i32` [INFO] [stdout] | [INFO] [stdout] help: you can convert an `i32` to an `i64` [INFO] [stdout] | [INFO] [stdout] 221 | return EXCEPTION_CONTINUE_EXECUTION.into(); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/utils.rs:231:13 [INFO] [stdout] | [INFO] [stdout] 174 | ) -> c_long { [INFO] [stdout] | ------ expected `i64` because of return type [INFO] [stdout] ... [INFO] [stdout] 231 | EXCEPTION_CONTINUE_EXECUTION [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `i64`, found `i32` [INFO] [stdout] | [INFO] [stdout] help: you can convert an `i32` to an `i64` [INFO] [stdout] | [INFO] [stdout] 231 | EXCEPTION_CONTINUE_EXECUTION.into() [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:67:53 [INFO] [stdout] | [INFO] [stdout] 67 | AddVectoredExceptionHandler(1, Some(intercept_shellcode_exception)); [INFO] [stdout] | ---- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected fn pointer, found fn item [INFO] [stdout] | | [INFO] [stdout] | arguments to this enum variant are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected fn pointer `unsafe extern "system" fn(_) -> i32` [INFO] [stdout] found fn item `unsafe extern "system" fn(_) -> i64 {intercept_shellcode_exception}` [INFO] [stdout] help: the type constructed contains `unsafe extern "system" fn(*mut EXCEPTION_POINTERS) -> i64 {intercept_shellcode_exception}` due to the type of the argument passed [INFO] [stdout] --> src/main.rs:67:48 [INFO] [stdout] | [INFO] [stdout] 67 | AddVectoredExceptionHandler(1, Some(intercept_shellcode_exception)); [INFO] [stdout] | ^^^^^-----------------------------^ [INFO] [stdout] | | [INFO] [stdout] | this argument influences the type of `Some` [INFO] [stdout] note: tuple variant defined here [INFO] [stdout] --> /rustc/562dee4820c458d823175268e41601d4c060588a/library/core/src/option.rs:608:4 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0308`. [INFO] [stdout] [INFO] [stderr] error: could not compile `phantom` (bin "phantom") due to 5 previous errors [INFO] running `Command { std: "docker" "inspect" "f550bcabd58924115d3bc1422fb4e3306892c6361f2ff3c323f63afaa7f7a889", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f550bcabd58924115d3bc1422fb4e3306892c6361f2ff3c323f63afaa7f7a889", kill_on_drop: false }` [INFO] [stdout] f550bcabd58924115d3bc1422fb4e3306892c6361f2ff3c323f63afaa7f7a889