[Pkg-rust-maintainers] Bug#1074717: rust-safe-transmute: FTBFS: dh_auto_test: error: /usr/share/cargo/bin/cargo test --all returned exit code 101

Lucas Nussbaum lucas at debian.org
Tue Jul 2 14:21:25 BST 2024


Source: rust-safe-transmute
Version: 0.11.2-1
Severity: serious
Justification: FTBFS
Tags: trixie sid ftbfs
User: lucas at debian.org
Usertags: ftbfs-20240702 ftbfs-trixie

Hi,

During a rebuild of all packages in sid, your package failed to build
on amd64.


Relevant part (hopefully):
> make[1]: Entering directory '/<<PKGBUILDDIR>>'
> dh_auto_test -- test --all
> debian cargo wrapper: options, profiles, parallel, lto: ['parallel=8'] [] ['-j8'] 0
> debian cargo wrapper: rust_type, gnu_type: x86_64-unknown-linux-gnu, x86_64-linux-gnu
> debian cargo wrapper: running subprocess (['env', 'RUST_BACKTRACE=1', '/usr/bin/cargo', '-Zavoid-dev-deps', 'test', '--verbose', '--verbose', '-j8', '--target', 'x86_64-unknown-linux-gnu', '--all'],) {}
>    Compiling safe-transmute v0.11.2 (/<<PKGBUILDDIR>>)
>      Running `CARGO=/usr/bin/cargo CARGO_CRATE_NAME=safe_transmute CARGO_MANIFEST_DIR=/<<PKGBUILDDIR>> CARGO_PKG_AUTHORS='наб <nabijaczleweli at gmail.com>:Eduardo Pinho <enet4mikeenet at gmail.com>:Lukas Kalbertodt <lukas.kalbertodt at gmail.com>:Philipp Tessenow <philipp at tessenow.org>:Marijn Suijten <marijn at traverseresearch.nl>' CARGO_PKG_DESCRIPTION='A safeguarded transmute() for Rust' CARGO_PKG_HOMEPAGE='' CARGO_PKG_LICENSE=MIT CARGO_PKG_LICENSE_FILE='' CARGO_PKG_NAME=safe-transmute CARGO_PKG_README=README.md CARGO_PKG_REPOSITORY='https://github.com/nabijaczleweli/safe-transmute-rs' CARGO_PKG_RUST_VERSION='' CARGO_PKG_VERSION=0.11.2 CARGO_PKG_VERSION_MAJOR=0 CARGO_PKG_VERSION_MINOR=11 CARGO_PKG_VERSION_PATCH=2 CARGO_PKG_VERSION_PRE='' CARGO_PRIMARY_PACKAGE=1 CARGO_RUSTC_CURRENT_DIR=/<<PKGBUILDDIR>> LD_LIBRARY_PATH=/<<PKGBUILDDIR>>/target/debug/deps rustc --crate-name safe_transmute --edition=2015 src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --crate-type lib --emit=dep-info,metadata,link -C embed-bitcode=no -C debuginfo=2 --cfg 'feature="alloc"' --cfg 'feature="default"' --cfg 'feature="std"' -C metadata=24a02c7634b73adf -C extra-filename=-24a02c7634b73adf --out-dir /<<PKGBUILDDIR>>/target/x86_64-unknown-linux-gnu/debug/deps --target x86_64-unknown-linux-gnu -C incremental=/<<PKGBUILDDIR>>/target/x86_64-unknown-linux-gnu/debug/incremental -L dependency=/<<PKGBUILDDIR>>/target/x86_64-unknown-linux-gnu/debug/deps -L dependency=/<<PKGBUILDDIR>>/target/debug/deps -C debuginfo=2 -C strip=none --cap-lints warn -C linker=x86_64-linux-gnu-gcc -C link-arg=-Wl,-z,relro --remap-path-prefix /<<PKGBUILDDIR>>=/usr/share/cargo/registry/safe-transmute-0.11.2 --remap-path-prefix /<<PKGBUILDDIR>>/debian/cargo_registry=/usr/share/cargo/registry`
>      Running `CARGO=/usr/bin/cargo CARGO_CRATE_NAME=safe_transmute CARGO_MANIFEST_DIR=/<<PKGBUILDDIR>> CARGO_PKG_AUTHORS='наб <nabijaczleweli at gmail.com>:Eduardo Pinho <enet4mikeenet at gmail.com>:Lukas Kalbertodt <lukas.kalbertodt at gmail.com>:Philipp Tessenow <philipp at tessenow.org>:Marijn Suijten <marijn at traverseresearch.nl>' CARGO_PKG_DESCRIPTION='A safeguarded transmute() for Rust' CARGO_PKG_HOMEPAGE='' CARGO_PKG_LICENSE=MIT CARGO_PKG_LICENSE_FILE='' CARGO_PKG_NAME=safe-transmute CARGO_PKG_README=README.md CARGO_PKG_REPOSITORY='https://github.com/nabijaczleweli/safe-transmute-rs' CARGO_PKG_RUST_VERSION='' CARGO_PKG_VERSION=0.11.2 CARGO_PKG_VERSION_MAJOR=0 CARGO_PKG_VERSION_MINOR=11 CARGO_PKG_VERSION_PATCH=2 CARGO_PKG_VERSION_PRE='' CARGO_PRIMARY_PACKAGE=1 CARGO_RUSTC_CURRENT_DIR=/<<PKGBUILDDIR>> LD_LIBRARY_PATH=/<<PKGBUILDDIR>>/target/debug/deps rustc --crate-name safe_transmute --edition=2015 src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --emit=dep-info,link -C embed-bitcode=no -C debuginfo=2 --test --cfg 'feature="alloc"' --cfg 'feature="default"' --cfg 'feature="std"' -C metadata=3adcb16fe38dd59a -C extra-filename=-3adcb16fe38dd59a --out-dir /<<PKGBUILDDIR>>/target/x86_64-unknown-linux-gnu/debug/deps --target x86_64-unknown-linux-gnu -C incremental=/<<PKGBUILDDIR>>/target/x86_64-unknown-linux-gnu/debug/incremental -L dependency=/<<PKGBUILDDIR>>/target/x86_64-unknown-linux-gnu/debug/deps -L dependency=/<<PKGBUILDDIR>>/target/debug/deps -C debuginfo=2 -C strip=none --cap-lints warn -C linker=x86_64-linux-gnu-gcc -C link-arg=-Wl,-z,relro --remap-path-prefix /<<PKGBUILDDIR>>=/usr/share/cargo/registry/safe-transmute-0.11.2 --remap-path-prefix /<<PKGBUILDDIR>>/debian/cargo_registry=/usr/share/cargo/registry`
>      Running `CARGO=/usr/bin/cargo CARGO_CRATE_NAME=lib CARGO_MANIFEST_DIR=/<<PKGBUILDDIR>> CARGO_PKG_AUTHORS='наб <nabijaczleweli at gmail.com>:Eduardo Pinho <enet4mikeenet at gmail.com>:Lukas Kalbertodt <lukas.kalbertodt at gmail.com>:Philipp Tessenow <philipp at tessenow.org>:Marijn Suijten <marijn at traverseresearch.nl>' CARGO_PKG_DESCRIPTION='A safeguarded transmute() for Rust' CARGO_PKG_HOMEPAGE='' CARGO_PKG_LICENSE=MIT CARGO_PKG_LICENSE_FILE='' CARGO_PKG_NAME=safe-transmute CARGO_PKG_README=README.md CARGO_PKG_REPOSITORY='https://github.com/nabijaczleweli/safe-transmute-rs' CARGO_PKG_RUST_VERSION='' CARGO_PKG_VERSION=0.11.2 CARGO_PKG_VERSION_MAJOR=0 CARGO_PKG_VERSION_MINOR=11 CARGO_PKG_VERSION_PATCH=2 CARGO_PKG_VERSION_PRE='' CARGO_PRIMARY_PACKAGE=1 CARGO_RUSTC_CURRENT_DIR=/<<PKGBUILDDIR>> CARGO_TARGET_TMPDIR=/<<PKGBUILDDIR>>/target/x86_64-unknown-linux-gnu/tmp LD_LIBRARY_PATH=/<<PKGBUILDDIR>>/target/debug/deps rustc --crate-name lib --edition=2015 tests/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --emit=dep-info,link -C embed-bitcode=no -C debuginfo=2 --test --cfg 'feature="alloc"' --cfg 'feature="default"' --cfg 'feature="std"' -C metadata=ffc6763360515069 -C extra-filename=-ffc6763360515069 --out-dir /<<PKGBUILDDIR>>/target/x86_64-unknown-linux-gnu/debug/deps --target x86_64-unknown-linux-gnu -C incremental=/<<PKGBUILDDIR>>/target/x86_64-unknown-linux-gnu/debug/incremental -L dependency=/<<PKGBUILDDIR>>/target/x86_64-unknown-linux-gnu/debug/deps -L dependency=/<<PKGBUILDDIR>>/target/debug/deps --extern safe_transmute=/<<PKGBUILDDIR>>/target/x86_64-unknown-linux-gnu/debug/deps/libsafe_transmute-24a02c7634b73adf.rlib -C debuginfo=2 -C strip=none --cap-lints warn -C linker=x86_64-linux-gnu-gcc -C link-arg=-Wl,-z,relro --remap-path-prefix /<<PKGBUILDDIR>>=/usr/share/cargo/registry/safe-transmute-0.11.2 --remap-path-prefix /<<PKGBUILDDIR>>/debian/cargo_registry=/usr/share/cargo/registry`
> warning: trait `LeToNative` is never used
>   --> tests/test_util/le_to_native.rs:17:7
>    |
> 17 | trait LeToNative {
>    |       ^^^^^^^^^^
>    |
>    = note: `#[warn(dead_code)]` on by default
> 
> warning: `safe-transmute` (test "lib") generated 1 warning
>     Finished `test` profile [unoptimized + debuginfo] target(s) in 2.43s
>      Running `CARGO=/usr/bin/cargo CARGO_MANIFEST_DIR=/<<PKGBUILDDIR>> CARGO_PKG_AUTHORS='наб <nabijaczleweli at gmail.com>:Eduardo Pinho <enet4mikeenet at gmail.com>:Lukas Kalbertodt <lukas.kalbertodt at gmail.com>:Philipp Tessenow <philipp at tessenow.org>:Marijn Suijten <marijn at traverseresearch.nl>' CARGO_PKG_DESCRIPTION='A safeguarded transmute() for Rust' CARGO_PKG_HOMEPAGE='' CARGO_PKG_LICENSE=MIT CARGO_PKG_LICENSE_FILE='' CARGO_PKG_NAME=safe-transmute CARGO_PKG_README=README.md CARGO_PKG_REPOSITORY='https://github.com/nabijaczleweli/safe-transmute-rs' CARGO_PKG_RUST_VERSION='' CARGO_PKG_VERSION=0.11.2 CARGO_PKG_VERSION_MAJOR=0 CARGO_PKG_VERSION_MINOR=11 CARGO_PKG_VERSION_PATCH=2 CARGO_PKG_VERSION_PRE='' LD_LIBRARY_PATH='/<<PKGBUILDDIR>>/target/x86_64-unknown-linux-gnu/debug/deps:/<<PKGBUILDDIR>>/target/x86_64-unknown-linux-gnu/debug:/usr/lib/rustlib/x86_64-unknown-linux-gnu/lib' /<<PKGBUILDDIR>>/target/x86_64-unknown-linux-gnu/debug/deps/safe_transmute-3adcb16fe38dd59a`
> 
> running 0 tests
> 
> test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
> 
>      Running `CARGO=/usr/bin/cargo CARGO_MANIFEST_DIR=/<<PKGBUILDDIR>> CARGO_PKG_AUTHORS='наб <nabijaczleweli at gmail.com>:Eduardo Pinho <enet4mikeenet at gmail.com>:Lukas Kalbertodt <lukas.kalbertodt at gmail.com>:Philipp Tessenow <philipp at tessenow.org>:Marijn Suijten <marijn at traverseresearch.nl>' CARGO_PKG_DESCRIPTION='A safeguarded transmute() for Rust' CARGO_PKG_HOMEPAGE='' CARGO_PKG_LICENSE=MIT CARGO_PKG_LICENSE_FILE='' CARGO_PKG_NAME=safe-transmute CARGO_PKG_README=README.md CARGO_PKG_REPOSITORY='https://github.com/nabijaczleweli/safe-transmute-rs' CARGO_PKG_RUST_VERSION='' CARGO_PKG_VERSION=0.11.2 CARGO_PKG_VERSION_MAJOR=0 CARGO_PKG_VERSION_MINOR=11 CARGO_PKG_VERSION_PATCH=2 CARGO_PKG_VERSION_PRE='' LD_LIBRARY_PATH='/<<PKGBUILDDIR>>/target/x86_64-unknown-linux-gnu/debug/deps:/<<PKGBUILDDIR>>/target/x86_64-unknown-linux-gnu/debug:/usr/lib/rustlib/x86_64-unknown-linux-gnu/lib' /<<PKGBUILDDIR>>/target/x86_64-unknown-linux-gnu/debug/deps/lib-ffc6763360515069`
> 
> running 60 tests
> test base::from_bytes::too_much ... ok
> test base::from_bytes::too_short ... ok
> test base::from_bytes_pedantic::just_enough ... ok
> test base::from_bytes_pedantic::too_much ... ok
> test base::from_bytes_pedantic::too_short ... ok
> test base::transmute_many::just_enough_mut ... ok
> test base::transmute_many::too_much ... ok
> test base::transmute_many::too_much_mut ... ok
> test base::from_bytes::just_enough ... ok
> test base::transmute_many::too_short ... ok
> test base::transmute_many::just_enough ... ok
> test base::transmute_many_permissive::just_enough ... ok
> test base::transmute_many_pedantic::just_enough ... ok
> test base::transmute_many::too_short_mut ... ok
> test base::transmute_many_permissive::too_much ... ok
> test base::transmute_many_pedantic::too_short ... ok
> test base::transmute_many_pedantic::too_much ... ok
> test base::transmute_many_permissive::too_short ... ok
> test bool::pedantic::invalid_bytes ... ok
> test base::transmute_vec ... ok
> test bool::pedantic::just_enough ... ok
> test bool::pedantic::too_short ... ok
> test bool::permissive::invalid_bytes ... ok
> test bool::permissive::just_enough ... ok
> test bool::permissive::too_short ... ok
> test bool::vec_pedantic::invalid_bytes ... ok
> test bool::vec_pedantic::just_enough ... ok
> test bool::vec_permissive::invalid_bytes ... ok
> test bool::vec_permissive::too_short ... ok
> test bool::vec_permissive::just_enough ... ok
> test error::unaligned::unaligned_slicing_integers ... ok
> test full::many::too_much ... ok
> test bool::vec_pedantic::too_short ... ok
> test full::many::just_enough ... ok
> test full::many_permissive::just_enough ... ok
> test full::many_pedantic::just_enough ... ok
> test full::many_pedantic::too_short ... ok
> test full::many_pedantic::too_much ... ok
> test full::many_permissive::too_much ... ok
> test full::many::too_short ... ok
> test full::many_permissive::too_short ... ok
> test full::one::just_enough ... ok
> test full::one::too_much ... ok
> test full::one::too_short ... ok
> test full::one_pedantic::just_enough ... ok
> test full::one_pedantic::too_much ... ok
> test full::one_pedantic::too_short ... ok
> test full::vec::bad_alignment ... ok
> test full::vec::just_enough ... ok
> test guard::zero_sized::all_or_nothing_guard ... ok
> test guard::zero_sized::pedantic_guard ... ok
> test guard::zero_sized::permissive_guard ... ok
> test guard::zero_sized::single_value_guard ... ok
> test util::designalise_f64 ... ok
> test util::smoke_check_alignment_from_4 ... ok
> test util::smoke_check_alignment_from_8 ... ok
> test util::test_aligned_vec ... ok
> test guard::zero_sized::single_many_guard ... ok
> test full::vec::bad_size ... ok
> test util::designalise_f32 ... ok
> 
> test result: ok. 60 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.01s
> 
>    Doc-tests safe_transmute
>      Running `CARGO=/usr/bin/cargo CARGO_CRATE_NAME=safe_transmute CARGO_MANIFEST_DIR=/<<PKGBUILDDIR>> CARGO_PKG_AUTHORS='наб <nabijaczleweli at gmail.com>:Eduardo Pinho <enet4mikeenet at gmail.com>:Lukas Kalbertodt <lukas.kalbertodt at gmail.com>:Philipp Tessenow <philipp at tessenow.org>:Marijn Suijten <marijn at traverseresearch.nl>' CARGO_PKG_DESCRIPTION='A safeguarded transmute() for Rust' CARGO_PKG_HOMEPAGE='' CARGO_PKG_LICENSE=MIT CARGO_PKG_LICENSE_FILE='' CARGO_PKG_NAME=safe-transmute CARGO_PKG_README=README.md CARGO_PKG_REPOSITORY='https://github.com/nabijaczleweli/safe-transmute-rs' CARGO_PKG_RUST_VERSION='' CARGO_PKG_VERSION=0.11.2 CARGO_PKG_VERSION_MAJOR=0 CARGO_PKG_VERSION_MINOR=11 CARGO_PKG_VERSION_PATCH=2 CARGO_PKG_VERSION_PRE='' LD_LIBRARY_PATH=/<<PKGBUILDDIR>>/target/debug/deps rustdoc --edition=2015 --crate-type lib --crate-name safe_transmute --test src/lib.rs --test-run-directory /<<PKGBUILDDIR>> --target x86_64-unknown-linux-gnu -L dependency=/<<PKGBUILDDIR>>/target/x86_64-unknown-linux-gnu/debug/deps -L dependency=/<<PKGBUILDDIR>>/target/debug/deps --extern safe_transmute=/<<PKGBUILDDIR>>/target/x86_64-unknown-linux-gnu/debug/deps/libsafe_transmute-24a02c7634b73adf.rlib -C embed-bitcode=no --cfg 'feature="alloc"' --cfg 'feature="default"' --cfg 'feature="std"' --error-format human`
> 
> running 59 tests
> test src/bool.rs - bool::transmute_bool_pedantic (line 90) ... ok
> test src/bool.rs - bool::bytes_are_bool (line 30) ... ok
> test src/base.rs - base::from_bytes_pedantic (line 77) ... FAILED
> test src/base.rs - base::from_bytes (line 38) ... FAILED
> test src/base.rs - base::transmute_many_mut (line 166) ... ok
> test src/base.rs - base::transmute_vec (line 249) ... ok
> test src/base.rs - base::transmute_many (line 121) ... FAILED
> test src/base.rs - base::transmute_many_permissive (line 208) ... FAILED
> test src/bool.rs - bool::transmute_bool_permissive (line 70) ... ok
> test src/error.rs - error::GuardError (line 153) ... ok
> test src/bool.rs - bool::transmute_bool_vec_pedantic (line 138) ... ok
> test src/bool.rs - bool::transmute_bool_vec_permissive (line 110) ... ok
> test src/full.rs - full::transmute_many (line 101) ... ok
> test src/error.rs - error::Error (line 24) ... ok
> test src/full.rs - full::transmute_many_pedantic (line 156) ... ok
> test src/full.rs - full::transmute_many_mut (line 184) ... ok
> test src/full.rs - full::transmute_many_pedantic_mut (line 240) ... ok
> test src/full.rs - full::transmute_many_permissive (line 129) ... ok
> test src/full.rs - full::transmute_many_permissive_mut (line 213) ... ok
> test src/full.rs - full::transmute_one (line 41) ... ok
> test src/full.rs - full::transmute_one_pedantic (line 72) ... ok
> test src/full.rs - full::transmute_vec (line 275) ... ok
> test src/guard.rs - guard (line 23) ... ok
> test src/guard.rs - guard (line 35) ... ok
> test src/guard.rs - guard (line 47) ... ok
> test src/guard.rs - guard (line 8) ... ok
> test src/lib.rs - (line 101) ... ok
> test src/lib.rs - (line 125) ... ok
> test src/lib.rs - (line 142) ... ok
> test src/lib.rs - (line 50) ... ok
> test src/lib.rs - (line 82) ... ok
> test src/migration/v0_11.rs - migration::v0_11 (line 107) ... ok
> test src/migration/v0_11.rs - migration::v0_11 (line 45) ... ok
> test src/migration/v0_11.rs - migration::v0_11 (line 82) ... ok
> test src/to_bytes.rs - to_bytes::transmute_one_to_bytes (line 238) ... ok
> test src/to_bytes.rs - to_bytes::transmute_one_to_bytes (line 253) ... ok
> test src/to_bytes.rs - to_bytes::transmute_one_to_bytes_mut (line 280) ... ok
> test src/to_bytes.rs - to_bytes::transmute_one_to_bytes_mut (line 295) ... ok
> test src/to_bytes.rs - to_bytes::transmute_to_bytes (line 331) ... ok
> test src/to_bytes.rs - to_bytes::transmute_to_bytes (line 346) ... ok
> test src/to_bytes.rs - to_bytes::transmute_to_bytes_many_unchecked (line 121) ... ok
> test src/to_bytes.rs - to_bytes::transmute_to_bytes_many_unchecked (line 138) ... ok
> test src/to_bytes.rs - to_bytes::transmute_to_bytes_many_unchecked_mut (line 175) ... ok
> test src/to_bytes.rs - to_bytes::transmute_to_bytes_mut (line 375) ... ok
> test src/to_bytes.rs - to_bytes::transmute_to_bytes_many_unchecked_mut (line 192) ... ok
> test src/to_bytes.rs - to_bytes::transmute_to_bytes_unchecked (line 19) ... ok
> test src/to_bytes.rs - to_bytes::transmute_to_bytes_unchecked (line 36) ... ok
> test src/to_bytes.rs - to_bytes::transmute_to_bytes_unchecked_mut (line 69) ... ok
> test src/to_bytes.rs - to_bytes::transmute_to_bytes_vec (line 432) ... ok
> test src/to_bytes.rs - to_bytes::transmute_to_bytes_unchecked_mut (line 86) ... ok
> test src/trivial.rs - trivial::align_to (line 123) ... ok
> test src/trivial.rs - trivial::align_to_mut (line 148) ... ok
> test src/trivial.rs - trivial::transmute_trivial (line 182) ... FAILED
> test src/trivial.rs - trivial::transmute_trivial_many (line 255) ... FAILED
> test src/trivial.rs - trivial::transmute_trivial_many_mut (line 292) ... FAILED
> test src/trivial.rs - trivial::transmute_trivial_pedantic (line 220) ... FAILED
> test src/trivial.rs - trivial::transmute_trivial_vec (line 347) ... ok
> test src/util.rs - util::try_copy (line 20) ... ok
> test src/util.rs - util::try_copy_unchecked (line 60) ... ok
> 
> failures:
> 
> ---- src/base.rs - base::from_bytes_pedantic (line 77) stdout ----
> Test executable failed (signal: 6 (SIGABRT)).
> 
> stderr:
> thread 'main' panicked at library/core/src/panicking.rs:220:5:
> unsafe precondition(s) violated: slice::from_raw_parts requires the pointer to be aligned and non-null, and the total size of the slice not to exceed `isize::MAX`
> stack backtrace:
>    0: rust_begin_unwind
>              at /usr/src/rustc-1.79.0/library/std/src/panicking.rs:652:5
>    1: core::panicking::panic_nounwind_fmt::runtime
>              at /usr/src/rustc-1.79.0/library/core/src/panicking.rs:110:18
>    2: core::panicking::panic_nounwind_fmt
>              at /usr/src/rustc-1.79.0/library/core/src/panicking.rs:120:5
>    3: core::panicking::panic_nounwind
>              at /usr/src/rustc-1.79.0/library/core/src/panicking.rs:220:5
>    4: core::slice::raw::from_raw_parts::precondition_check
>    5: core::slice::raw::from_raw_parts
>    6: safe_transmute::base::from_bytes_pedantic
>    7: rust_out::main
>    8: core::ops::function::FnOnce::call_once
> note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
> thread caused non-unwinding panic. aborting.
> 
> 
> ---- src/base.rs - base::from_bytes (line 38) stdout ----
> Test executable failed (signal: 6 (SIGABRT)).
> 
> stderr:
> thread 'main' panicked at library/core/src/panicking.rs:220:5:
> unsafe precondition(s) violated: slice::from_raw_parts requires the pointer to be aligned and non-null, and the total size of the slice not to exceed `isize::MAX`
> stack backtrace:
>    0: rust_begin_unwind
>              at /usr/src/rustc-1.79.0/library/std/src/panicking.rs:652:5
>    1: core::panicking::panic_nounwind_fmt::runtime
>              at /usr/src/rustc-1.79.0/library/core/src/panicking.rs:110:18
>    2: core::panicking::panic_nounwind_fmt
>              at /usr/src/rustc-1.79.0/library/core/src/panicking.rs:120:5
>    3: core::panicking::panic_nounwind
>              at /usr/src/rustc-1.79.0/library/core/src/panicking.rs:220:5
>    4: core::slice::raw::from_raw_parts::precondition_check
>    5: core::slice::raw::from_raw_parts
>    6: safe_transmute::base::from_bytes
>    7: rust_out::main
>    8: core::ops::function::FnOnce::call_once
> note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
> thread caused non-unwinding panic. aborting.
> 
> 
> ---- src/base.rs - base::transmute_many (line 121) stdout ----
> Test executable failed (signal: 6 (SIGABRT)).
> 
> stderr:
> thread 'main' panicked at library/core/src/panicking.rs:220:5:
> unsafe precondition(s) violated: slice::from_raw_parts requires the pointer to be aligned and non-null, and the total size of the slice not to exceed `isize::MAX`
> stack backtrace:
>    0: rust_begin_unwind
>              at /usr/src/rustc-1.79.0/library/std/src/panicking.rs:652:5
>    1: core::panicking::panic_nounwind_fmt::runtime
>              at /usr/src/rustc-1.79.0/library/core/src/panicking.rs:110:18
>    2: core::panicking::panic_nounwind_fmt
>              at /usr/src/rustc-1.79.0/library/core/src/panicking.rs:120:5
>    3: core::panicking::panic_nounwind
>              at /usr/src/rustc-1.79.0/library/core/src/panicking.rs:220:5
>    4: core::slice::raw::from_raw_parts::precondition_check
>    5: core::slice::raw::from_raw_parts
>    6: safe_transmute::base::transmute_many
>    7: rust_out::main
>    8: core::ops::function::FnOnce::call_once
> note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
> thread caused non-unwinding panic. aborting.
> 
> 
> ---- src/base.rs - base::transmute_many_permissive (line 208) stdout ----
> Test executable failed (signal: 6 (SIGABRT)).
> 
> stderr:
> thread 'main' panicked at library/core/src/panicking.rs:220:5:
> unsafe precondition(s) violated: slice::from_raw_parts requires the pointer to be aligned and non-null, and the total size of the slice not to exceed `isize::MAX`
> stack backtrace:
>    0: rust_begin_unwind
>              at /usr/src/rustc-1.79.0/library/std/src/panicking.rs:652:5
>    1: core::panicking::panic_nounwind_fmt::runtime
>              at /usr/src/rustc-1.79.0/library/core/src/panicking.rs:110:18
>    2: core::panicking::panic_nounwind_fmt
>              at /usr/src/rustc-1.79.0/library/core/src/panicking.rs:120:5
>    3: core::panicking::panic_nounwind
>              at /usr/src/rustc-1.79.0/library/core/src/panicking.rs:220:5
>    4: core::slice::raw::from_raw_parts::precondition_check
>    5: core::slice::raw::from_raw_parts
>    6: safe_transmute::base::transmute_many
>    7: safe_transmute::base::transmute_many_permissive
>    8: rust_out::main
>    9: core::ops::function::FnOnce::call_once
> note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
> thread caused non-unwinding panic. aborting.
> 
> 
> ---- src/trivial.rs - trivial::transmute_trivial (line 182) stdout ----
> Test executable failed (signal: 6 (SIGABRT)).
> 
> stderr:
> thread 'main' panicked at library/core/src/panicking.rs:220:5:
> unsafe precondition(s) violated: slice::from_raw_parts requires the pointer to be aligned and non-null, and the total size of the slice not to exceed `isize::MAX`
> stack backtrace:
>    0: rust_begin_unwind
>              at /usr/src/rustc-1.79.0/library/std/src/panicking.rs:652:5
>    1: core::panicking::panic_nounwind_fmt::runtime
>              at /usr/src/rustc-1.79.0/library/core/src/panicking.rs:110:18
>    2: core::panicking::panic_nounwind_fmt
>              at /usr/src/rustc-1.79.0/library/core/src/panicking.rs:120:5
>    3: core::panicking::panic_nounwind
>              at /usr/src/rustc-1.79.0/library/core/src/panicking.rs:220:5
>    4: core::slice::raw::from_raw_parts::precondition_check
>    5: core::slice::raw::from_raw_parts
>    6: safe_transmute::base::from_bytes
>    7: safe_transmute::trivial::transmute_trivial
>    8: rust_out::main
>    9: core::ops::function::FnOnce::call_once
> note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
> thread caused non-unwinding panic. aborting.
> 
> 
> ---- src/trivial.rs - trivial::transmute_trivial_many (line 255) stdout ----
> Test executable failed (signal: 6 (SIGABRT)).
> 
> stderr:
> thread 'main' panicked at library/core/src/panicking.rs:220:5:
> unsafe precondition(s) violated: slice::from_raw_parts requires the pointer to be aligned and non-null, and the total size of the slice not to exceed `isize::MAX`
> stack backtrace:
>    0: rust_begin_unwind
>              at /usr/src/rustc-1.79.0/library/std/src/panicking.rs:652:5
>    1: core::panicking::panic_nounwind_fmt::runtime
>              at /usr/src/rustc-1.79.0/library/core/src/panicking.rs:110:18
>    2: core::panicking::panic_nounwind_fmt
>              at /usr/src/rustc-1.79.0/library/core/src/panicking.rs:120:5
>    3: core::panicking::panic_nounwind
>              at /usr/src/rustc-1.79.0/library/core/src/panicking.rs:220:5
>    4: core::slice::raw::from_raw_parts::precondition_check
>    5: core::slice::raw::from_raw_parts
>    6: safe_transmute::base::transmute_many
>    7: safe_transmute::trivial::transmute_trivial_many
>    8: rust_out::main
>    9: core::ops::function::FnOnce::call_once
> note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
> thread caused non-unwinding panic. aborting.
> 
> 
> ---- src/trivial.rs - trivial::transmute_trivial_many_mut (line 292) stdout ----
> Test executable failed (signal: 6 (SIGABRT)).
> 
> stderr:
> thread 'main' panicked at library/core/src/panicking.rs:220:5:
> unsafe precondition(s) violated: slice::from_raw_parts requires the pointer to be aligned and non-null, and the total size of the slice not to exceed `isize::MAX`
> stack backtrace:
>    0: rust_begin_unwind
>              at /usr/src/rustc-1.79.0/library/std/src/panicking.rs:652:5
>    1: core::panicking::panic_nounwind_fmt::runtime
>              at /usr/src/rustc-1.79.0/library/core/src/panicking.rs:110:18
>    2: core::panicking::panic_nounwind_fmt
>              at /usr/src/rustc-1.79.0/library/core/src/panicking.rs:120:5
>    3: core::panicking::panic_nounwind
>              at /usr/src/rustc-1.79.0/library/core/src/panicking.rs:220:5
>    4: core::slice::raw::from_raw_parts::precondition_check
>    5: core::slice::raw::from_raw_parts
>    6: safe_transmute::base::transmute_many
>    7: safe_transmute::trivial::transmute_trivial_many
>    8: rust_out::main
>    9: core::ops::function::FnOnce::call_once
> note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
> thread caused non-unwinding panic. aborting.
> 
> 
> ---- src/trivial.rs - trivial::transmute_trivial_pedantic (line 220) stdout ----
> Test executable failed (signal: 6 (SIGABRT)).
> 
> stderr:
> thread 'main' panicked at library/core/src/panicking.rs:220:5:
> unsafe precondition(s) violated: slice::from_raw_parts requires the pointer to be aligned and non-null, and the total size of the slice not to exceed `isize::MAX`
> stack backtrace:
>    0: rust_begin_unwind
>              at /usr/src/rustc-1.79.0/library/std/src/panicking.rs:652:5
>    1: core::panicking::panic_nounwind_fmt::runtime
>              at /usr/src/rustc-1.79.0/library/core/src/panicking.rs:110:18
>    2: core::panicking::panic_nounwind_fmt
>              at /usr/src/rustc-1.79.0/library/core/src/panicking.rs:120:5
>    3: core::panicking::panic_nounwind
>              at /usr/src/rustc-1.79.0/library/core/src/panicking.rs:220:5
>    4: core::slice::raw::from_raw_parts::precondition_check
>    5: core::slice::raw::from_raw_parts
>    6: safe_transmute::base::from_bytes
>    7: safe_transmute::trivial::transmute_trivial_pedantic
>    8: rust_out::main
>    9: core::ops::function::FnOnce::call_once
> note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
> thread caused non-unwinding panic. aborting.
> 
> 
> 
> failures:
>     src/base.rs - base::from_bytes (line 38)
>     src/base.rs - base::from_bytes_pedantic (line 77)
>     src/base.rs - base::transmute_many (line 121)
>     src/base.rs - base::transmute_many_permissive (line 208)
>     src/trivial.rs - trivial::transmute_trivial (line 182)
>     src/trivial.rs - trivial::transmute_trivial_many (line 255)
>     src/trivial.rs - trivial::transmute_trivial_many_mut (line 292)
>     src/trivial.rs - trivial::transmute_trivial_pedantic (line 220)
> 
> test result: FAILED. 51 passed; 8 failed; 0 ignored; 0 measured; 0 filtered out; finished in 3.97s
> 
> error: doctest failed, to rerun pass `--doc`
> dh_auto_test: error: /usr/share/cargo/bin/cargo test --all returned exit code 101


The full build log is available from:
http://qa-logs.debian.net/2024/07/02/rust-safe-transmute_0.11.2-1_unstable.log

All bugs filed during this archive rebuild are listed at:
https://bugs.debian.org/cgi-bin/pkgreport.cgi?tag=ftbfs-20240702;users=lucas@debian.org
or:
https://udd.debian.org/bugs/?release=na&merged=ign&fnewerval=7&flastmodval=7&fusertag=only&fusertagtag=ftbfs-20240702&fusertaguser=lucas@debian.org&allbugs=1&cseverity=1&ctags=1&caffected=1#results

A list of current common problems and possible solutions is available at
http://wiki.debian.org/qa.debian.org/FTBFS . You're welcome to contribute!

If you reassign this bug to another package, please mark it as 'affects'-ing
this package. See https://www.debian.org/Bugs/server-control#affects

If you fail to reproduce this, please provide a build log and diff it with mine
so that we can identify if something relevant changed in the meantime.



More information about the Pkg-rust-maintainers mailing list