[INFO] cloning repository https://github.com/psomas/mosalloc-rs [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/psomas/mosalloc-rs" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fpsomas%2Fmosalloc-rs", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fpsomas%2Fmosalloc-rs'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 5633d3ef4b9427dd97e10080070eed9db797a694 [INFO] checking psomas/mosalloc-rs against master#af4a5a13a15fa0c60e06321077ef452f769b42fd for pr-122960-4 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fpsomas%2Fmosalloc-rs" "/workspace/builds/worker-7-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/psomas/mosalloc-rs on toolchain af4a5a13a15fa0c60e06321077ef452f769b42fd [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+af4a5a13a15fa0c60e06321077ef452f769b42fd" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/psomas/mosalloc-rs [INFO] finished tweaking git repo https://github.com/psomas/mosalloc-rs [INFO] tweaked toml for git repo https://github.com/psomas/mosalloc-rs written to /workspace/builds/worker-7-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/psomas/mosalloc-rs 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" "+af4a5a13a15fa0c60e06321077ef452f769b42fd" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [ERROR] error running command: no output for 300 seconds [ERROR] this task or one of its parent failed! [ERROR] no output for 300 seconds [ERROR] note: run with `RUST_BACKTRACE=1` to display a backtrace. [INFO] checking psomas/mosalloc-rs against try#36dbcaee1a55543dfc181be52a69d99ff46ff62f for pr-122960-4 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fpsomas%2Fmosalloc-rs" "/workspace/builds/worker-7-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/psomas/mosalloc-rs on toolchain 36dbcaee1a55543dfc181be52a69d99ff46ff62f [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+36dbcaee1a55543dfc181be52a69d99ff46ff62f" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/psomas/mosalloc-rs [INFO] finished tweaking git repo https://github.com/psomas/mosalloc-rs [INFO] tweaked toml for git repo https://github.com/psomas/mosalloc-rs written to /workspace/builds/worker-7-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/psomas/mosalloc-rs 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" "+36dbcaee1a55543dfc181be52a69d99ff46ff62f" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Updating crates.io index [INFO] [stderr] Blocking waiting for file lock on package cache [ERROR] error running command: no output for 300 seconds [INFO] checking psomas/mosalloc-rs against try#36dbcaee1a55543dfc181be52a69d99ff46ff62f for pr-122960-4 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fpsomas%2Fmosalloc-rs" "/workspace/builds/worker-7-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/psomas/mosalloc-rs on toolchain 36dbcaee1a55543dfc181be52a69d99ff46ff62f [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+36dbcaee1a55543dfc181be52a69d99ff46ff62f" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/psomas/mosalloc-rs [INFO] finished tweaking git repo https://github.com/psomas/mosalloc-rs [INFO] tweaked toml for git repo https://github.com/psomas/mosalloc-rs written to /workspace/builds/worker-7-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/psomas/mosalloc-rs 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" "+36dbcaee1a55543dfc181be52a69d99ff46ff62f" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded libseccomp-sys v0.2.1 [INFO] [stderr] Downloaded redhook v2.0.0 [INFO] [stderr] Downloaded libseccomp v0.2.3 [INFO] [stderr] Downloaded syscalls v0.6.14 [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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+36dbcaee1a55543dfc181be52a69d99ff46ff62f" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 70ca25ad92d24f5cc79bee5c3d3961a5c6e787b789cd1149a473b85ab5faab34 [INFO] running `Command { std: "docker" "start" "-a" "70ca25ad92d24f5cc79bee5c3d3961a5c6e787b789cd1149a473b85ab5faab34", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "70ca25ad92d24f5cc79bee5c3d3961a5c6e787b789cd1149a473b85ab5faab34", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "70ca25ad92d24f5cc79bee5c3d3961a5c6e787b789cd1149a473b85ab5faab34", kill_on_drop: false }` [INFO] [stdout] 70ca25ad92d24f5cc79bee5c3d3961a5c6e787b789cd1149a473b85ab5faab34 [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=allow" "-e" "RUSTDOCFLAGS=--cap-lints=allow" "-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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+36dbcaee1a55543dfc181be52a69d99ff46ff62f" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 35c99b97580882b57d047b2ff91b5d02b2a19c35e3951cc4ce2bc1f8d508d2b4 [INFO] running `Command { std: "docker" "start" "-a" "35c99b97580882b57d047b2ff91b5d02b2a19c35e3951cc4ce2bc1f8d508d2b4", kill_on_drop: false }` [INFO] [stderr] Copying to /tmp/fixit [INFO] [stderr] Running `cargo fix --edition` [INFO] [stderr] Compiling proc-macro2 v1.0.67 [INFO] [stderr] Compiling unicode-ident v1.0.12 [INFO] [stderr] Compiling autocfg v1.1.0 [INFO] [stderr] Compiling version_check v0.9.4 [INFO] [stderr] Compiling libc v0.2.148 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Checking memchr v2.6.3 [INFO] [stderr] Compiling serde v1.0.188 [INFO] [stderr] Compiling heck v0.4.1 [INFO] [stderr] Checking bitflags v1.3.2 [INFO] [stderr] Checking hashbrown v0.12.3 [INFO] [stderr] Checking regex-syntax v0.7.5 [INFO] [stderr] Checking os_str_bytes v6.5.1 [INFO] [stderr] Compiling proc-macro-error-attr v1.0.4 [INFO] [stderr] Compiling proc-macro-error v1.0.4 [INFO] [stderr] Compiling indexmap v1.9.3 [INFO] [stderr] Compiling memoffset v0.6.5 [INFO] [stderr] Checking aho-corasick v1.1.1 [INFO] [stderr] Checking clap_lex v0.2.4 [INFO] [stderr] Checking csv-core v0.1.10 [INFO] [stderr] Compiling quote v1.0.33 [INFO] [stderr] Checking textwrap v0.16.0 [INFO] [stderr] Checking ryu v1.0.15 [INFO] [stderr] Compiling syn v2.0.37 [INFO] [stderr] Checking itoa v1.0.9 [INFO] [stderr] Checking cfg-if v1.0.0 [INFO] [stderr] Checking termcolor v1.3.0 [INFO] [stderr] Checking once_cell v1.18.0 [INFO] [stderr] Checking strsim v0.10.0 [INFO] [stderr] Checking lazy_static v1.4.0 [INFO] [stderr] Compiling pkg-config v0.3.27 [INFO] [stderr] Compiling libseccomp-sys v0.2.1 [INFO] [stderr] Checking bitflags v2.4.0 [INFO] [stderr] Checking atty v0.2.14 [INFO] [stderr] Checking nix v0.24.3 [INFO] [stderr] Checking epoll v4.3.3 [INFO] [stderr] Checking redhook v2.0.0 [INFO] [stderr] Compiling libseccomp v0.2.3 [INFO] [stderr] Checking regex-automata v0.3.8 [INFO] [stderr] Compiling cc v1.0.83 [INFO] [stderr] Compiling serde_derive v1.0.188 [INFO] [stderr] Compiling serde_repr v0.1.16 [INFO] [stderr] Compiling syscalls v0.6.14 [INFO] [stderr] Checking regex v1.9.5 [INFO] [stderr] Compiling clap_derive v3.2.25 [INFO] [stderr] Compiling ctor v0.1.26 [INFO] [stderr] Checking clap v3.2.25 [INFO] [stderr] Checking csv v1.2.2 [INFO] [stderr] Checking mosalloc-rs v0.1.0 (/tmp/fixit) [INFO] [stderr] Migrating src/lib.rs from 2021 edition to 2024 [INFO] [stderr] Checking mosalloc v0.1.0 (/tmp/fixit/src/libmosalloc) [INFO] [stderr] Migrating src/bin/reserve_huge_pages.rs from 2021 edition to 2024 [INFO] [stderr] Migrating src/bin/run_mosalloc.rs from 2021 edition to 2024 [INFO] [stderr] Migrating src/libmosalloc/src/lib.rs from 2021 edition to 2024 [INFO] [stdout] error[E0432]: unresolved import `libseccomp::notify` [INFO] [stdout] --> src/libmosalloc/src/seccomp_hooks.rs:2:17 [INFO] [stdout] | [INFO] [stdout] 2 | use libseccomp::notify::*; [INFO] [stdout] | ^^^^^^ could not find `notify` in `libseccomp` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `ScmpNotifReq` [INFO] [stdout] --> src/libmosalloc/src/seccomp_hooks.rs:40:23 [INFO] [stdout] | [INFO] [stdout] 40 | let req = ScmpNotifReq::receive(fd).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^ use of undeclared type `ScmpNotifReq` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `ScmpNotifResp` [INFO] [stdout] --> src/libmosalloc/src/seccomp_hooks.rs:122:24 [INFO] [stdout] | [INFO] [stdout] 122 | let resp = ScmpNotifResp::new(req.id, ret, err, 0); [INFO] [stdout] | ^^^^^^^^^^^^^ use of undeclared type `ScmpNotifResp` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `get_notify_fd` found for struct `libseccomp::ScmpFilterContext` in the current scope [INFO] [stdout] --> src/libmosalloc/src/seccomp_hooks.rs:139:23 [INFO] [stdout] | [INFO] [stdout] 139 | fd_tx.send(filter.get_notify_fd().unwrap()).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^ method not found in `ScmpFilterContext` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `libc::malloc` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/libmosalloc/src/allocator.rs:123:25 [INFO] [stdout] | [INFO] [stdout] 123 | while black_box(libc::malloc(CHUNK)) as *const u8 != null() {} [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/libmosalloc/src/allocator.rs:121:5 [INFO] [stdout] | [INFO] [stdout] 121 | pub unsafe fn drain(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: `--force-warn unsafe-op-in-unsafe-fn` implied by `--force-warn rust-2024-compatibility` [INFO] [stdout] = help: to override `--force-warn rust-2024-compatibility` add `#[allow(unsafe_op_in_unsafe_fn)]` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: dereference of raw pointer is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/libmosalloc/src/allocator.rs:124:9 [INFO] [stdout] | [INFO] [stdout] 124 | *libc::__errno_location() = 0; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `libc::__errno_location` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/libmosalloc/src/allocator.rs:124:10 [INFO] [stdout] | [INFO] [stdout] 124 | *libc::__errno_location() = 0; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `internal_allocator::InternalAllocator::print_stats` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/libmosalloc/src/allocator.rs:126:9 [INFO] [stdout] | [INFO] [stdout] 126 | InternalAllocator::print_stats(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: dereference of raw pointer is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/libmosalloc/src/allocator.rs:132:13 [INFO] [stdout] | [INFO] [stdout] 132 | *libc::__errno_location() = libc::ENOMEM; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/libmosalloc/src/allocator.rs:130:5 [INFO] [stdout] | [INFO] [stdout] 130 | pub unsafe fn do_brk(&mut self, addr: Option, incr: Option) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `libc::__errno_location` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/libmosalloc/src/allocator.rs:132:14 [INFO] [stdout] | [INFO] [stdout] 132 | *libc::__errno_location() = libc::ENOMEM; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: dereference of raw pointer is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/libmosalloc/src/allocator.rs:144:13 [INFO] [stdout] | [INFO] [stdout] 144 | *libc::__errno_location() = libc::ENOMEM; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `libc::__errno_location` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/libmosalloc/src/allocator.rs:144:14 [INFO] [stdout] | [INFO] [stdout] 144 | *libc::__errno_location() = libc::ENOMEM; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `allocator::Allocator::do_brk` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/libmosalloc/src/allocator.rs:163:12 [INFO] [stdout] | [INFO] [stdout] 163 | if self.do_brk(Some(addr), None) == usize::MAX { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/libmosalloc/src/allocator.rs:161:5 [INFO] [stdout] | [INFO] [stdout] 161 | pub unsafe fn brk(&mut self, addr: usize) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `allocator::Allocator::do_brk` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/libmosalloc/src/allocator.rs:172:9 [INFO] [stdout] | [INFO] [stdout] 172 | self.do_brk(None, Some(incr)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/libmosalloc/src/allocator.rs:170:5 [INFO] [stdout] | [INFO] [stdout] 170 | pub unsafe fn sbrk(&mut self, incr: isize) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: dereference of raw pointer is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/libmosalloc/src/allocator.rs:224:13 [INFO] [stdout] | [INFO] [stdout] 224 | *libc::__errno_location() = libc::ENOMEM; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/libmosalloc/src/allocator.rs:209:5 [INFO] [stdout] | [INFO] [stdout] 209 | / pub unsafe fn mmap( [INFO] [stdout] 210 | | &mut self, [INFO] [stdout] 211 | | addr: usize, [INFO] [stdout] 212 | | len: usize, [INFO] [stdout] ... | [INFO] [stdout] 216 | | offset: i64, [INFO] [stdout] 217 | | ) -> usize { [INFO] [stdout] | |______________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `libc::__errno_location` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/libmosalloc/src/allocator.rs:224:14 [INFO] [stdout] | [INFO] [stdout] 224 | *libc::__errno_location() = libc::ENOMEM; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: dereference of raw pointer is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/libmosalloc/src/allocator.rs:254:17 [INFO] [stdout] | [INFO] [stdout] 254 | *libc::__errno_location() = libc::EEXIST; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `libc::__errno_location` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/libmosalloc/src/allocator.rs:254:18 [INFO] [stdout] | [INFO] [stdout] 254 | *libc::__errno_location() = libc::EEXIST; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: dereference of raw pointer is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/libmosalloc/src/allocator.rs:257:17 [INFO] [stdout] | [INFO] [stdout] 257 | *libc::__errno_location() = libc::ENOMEM; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `libc::__errno_location` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/libmosalloc/src/allocator.rs:257:18 [INFO] [stdout] | [INFO] [stdout] 257 | *libc::__errno_location() = libc::ENOMEM; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: dereference of raw pointer is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/libmosalloc/src/allocator.rs:378:21 [INFO] [stdout] | [INFO] [stdout] 378 | *libc::__errno_location() = libc::ENOMEM; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/libmosalloc/src/allocator.rs:319:5 [INFO] [stdout] | [INFO] [stdout] 319 | / pub unsafe fn mremap( [INFO] [stdout] 320 | | &mut self, [INFO] [stdout] 321 | | old_address: usize, [INFO] [stdout] 322 | | old_size: usize, [INFO] [stdout] ... | [INFO] [stdout] 325 | | new_address: usize, [INFO] [stdout] 326 | | ) -> usize { [INFO] [stdout] | |______________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `libc::__errno_location` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/libmosalloc/src/allocator.rs:378:22 [INFO] [stdout] | [INFO] [stdout] 378 | *libc::__errno_location() = libc::ENOMEM; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: dereference of raw pointer is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/libmosalloc/src/allocator.rs:398:13 [INFO] [stdout] | [INFO] [stdout] 398 | *libc::__errno_location() = libc::EEXIST; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `libc::__errno_location` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/libmosalloc/src/allocator.rs:398:14 [INFO] [stdout] | [INFO] [stdout] 398 | *libc::__errno_location() = libc::EEXIST; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `preload_hooks::preload_init` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/libmosalloc/src/init.rs:14:13 [INFO] [stdout] | [INFO] [stdout] 14 | preload_init(config); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/libmosalloc/src/init.rs:8:1 [INFO] [stdout] | [INFO] [stdout] 8 | #[ctor] [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `seccomp_hooks::seccomp_init` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/libmosalloc/src/init.rs:17:13 [INFO] [stdout] | [INFO] [stdout] 17 | seccomp_init(config); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `std::ptr::mut_ptr::::add` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/libmosalloc/src/internal_allocator.rs:97:27 [INFO] [stdout] | [INFO] [stdout] 97 | let ptr = (self.arena.get() as *mut u8).add(align_up(prev_idx, align)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/libmosalloc/src/internal_allocator.rs:70:5 [INFO] [stdout] | [INFO] [stdout] 70 | unsafe fn alloc_helper(&self, layout: Layout, zero: bool) -> *mut u8 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `std::intrinsics::write_bytes` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/libmosalloc/src/internal_allocator.rs:99:21 [INFO] [stdout] | [INFO] [stdout] 99 | write_bytes(ptr, 0, size); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `internal_allocator::InternalAllocator::alloc_helper` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/libmosalloc/src/internal_allocator.rs:110:9 [INFO] [stdout] | [INFO] [stdout] 110 | self.alloc_helper(layout, false) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/libmosalloc/src/internal_allocator.rs:109:5 [INFO] [stdout] | [INFO] [stdout] 109 | unsafe fn alloc(&self, layout: Layout) -> *mut u8 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `std::ptr::mut_ptr::::add` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/libmosalloc/src/internal_allocator.rs:127:27 [INFO] [stdout] | [INFO] [stdout] 127 | let top = (self.arena.get() as *mut u8).add(idx); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/libmosalloc/src/internal_allocator.rs:113:5 [INFO] [stdout] | [INFO] [stdout] 113 | unsafe fn dealloc(&self, ptr: *mut u8, layout: Layout) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `std::ptr::mut_ptr::::add` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/libmosalloc/src/internal_allocator.rs:128:20 [INFO] [stdout] | [INFO] [stdout] 128 | if ptr.add(size) != top { [INFO] [stdout] | ^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `internal_allocator::InternalAllocator::alloc_helper` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/libmosalloc/src/internal_allocator.rs:138:9 [INFO] [stdout] | [INFO] [stdout] 138 | self.alloc_helper(layout, true) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/libmosalloc/src/internal_allocator.rs:137:5 [INFO] [stdout] | [INFO] [stdout] 137 | unsafe fn alloc_zeroed(&self, layout: Layout) -> *mut u8 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `std::alloc::GlobalAlloc::alloc` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/libmosalloc/src/internal_allocator.rs:146:27 [INFO] [stdout] | [INFO] [stdout] 146 | let new_ptr = self.alloc(Layout::from_size_align(new_size, align).unwrap()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/libmosalloc/src/internal_allocator.rs:141:5 [INFO] [stdout] | [INFO] [stdout] 141 | unsafe fn realloc(&self, ptr: *mut u8, layout: Layout, new_size: usize) -> *mut u8 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `std::intrinsics::copy_nonoverlapping` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/libmosalloc/src/internal_allocator.rs:147:13 [INFO] [stdout] | [INFO] [stdout] 147 | copy_nonoverlapping(ptr, new_ptr, old_size.min(new_size)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `std::alloc::GlobalAlloc::dealloc` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/libmosalloc/src/internal_allocator.rs:148:13 [INFO] [stdout] | [INFO] [stdout] 148 | self.dealloc(ptr, layout); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `libc::mremap` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/libmosalloc/src/internal_allocator.rs:160:23 [INFO] [stdout] | [INFO] [stdout] 160 | let ret = libc::mremap(ptr as *mut _, old_size, new_size, libc::MREMAP_MAYMOVE); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `std::ptr::mut_ptr::::add` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/libmosalloc/src/internal_allocator.rs:167:31 [INFO] [stdout] | [INFO] [stdout] 167 | let top = (self.arena.get() as *mut u8).add(idx); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `std::ptr::mut_ptr::::add` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/libmosalloc/src/internal_allocator.rs:168:24 [INFO] [stdout] | [INFO] [stdout] 168 | if ptr.add(old_size) != top { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `std::alloc::GlobalAlloc::alloc` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/libmosalloc/src/internal_allocator.rs:184:31 [INFO] [stdout] | [INFO] [stdout] 184 | let new_ptr = self.alloc(Layout::from_size_align(new_size, align).unwrap()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `std::intrinsics::copy_nonoverlapping` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/libmosalloc/src/internal_allocator.rs:185:17 [INFO] [stdout] | [INFO] [stdout] 185 | copy_nonoverlapping(ptr, new_ptr, old_size.min(new_size)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of mutable static is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/libmosalloc/src/preload_hooks.rs:24:33 [INFO] [stdout] | [INFO] [stdout] 24 | if let Some(mosalloc) = PRELOAD_ALLOC.as_mut() { [INFO] [stdout] | ^^^^^^^^^^^^^ use of mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: mutable statics can be mutated by multiple threads: aliasing violations or data races will cause undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/libmosalloc/src/preload_hooks.rs:17:1 [INFO] [stdout] | [INFO] [stdout] 17 | / hook! { [INFO] [stdout] 18 | | unsafe fn mmap(addr: *mut c_void, [INFO] [stdout] 19 | | len: size_t, [INFO] [stdout] 20 | | prot: c_int, [INFO] [stdout] ... | [INFO] [stdout] 29 | | } [INFO] [stdout] 30 | | } [INFO] [stdout] | |_^ [INFO] [stdout] = note: this warning originates in the macro `hook` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `allocator::Allocator::mmap` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/libmosalloc/src/preload_hooks.rs:25:13 [INFO] [stdout] | [INFO] [stdout] 25 | mosalloc.mmap(addr as usize, len, prot, flags, fd, offset) as *mut c_void [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/libmosalloc/src/preload_hooks.rs:27:13 [INFO] [stdout] | [INFO] [stdout] 27 | real!(mmap)(addr, len, prot, flags, fd, offset) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of mutable static is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/libmosalloc/src/preload_hooks.rs:47:33 [INFO] [stdout] | [INFO] [stdout] 47 | if let Some(mosalloc) = PRELOAD_ALLOC.as_mut() { [INFO] [stdout] | ^^^^^^^^^^^^^ use of mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: mutable statics can be mutated by multiple threads: aliasing violations or data races will cause undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/libmosalloc/src/preload_hooks.rs:44:1 [INFO] [stdout] | [INFO] [stdout] 44 | / hook! { [INFO] [stdout] 45 | | unsafe fn munmap(addr: *mut c_void, [INFO] [stdout] 46 | | len: size_t) -> c_int => mosalloc_munmap { [INFO] [stdout] 47 | | if let Some(mosalloc) = PRELOAD_ALLOC.as_mut() { [INFO] [stdout] ... | [INFO] [stdout] 52 | | } [INFO] [stdout] 53 | | } [INFO] [stdout] | |_^ [INFO] [stdout] = note: this warning originates in the macro `hook` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/libmosalloc/src/preload_hooks.rs:50:13 [INFO] [stdout] | [INFO] [stdout] 50 | real!(munmap)(addr, len) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of mutable static is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/libmosalloc/src/preload_hooks.rs:63:33 [INFO] [stdout] | [INFO] [stdout] 63 | if let Some(mosalloc) = PRELOAD_ALLOC.as_mut() { [INFO] [stdout] | ^^^^^^^^^^^^^ use of mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: mutable statics can be mutated by multiple threads: aliasing violations or data races will cause undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/libmosalloc/src/preload_hooks.rs:60:1 [INFO] [stdout] | [INFO] [stdout] 60 | / hook! { [INFO] [stdout] 61 | | unsafe fn mprotect(addr: *mut c_void, [INFO] [stdout] 62 | | len: size_t, prot: c_int) -> c_int => mosalloc_mprotect { [INFO] [stdout] 63 | | if let Some(mosalloc) = PRELOAD_ALLOC.as_mut() { [INFO] [stdout] ... | [INFO] [stdout] 68 | | } [INFO] [stdout] 69 | | } [INFO] [stdout] | |_^ [INFO] [stdout] = note: this warning originates in the macro `hook` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/libmosalloc/src/preload_hooks.rs:66:13 [INFO] [stdout] | [INFO] [stdout] 66 | real!(mprotect)(addr, len, prot) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of mutable static is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/libmosalloc/src/preload_hooks.rs:81:33 [INFO] [stdout] | [INFO] [stdout] 81 | if let Some(mosalloc) = PRELOAD_ALLOC.as_mut() { [INFO] [stdout] | ^^^^^^^^^^^^^ use of mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: mutable statics can be mutated by multiple threads: aliasing violations or data races will cause undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/libmosalloc/src/preload_hooks.rs:76:1 [INFO] [stdout] | [INFO] [stdout] 76 | / hook! { [INFO] [stdout] 77 | | // FIXME: some of the madvise calls should be probably mocked by mosalloc for the mappings [INFO] [stdout] 78 | | // under its control [INFO] [stdout] 79 | | unsafe fn madvise(addr: *mut c_void, [INFO] [stdout] ... | [INFO] [stdout] 86 | | } [INFO] [stdout] 87 | | } [INFO] [stdout] | |_^ [INFO] [stdout] = note: this warning originates in the macro `hook` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/libmosalloc/src/preload_hooks.rs:84:13 [INFO] [stdout] | [INFO] [stdout] 84 | real!(madvise)(addr, len, advice) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of mutable static is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/libmosalloc/src/preload_hooks.rs:97:33 [INFO] [stdout] | [INFO] [stdout] 97 | if let Some(mosalloc) = PRELOAD_ALLOC.as_mut() { [INFO] [stdout] | ^^^^^^^^^^^^^ use of mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: mutable statics can be mutated by multiple threads: aliasing violations or data races will cause undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/libmosalloc/src/preload_hooks.rs:94:1 [INFO] [stdout] | [INFO] [stdout] 94 | / hook! { [INFO] [stdout] 95 | | // FIXME: handle mremap to mosalloc-managed mappings [INFO] [stdout] 96 | | unsafe fn mremap(old_address: *mut c_void, old_size: size_t, new_size: size_t, flags: c_int, new_address: *mut c_void) -> *mut c_void... [INFO] [stdout] 97 | | if let Some(mosalloc) = PRELOAD_ALLOC.as_mut() { [INFO] [stdout] ... | [INFO] [stdout] 102 | | } [INFO] [stdout] 103 | | } [INFO] [stdout] | |_^ [INFO] [stdout] = note: this warning originates in the macro `hook` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `allocator::Allocator::mremap` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/libmosalloc/src/preload_hooks.rs:98:13 [INFO] [stdout] | [INFO] [stdout] 98 | mosalloc.mremap(old_address as usize, old_size, new_size, flags, new_address as usize) as *mut c_void [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/libmosalloc/src/preload_hooks.rs:100:13 [INFO] [stdout] | [INFO] [stdout] 100 | real!(mremap)(old_address, old_size, new_size, flags, new_address) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of mutable static is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/libmosalloc/src/preload_hooks.rs:118:33 [INFO] [stdout] | [INFO] [stdout] 118 | if let Some(mosalloc) = PRELOAD_ALLOC.as_mut() { [INFO] [stdout] | ^^^^^^^^^^^^^ use of mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: mutable statics can be mutated by multiple threads: aliasing violations or data races will cause undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/libmosalloc/src/preload_hooks.rs:116:1 [INFO] [stdout] | [INFO] [stdout] 116 | / hook! { [INFO] [stdout] 117 | | unsafe fn brk(addr: *mut c_void) -> c_int => mosalloc_brk { [INFO] [stdout] 118 | | if let Some(mosalloc) = PRELOAD_ALLOC.as_mut() { [INFO] [stdout] 119 | | mosalloc.brk(addr as usize) [INFO] [stdout] ... | [INFO] [stdout] 123 | | } [INFO] [stdout] 124 | | } [INFO] [stdout] | |_^ [INFO] [stdout] = note: this warning originates in the macro `hook` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `allocator::Allocator::brk` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/libmosalloc/src/preload_hooks.rs:119:13 [INFO] [stdout] | [INFO] [stdout] 119 | mosalloc.brk(addr as usize) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/libmosalloc/src/preload_hooks.rs:121:13 [INFO] [stdout] | [INFO] [stdout] 121 | real!(brk)(addr) [INFO] [stdout] | ^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of mutable static is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/libmosalloc/src/preload_hooks.rs:133:33 [INFO] [stdout] | [INFO] [stdout] 133 | if let Some(mosalloc) = PRELOAD_ALLOC.as_mut() { [INFO] [stdout] | ^^^^^^^^^^^^^ use of mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: mutable statics can be mutated by multiple threads: aliasing violations or data races will cause undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/libmosalloc/src/preload_hooks.rs:131:1 [INFO] [stdout] | [INFO] [stdout] 131 | / hook! { [INFO] [stdout] 132 | | unsafe fn sbrk(incr: intptr_t) -> *mut c_void => mosalloc_sbrk { [INFO] [stdout] 133 | | if let Some(mosalloc) = PRELOAD_ALLOC.as_mut() { [INFO] [stdout] 134 | | mosalloc.sbrk(incr) as *mut c_void [INFO] [stdout] ... | [INFO] [stdout] 138 | | } [INFO] [stdout] 139 | | } [INFO] [stdout] | |_^ [INFO] [stdout] = note: this warning originates in the macro `hook` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `allocator::Allocator::sbrk` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/libmosalloc/src/preload_hooks.rs:134:13 [INFO] [stdout] | [INFO] [stdout] 134 | mosalloc.sbrk(incr) as *mut c_void [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/libmosalloc/src/preload_hooks.rs:136:13 [INFO] [stdout] | [INFO] [stdout] 136 | real!(sbrk)(incr) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of mutable static is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/libmosalloc/src/preload_hooks.rs:157:5 [INFO] [stdout] | [INFO] [stdout] 157 | __morecore = mosalloc_morecore as extern "C" fn(intptr_t) -> *mut c_void; [INFO] [stdout] | ^^^^^^^^^^ use of mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: mutable statics can be mutated by multiple threads: aliasing violations or data races will cause undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/libmosalloc/src/preload_hooks.rs:156:1 [INFO] [stdout] | [INFO] [stdout] 156 | pub unsafe fn preload_init(config: MosallocConfig) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of mutable static is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/libmosalloc/src/preload_hooks.rs:159:5 [INFO] [stdout] | [INFO] [stdout] 159 | PRELOAD_ALLOC = Some(Allocator::new(config, false)); [INFO] [stdout] | ^^^^^^^^^^^^^ use of mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: mutable statics can be mutated by multiple threads: aliasing violations or data races will cause undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `allocator::Allocator::drain` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/libmosalloc/src/preload_hooks.rs:160:5 [INFO] [stdout] | [INFO] [stdout] 160 | PRELOAD_ALLOC.as_mut().unwrap().drain(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `mosalloc` (lib test) due to 5 previous errors; 58 warnings emitted [INFO] [stdout] warning: use of mutable static is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/libmosalloc/src/preload_hooks.rs:160:5 [INFO] [stdout] | [INFO] [stdout] 160 | PRELOAD_ALLOC.as_mut().unwrap().drain(); [INFO] [stdout] | ^^^^^^^^^^^^^ use of mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: mutable statics can be mutated by multiple threads: aliasing violations or data races will cause undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error: aborting due to 4 previous errors; 58 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0432, E0433, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0432`. [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `libseccomp::notify` [INFO] [stdout] --> src/libmosalloc/src/seccomp_hooks.rs:2:17 [INFO] [stdout] | [INFO] [stdout] 2 | use libseccomp::notify::*; [INFO] [stdout] | ^^^^^^ could not find `notify` in `libseccomp` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `ScmpNotifReq` [INFO] [stdout] --> src/libmosalloc/src/seccomp_hooks.rs:40:23 [INFO] [stdout] | [INFO] [stdout] 40 | let req = ScmpNotifReq::receive(fd).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^ use of undeclared type `ScmpNotifReq` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `ScmpNotifResp` [INFO] [stdout] --> src/libmosalloc/src/seccomp_hooks.rs:122:24 [INFO] [stdout] | [INFO] [stdout] 122 | let resp = ScmpNotifResp::new(req.id, ret, err, 0); [INFO] [stdout] | ^^^^^^^^^^^^^ use of undeclared type `ScmpNotifResp` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `get_notify_fd` found for struct `libseccomp::ScmpFilterContext` in the current scope [INFO] [stdout] --> src/libmosalloc/src/seccomp_hooks.rs:139:23 [INFO] [stdout] | [INFO] [stdout] 139 | fd_tx.send(filter.get_notify_fd().unwrap()).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^ method not found in `ScmpFilterContext` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `libc::malloc` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/libmosalloc/src/allocator.rs:123:25 [INFO] [stdout] | [INFO] [stdout] 123 | while black_box(libc::malloc(CHUNK)) as *const u8 != null() {} [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/libmosalloc/src/allocator.rs:121:5 [INFO] [stdout] | [INFO] [stdout] 121 | pub unsafe fn drain(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: `--force-warn unsafe-op-in-unsafe-fn` implied by `--force-warn rust-2024-compatibility` [INFO] [stdout] = help: to override `--force-warn rust-2024-compatibility` add `#[allow(unsafe_op_in_unsafe_fn)]` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: dereference of raw pointer is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/libmosalloc/src/allocator.rs:124:9 [INFO] [stdout] | [INFO] [stdout] 124 | *libc::__errno_location() = 0; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `libc::__errno_location` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/libmosalloc/src/allocator.rs:124:10 [INFO] [stdout] | [INFO] [stdout] 124 | *libc::__errno_location() = 0; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `internal_allocator::InternalAllocator::print_stats` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/libmosalloc/src/allocator.rs:126:9 [INFO] [stdout] | [INFO] [stdout] 126 | InternalAllocator::print_stats(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: dereference of raw pointer is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/libmosalloc/src/allocator.rs:132:13 [INFO] [stdout] | [INFO] [stdout] 132 | *libc::__errno_location() = libc::ENOMEM; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/libmosalloc/src/allocator.rs:130:5 [INFO] [stdout] | [INFO] [stdout] 130 | pub unsafe fn do_brk(&mut self, addr: Option, incr: Option) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `libc::__errno_location` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/libmosalloc/src/allocator.rs:132:14 [INFO] [stdout] | [INFO] [stdout] 132 | *libc::__errno_location() = libc::ENOMEM; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: dereference of raw pointer is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/libmosalloc/src/allocator.rs:144:13 [INFO] [stdout] | [INFO] [stdout] 144 | *libc::__errno_location() = libc::ENOMEM; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `libc::__errno_location` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/libmosalloc/src/allocator.rs:144:14 [INFO] [stdout] | [INFO] [stdout] 144 | *libc::__errno_location() = libc::ENOMEM; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `allocator::Allocator::do_brk` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/libmosalloc/src/allocator.rs:163:12 [INFO] [stdout] | [INFO] [stdout] 163 | if self.do_brk(Some(addr), None) == usize::MAX { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/libmosalloc/src/allocator.rs:161:5 [INFO] [stdout] | [INFO] [stdout] 161 | pub unsafe fn brk(&mut self, addr: usize) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `allocator::Allocator::do_brk` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/libmosalloc/src/allocator.rs:172:9 [INFO] [stdout] | [INFO] [stdout] 172 | self.do_brk(None, Some(incr)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/libmosalloc/src/allocator.rs:170:5 [INFO] [stdout] | [INFO] [stdout] 170 | pub unsafe fn sbrk(&mut self, incr: isize) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: dereference of raw pointer is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/libmosalloc/src/allocator.rs:224:13 [INFO] [stdout] | [INFO] [stdout] 224 | *libc::__errno_location() = libc::ENOMEM; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/libmosalloc/src/allocator.rs:209:5 [INFO] [stdout] | [INFO] [stdout] 209 | / pub unsafe fn mmap( [INFO] [stdout] 210 | | &mut self, [INFO] [stdout] 211 | | addr: usize, [INFO] [stdout] 212 | | len: usize, [INFO] [stdout] ... | [INFO] [stdout] 216 | | offset: i64, [INFO] [stdout] 217 | | ) -> usize { [INFO] [stdout] | |______________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `libc::__errno_location` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/libmosalloc/src/allocator.rs:224:14 [INFO] [stdout] | [INFO] [stdout] 224 | *libc::__errno_location() = libc::ENOMEM; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: dereference of raw pointer is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/libmosalloc/src/allocator.rs:254:17 [INFO] [stdout] | [INFO] [stdout] 254 | *libc::__errno_location() = libc::EEXIST; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `libc::__errno_location` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/libmosalloc/src/allocator.rs:254:18 [INFO] [stdout] | [INFO] [stdout] 254 | *libc::__errno_location() = libc::EEXIST; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: dereference of raw pointer is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/libmosalloc/src/allocator.rs:257:17 [INFO] [stdout] | [INFO] [stdout] 257 | *libc::__errno_location() = libc::ENOMEM; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `libc::__errno_location` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/libmosalloc/src/allocator.rs:257:18 [INFO] [stdout] | [INFO] [stdout] 257 | *libc::__errno_location() = libc::ENOMEM; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: dereference of raw pointer is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/libmosalloc/src/allocator.rs:378:21 [INFO] [stdout] | [INFO] [stdout] 378 | *libc::__errno_location() = libc::ENOMEM; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/libmosalloc/src/allocator.rs:319:5 [INFO] [stdout] | [INFO] [stdout] 319 | / pub unsafe fn mremap( [INFO] [stdout] 320 | | &mut self, [INFO] [stdout] 321 | | old_address: usize, [INFO] [stdout] 322 | | old_size: usize, [INFO] [stdout] ... | [INFO] [stdout] 325 | | new_address: usize, [INFO] [stdout] 326 | | ) -> usize { [INFO] [stdout] | |______________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `libc::__errno_location` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/libmosalloc/src/allocator.rs:378:22 [INFO] [stdout] | [INFO] [stdout] 378 | *libc::__errno_location() = libc::ENOMEM; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: dereference of raw pointer is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/libmosalloc/src/allocator.rs:398:13 [INFO] [stdout] | [INFO] [stdout] 398 | *libc::__errno_location() = libc::EEXIST; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `libc::__errno_location` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/libmosalloc/src/allocator.rs:398:14 [INFO] [stdout] | [INFO] [stdout] 398 | *libc::__errno_location() = libc::EEXIST; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `preload_hooks::preload_init` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/libmosalloc/src/init.rs:14:13 [INFO] [stdout] | [INFO] [stdout] 14 | preload_init(config); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/libmosalloc/src/init.rs:8:1 [INFO] [stdout] | [INFO] [stdout] 8 | #[ctor] [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `seccomp_hooks::seccomp_init` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/libmosalloc/src/init.rs:17:13 [INFO] [stdout] | [INFO] [stdout] 17 | seccomp_init(config); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `std::ptr::mut_ptr::::add` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/libmosalloc/src/internal_allocator.rs:97:27 [INFO] [stdout] | [INFO] [stdout] 97 | let ptr = (self.arena.get() as *mut u8).add(align_up(prev_idx, align)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/libmosalloc/src/internal_allocator.rs:70:5 [INFO] [stdout] | [INFO] [stdout] 70 | unsafe fn alloc_helper(&self, layout: Layout, zero: bool) -> *mut u8 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `std::intrinsics::write_bytes` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/libmosalloc/src/internal_allocator.rs:99:21 [INFO] [stdout] | [INFO] [stdout] 99 | write_bytes(ptr, 0, size); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `internal_allocator::InternalAllocator::alloc_helper` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/libmosalloc/src/internal_allocator.rs:110:9 [INFO] [stdout] | [INFO] [stdout] 110 | self.alloc_helper(layout, false) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/libmosalloc/src/internal_allocator.rs:109:5 [INFO] [stdout] | [INFO] [stdout] 109 | unsafe fn alloc(&self, layout: Layout) -> *mut u8 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `std::ptr::mut_ptr::::add` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/libmosalloc/src/internal_allocator.rs:127:27 [INFO] [stdout] | [INFO] [stdout] 127 | let top = (self.arena.get() as *mut u8).add(idx); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/libmosalloc/src/internal_allocator.rs:113:5 [INFO] [stdout] | [INFO] [stdout] 113 | unsafe fn dealloc(&self, ptr: *mut u8, layout: Layout) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `std::ptr::mut_ptr::::add` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/libmosalloc/src/internal_allocator.rs:128:20 [INFO] [stdout] | [INFO] [stdout] 128 | if ptr.add(size) != top { [INFO] [stdout] | ^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `internal_allocator::InternalAllocator::alloc_helper` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/libmosalloc/src/internal_allocator.rs:138:9 [INFO] [stdout] | [INFO] [stdout] 138 | self.alloc_helper(layout, true) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/libmosalloc/src/internal_allocator.rs:137:5 [INFO] [stdout] | [INFO] [stdout] 137 | unsafe fn alloc_zeroed(&self, layout: Layout) -> *mut u8 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `std::alloc::GlobalAlloc::alloc` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/libmosalloc/src/internal_allocator.rs:146:27 [INFO] [stdout] | [INFO] [stdout] 146 | let new_ptr = self.alloc(Layout::from_size_align(new_size, align).unwrap()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/libmosalloc/src/internal_allocator.rs:141:5 [INFO] [stdout] | [INFO] [stdout] 141 | unsafe fn realloc(&self, ptr: *mut u8, layout: Layout, new_size: usize) -> *mut u8 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `std::intrinsics::copy_nonoverlapping` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/libmosalloc/src/internal_allocator.rs:147:13 [INFO] [stdout] | [INFO] [stdout] 147 | copy_nonoverlapping(ptr, new_ptr, old_size.min(new_size)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `std::alloc::GlobalAlloc::dealloc` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/libmosalloc/src/internal_allocator.rs:148:13 [INFO] [stdout] | [INFO] [stdout] 148 | self.dealloc(ptr, layout); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `libc::mremap` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/libmosalloc/src/internal_allocator.rs:160:23 [INFO] [stdout] | [INFO] [stdout] 160 | let ret = libc::mremap(ptr as *mut _, old_size, new_size, libc::MREMAP_MAYMOVE); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `std::ptr::mut_ptr::::add` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/libmosalloc/src/internal_allocator.rs:167:31 [INFO] [stdout] | [INFO] [stdout] 167 | let top = (self.arena.get() as *mut u8).add(idx); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `std::ptr::mut_ptr::::add` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/libmosalloc/src/internal_allocator.rs:168:24 [INFO] [stdout] | [INFO] [stdout] 168 | if ptr.add(old_size) != top { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `std::alloc::GlobalAlloc::alloc` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/libmosalloc/src/internal_allocator.rs:184:31 [INFO] [stdout] | [INFO] [stdout] 184 | let new_ptr = self.alloc(Layout::from_size_align(new_size, align).unwrap()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `std::intrinsics::copy_nonoverlapping` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/libmosalloc/src/internal_allocator.rs:185:17 [INFO] [stdout] | [INFO] [stdout] 185 | copy_nonoverlapping(ptr, new_ptr, old_size.min(new_size)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of mutable static is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/libmosalloc/src/preload_hooks.rs:24:33 [INFO] [stdout] | [INFO] [stdout] 24 | if let Some(mosalloc) = PRELOAD_ALLOC.as_mut() { [INFO] [stdout] | ^^^^^^^^^^^^^ use of mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: mutable statics can be mutated by multiple threads: aliasing violations or data races will cause undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/libmosalloc/src/preload_hooks.rs:17:1 [INFO] [stdout] | [INFO] [stdout] 17 | / hook! { [INFO] [stdout] 18 | | unsafe fn mmap(addr: *mut c_void, [INFO] [stdout] 19 | | len: size_t, [INFO] [stdout] 20 | | prot: c_int, [INFO] [stdout] ... | [INFO] [stdout] 29 | | } [INFO] [stdout] 30 | | } [INFO] [stdout] | |_^ [INFO] [stdout] = note: this warning originates in the macro `hook` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `allocator::Allocator::mmap` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/libmosalloc/src/preload_hooks.rs:25:13 [INFO] [stdout] | [INFO] [stdout] 25 | mosalloc.mmap(addr as usize, len, prot, flags, fd, offset) as *mut c_void [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/libmosalloc/src/preload_hooks.rs:27:13 [INFO] [stdout] | [INFO] [stdout] 27 | real!(mmap)(addr, len, prot, flags, fd, offset) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of mutable static is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/libmosalloc/src/preload_hooks.rs:47:33 [INFO] [stdout] | [INFO] [stdout] 47 | if let Some(mosalloc) = PRELOAD_ALLOC.as_mut() { [INFO] [stdout] | ^^^^^^^^^^^^^ use of mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: mutable statics can be mutated by multiple threads: aliasing violations or data races will cause undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/libmosalloc/src/preload_hooks.rs:44:1 [INFO] [stdout] | [INFO] [stdout] 44 | / hook! { [INFO] [stdout] 45 | | unsafe fn munmap(addr: *mut c_void, [INFO] [stdout] 46 | | len: size_t) -> c_int => mosalloc_munmap { [INFO] [stdout] 47 | | if let Some(mosalloc) = PRELOAD_ALLOC.as_mut() { [INFO] [stdout] ... | [INFO] [stdout] 52 | | } [INFO] [stdout] 53 | | } [INFO] [stdout] | |_^ [INFO] [stdout] = note: this warning originates in the macro `hook` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/libmosalloc/src/preload_hooks.rs:50:13 [INFO] [stdout] | [INFO] [stdout] 50 | real!(munmap)(addr, len) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of mutable static is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/libmosalloc/src/preload_hooks.rs:63:33 [INFO] [stdout] | [INFO] [stdout] 63 | if let Some(mosalloc) = PRELOAD_ALLOC.as_mut() { [INFO] [stdout] | ^^^^^^^^^^^^^ use of mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: mutable statics can be mutated by multiple threads: aliasing violations or data races will cause undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/libmosalloc/src/preload_hooks.rs:60:1 [INFO] [stdout] | [INFO] [stdout] 60 | / hook! { [INFO] [stdout] 61 | | unsafe fn mprotect(addr: *mut c_void, [INFO] [stdout] 62 | | len: size_t, prot: c_int) -> c_int => mosalloc_mprotect { [INFO] [stdout] 63 | | if let Some(mosalloc) = PRELOAD_ALLOC.as_mut() { [INFO] [stdout] ... | [INFO] [stdout] 68 | | } [INFO] [stdout] 69 | | } [INFO] [stdout] | |_^ [INFO] [stdout] = note: this warning originates in the macro `hook` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/libmosalloc/src/preload_hooks.rs:66:13 [INFO] [stdout] | [INFO] [stdout] 66 | real!(mprotect)(addr, len, prot) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of mutable static is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/libmosalloc/src/preload_hooks.rs:81:33 [INFO] [stdout] | [INFO] [stdout] 81 | if let Some(mosalloc) = PRELOAD_ALLOC.as_mut() { [INFO] [stdout] | ^^^^^^^^^^^^^ use of mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: mutable statics can be mutated by multiple threads: aliasing violations or data races will cause undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/libmosalloc/src/preload_hooks.rs:76:1 [INFO] [stdout] | [INFO] [stdout] 76 | / hook! { [INFO] [stdout] 77 | | // FIXME: some of the madvise calls should be probably mocked by mosalloc for the mappings [INFO] [stdout] 78 | | // under its control [INFO] [stdout] 79 | | unsafe fn madvise(addr: *mut c_void, [INFO] [stdout] ... | [INFO] [stdout] 86 | | } [INFO] [stdout] 87 | | } [INFO] [stdout] | |_^ [INFO] [stdout] = note: this warning originates in the macro `hook` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/libmosalloc/src/preload_hooks.rs:84:13 [INFO] [stdout] | [INFO] [stdout] 84 | real!(madvise)(addr, len, advice) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of mutable static is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/libmosalloc/src/preload_hooks.rs:97:33 [INFO] [stdout] | [INFO] [stdout] 97 | if let Some(mosalloc) = PRELOAD_ALLOC.as_mut() { [INFO] [stdout] | ^^^^^^^^^^^^^ use of mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: mutable statics can be mutated by multiple threads: aliasing violations or data races will cause undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/libmosalloc/src/preload_hooks.rs:94:1 [INFO] [stdout] | [INFO] [stdout] 94 | / hook! { [INFO] [stdout] 95 | | // FIXME: handle mremap to mosalloc-managed mappings [INFO] [stdout] 96 | | unsafe fn mremap(old_address: *mut c_void, old_size: size_t, new_size: size_t, flags: c_int, new_address: *mut c_void) -> *mut c_void... [INFO] [stdout] 97 | | if let Some(mosalloc) = PRELOAD_ALLOC.as_mut() { [INFO] [stdout] ... | [INFO] [stdout] 102 | | } [INFO] [stdout] 103 | | } [INFO] [stdout] | |_^ [INFO] [stdout] = note: this warning originates in the macro `hook` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `allocator::Allocator::mremap` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/libmosalloc/src/preload_hooks.rs:98:13 [INFO] [stdout] | [INFO] [stdout] 98 | mosalloc.mremap(old_address as usize, old_size, new_size, flags, new_address as usize) as *mut c_void [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/libmosalloc/src/preload_hooks.rs:100:13 [INFO] [stdout] | [INFO] [stdout] 100 | real!(mremap)(old_address, old_size, new_size, flags, new_address) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of mutable static is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/libmosalloc/src/preload_hooks.rs:118:33 [INFO] [stdout] | [INFO] [stdout] 118 | if let Some(mosalloc) = PRELOAD_ALLOC.as_mut() { [INFO] [stdout] | ^^^^^^^^^^^^^ use of mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: mutable statics can be mutated by multiple threads: aliasing violations or data races will cause undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/libmosalloc/src/preload_hooks.rs:116:1 [INFO] [stdout] | [INFO] [stdout] 116 | / hook! { [INFO] [stdout] 117 | | unsafe fn brk(addr: *mut c_void) -> c_int => mosalloc_brk { [INFO] [stdout] 118 | | if let Some(mosalloc) = PRELOAD_ALLOC.as_mut() { [INFO] [stdout] 119 | | mosalloc.brk(addr as usize) [INFO] [stdout] ... | [INFO] [stdout] 123 | | } [INFO] [stdout] 124 | | } [INFO] [stdout] | |_^ [INFO] [stdout] = note: this warning originates in the macro `hook` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `allocator::Allocator::brk` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/libmosalloc/src/preload_hooks.rs:119:13 [INFO] [stdout] | [INFO] [stdout] 119 | mosalloc.brk(addr as usize) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/libmosalloc/src/preload_hooks.rs:121:13 [INFO] [stdout] | [INFO] [stdout] 121 | real!(brk)(addr) [INFO] [stdout] | ^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of mutable static is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/libmosalloc/src/preload_hooks.rs:133:33 [INFO] [stdout] | [INFO] [stdout] 133 | if let Some(mosalloc) = PRELOAD_ALLOC.as_mut() { [INFO] [stdout] | ^^^^^^^^^^^^^ use of mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: mutable statics can be mutated by multiple threads: aliasing violations or data races will cause undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/libmosalloc/src/preload_hooks.rs:131:1 [INFO] [stdout] | [INFO] [stdout] 131 | / hook! { [INFO] [stdout] 132 | | unsafe fn sbrk(incr: intptr_t) -> *mut c_void => mosalloc_sbrk { [INFO] [stdout] 133 | | if let Some(mosalloc) = PRELOAD_ALLOC.as_mut() { [INFO] [stdout] 134 | | mosalloc.sbrk(incr) as *mut c_void [INFO] [stdout] ... | [INFO] [stdout] 138 | | } [INFO] [stdout] 139 | | } [INFO] [stdout] | |_^ [INFO] [stdout] = note: this warning originates in the macro `hook` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `allocator::Allocator::sbrk` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/libmosalloc/src/preload_hooks.rs:134:13 [INFO] [stdout] | [INFO] [stdout] 134 | mosalloc.sbrk(incr) as *mut c_void [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/libmosalloc/src/preload_hooks.rs:136:13 [INFO] [stdout] | [INFO] [stdout] 136 | real!(sbrk)(incr) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of mutable static is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/libmosalloc/src/preload_hooks.rs:157:5 [INFO] [stdout] | [INFO] [stdout] 157 | __morecore = mosalloc_morecore as extern "C" fn(intptr_t) -> *mut c_void; [INFO] [stdout] | ^^^^^^^^^^ use of mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: mutable statics can be mutated by multiple threads: aliasing violations or data races will cause undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/libmosalloc/src/preload_hooks.rs:156:1 [INFO] [stdout] | [INFO] [stdout] 156 | pub unsafe fn preload_init(config: MosallocConfig) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of mutable static is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/libmosalloc/src/preload_hooks.rs:159:5 [INFO] [stdout] | [INFO] [stdout] 159 | PRELOAD_ALLOC = Some(Allocator::new(config, false)); [INFO] [stdout] | ^^^^^^^^^^^^^ use of mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: mutable statics can be mutated by multiple threads: aliasing violations or data races will cause undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `allocator::Allocator::drain` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/libmosalloc/src/preload_hooks.rs:160:5 [INFO] [stdout] | [INFO] [stdout] 160 | PRELOAD_ALLOC.as_mut().unwrap().drain(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of mutable static is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/libmosalloc/src/preload_hooks.rs:160:5 [INFO] [stdout] | [INFO] [stdout] 160 | PRELOAD_ALLOC.as_mut().unwrap().drain(); [INFO] [stdout] | ^^^^^^^^^^^^^ use of mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: mutable statics can be mutated by multiple threads: aliasing violations or data races will cause undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 previous errors; 58 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0432, E0433, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0432`. [INFO] [stdout] [INFO] [stderr] error: could not compile `mosalloc` (lib) due to 5 previous errors; 58 warnings emitted [INFO] [stderr] error: failed to migrate to next edition [INFO] [stderr] [INFO] [stderr] Caused by: [INFO] [stderr] process didn't exit successfully: `cargo fix --edition --allow-no-vcs --allow-dirty --frozen --all --all-targets --message-format=json` (exit status: 101) [INFO] running `Command { std: "docker" "inspect" "35c99b97580882b57d047b2ff91b5d02b2a19c35e3951cc4ce2bc1f8d508d2b4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "35c99b97580882b57d047b2ff91b5d02b2a19c35e3951cc4ce2bc1f8d508d2b4", kill_on_drop: false }` [INFO] [stdout] 35c99b97580882b57d047b2ff91b5d02b2a19c35e3951cc4ce2bc1f8d508d2b4