#1087162 rust-image-hasher: autopkgtest: crash on riscv64 only

#1087162#5
Date:
2024-11-09 10:04:23 UTC
From:
To:
Dear Maintainer,

autopkgtest is failing on riscv64 only.

The only difference between autopkgtest log and the build log is that the
autopkgtest has "nightly" feature enabled.

Strangely, this fails only on riscv64 and not on other archs.

Build command:

     Running `CARGO=/usr/bin/cargo CARGO_CRATE_NAME=image_hasher
CARGO_MANIFEST_DIR=/<<PKGBUILDDIR>> CARGO_PKG_AUTHORS='Rafał Mikrut
<mikrutrafal@protonmail.com>:Austin Bonander <austin.bonander@gmail.com>'
CARGO_PKG_DESCRIPTION='A simple library that provides perceptual hashing and
difference calculation for images.' CARGO_PKG_HOMEPAGE=''
CARGO_PKG_LICENSE='MIT OR Apache-2.0' CARGO_PKG_LICENSE_FILE=''
CARGO_PKG_NAME=image_hasher CARGO_PKG_README=README.md
CARGO_PKG_REPOSITORY='http://github.com/qarmin/img_hash'
CARGO_PKG_RUST_VERSION=1.61.0 CARGO_PKG_VERSION=1.2.0
CARGO_PKG_VERSION_MAJOR=1 CARGO_PKG_VERSION_MINOR=2 CARGO_PKG_VERSION_PATCH=0
CARGO_PKG_VERSION_PRE='' CARGO_PRIMARY_PACKAGE=1 CARGO_RUSTC_CURRENT_DIR=/
<<PKGBUILDDIR>> LD_LIBRARY_PATH=/<<PKGBUILDDIR>>/target/debug/deps rustc --
crate-name image_hasher --edition=2021 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 --check-cfg
'cfg(docsrs)' --check-cfg 'cfg(feature, values("nightly"))' -C
metadata=43a04abc39bb7ce7 -C extra-filename=-43a04abc39bb7ce7 --out-dir /
<<PKGBUILDDIR>>/target/riscv64gc-unknown-linux-gnu/debug/deps --target
riscv64gc-unknown-linux-gnu -C incremental=/<<PKGBUILDDIR>>/target/riscv64gc-
unknown-linux-gnu/debug/incremental -L dependency=/<<PKGBUILDDIR>>/target/
riscv64gc-unknown-linux-gnu/debug/deps -L dependency=/<<PKGBUILDDIR>>/target/
debug/deps --extern base64=/<<PKGBUILDDIR>>/target/riscv64gc-unknown-linux-
gnu/debug/deps/libbase64-080a6ce577e9c0a2.rmeta --extern image=/
<<PKGBUILDDIR>>/target/riscv64gc-unknown-linux-gnu/debug/deps/
libimage-1650473d5fef5352.rmeta --extern rustdct=/<<PKGBUILDDIR>>/target/
riscv64gc-unknown-linux-gnu/debug/deps/librustdct-ec877c732b5c9898.rmeta --
extern serde=/<<PKGBUILDDIR>>/target/riscv64gc-unknown-linux-gnu/debug/deps/
libserde-8ce8d31cf3c02798.rmeta --extern transpose=/<<PKGBUILDDIR>>/target/
riscv64gc-unknown-linux-gnu/debug/deps/libtranspose-fc3ec1d1b9c8f419.rmeta -C
debuginfo=2 -C strip=none --cap-lints warn -C linker=riscv64-linux-gnu-gcc -C
link-arg=-Wl,-z,relro --remap-path-prefix /<<PKGBUILDDIR>>=/usr/share/cargo/
registry/image-hasher-1.2.0 --remap-path-prefix /<<PKGBUILDDIR>>/debian/
cargo_registry=/usr/share/cargo/registry`


autopkgtest command:
  process didn't exit successfully: `CARGO=/usr/bin/cargo
CARGO_CRATE_NAME=image_hasher CARGO_MANIFEST_DIR=/usr/share/cargo/registry/
image_hasher-1.2.0 CARGO_PKG_AUTHORS='Rafał Mikrut
<mikrutrafal@protonmail.com>:Austin Bonander <austin.bonander@gmail.com>'
CARGO_PKG_DESCRIPTION='A simple library that provides perceptual hashing and
difference calculation for images.' CARGO_PKG_HOMEPAGE=''
CARGO_PKG_LICENSE='MIT OR Apache-2.0' CARGO_PKG_LICENSE_FILE=''
CARGO_PKG_NAME=image_hasher CARGO_PKG_README=README.md
CARGO_PKG_REPOSITORY='http://github.com/qarmin/img_hash'
CARGO_PKG_RUST_VERSION=1.61.0 CARGO_PKG_VERSION=1.2.0
CARGO_PKG_VERSION_MAJOR=1 CARGO_PKG_VERSION_MINOR=2 CARGO_PKG_VERSION_PATCH=0
CARGO_PKG_VERSION_PRE='' CARGO_PRIMARY_PACKAGE=1 CARGO_RUSTC_CURRENT_DIR=/usr/
share/cargo/registry/image_hasher-1.2.0 LD_LIBRARY_PATH=/tmp/tmp.4YNXSsEXGK/
target/debug/deps rustc --crate-name image_hasher --edition=2021 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="nightly"' --check-cfg 'cfg(docsrs)' --check-cfg
'cfg(feature, values("nightly"))' -C metadata=4fa3c466da9174f6 -C extra-
filename=-4fa3c466da9174f6 --out-dir /tmp/tmp.4YNXSsEXGK/target/riscv64gc-
unknown-linux-gnu/debug/deps --target riscv64gc-unknown-linux-gnu -C
incremental=/tmp/tmp.4YNXSsEXGK/target/riscv64gc-unknown-linux-gnu/debug/
incremental -L dependency=/tmp/tmp.4YNXSsEXGK/target/riscv64gc-unknown-linux-
gnu/debug/deps -L dependency=/tmp/tmp.4YNXSsEXGK/target/debug/deps --extern
base64=/tmp/tmp.4YNXSsEXGK/target/riscv64gc-unknown-linux-gnu/debug/deps/
libbase64-080a6ce577e9c0a2.rmeta --extern image=/tmp/tmp.4YNXSsEXGK/target/
riscv64gc-unknown-linux-gnu/debug/deps/libimage-1650473d5fef5352.rmeta --
extern rustdct=/tmp/tmp.4YNXSsEXGK/target/riscv64gc-unknown-linux-gnu/debug/
deps/librustdct-ad4e91fda8d188d0.rmeta --extern serde=/tmp/tmp.4YNXSsEXGK/
target/riscv64gc-unknown-linux-gnu/debug/deps/libserde-4debcaa72aa6c7d7.rmeta
--extern transpose=/tmp/tmp.4YNXSsEXGK/target/riscv64gc-unknown-linux-gnu/
debug/deps/libtranspose-fc3ec1d1b9c8f419.rmeta -C debuginfo=2 -C strip=none --
cap-lints warn -C linker=riscv64-linux-gnu-gcc -C link-arg=-Wl,-z,relro --
remap-path-prefix /usr/share/cargo/registry/image_hasher-1.2.0=/usr/share/
cargo/registry/image-hasher-1.2.0 --remap-path-prefix /tmp/tmp.4YNXSsEXGK/
registry=/usr/share/cargo/registry` (signal: 11, SIGSEGV: invalid memory
reference)

#1087162#10
Date:
2024-11-14 10:05:08 UTC
From:
To:
On Sat, 09 Nov 2024 11:04:23 +0100 Fab Stz <fabstz-it@yahoo.fr> wrote:
 > Source: rust-image-hasher
 > Version: 1.2.0-1
 > Severity: important
 >
 > Dear Maintainer,
 >
 > autopkgtest is failing on riscv64 only.
 >
 > The only difference between autopkgtest log and the build log is that the
 > autopkgtest has "nightly" feature enabled.
 >
 > Strangely, this fails only on riscv64 and not on other archs.

This is because riscv is a relatively slow arch. Since on amd64 some
tests even took too long to run I will upload a fixed version later this
week. Note that 2.0.0 started failing on i386 too:


https://ci.debian.net/packages/r/rust-image-hasher/testing/i386/54332113/#L20977


best,


werdahias

#1087162#15
Date:
2024-12-27 09:49:47 UTC
From:
To:
Le jeudi 14 novembre 2024, 11:05:08 CET Matthias Geiger a écrit :

Hi,

Thanks for the update.

Failure of tests in 2.0.0 should be fixed in the version (2.0.0-2) I pushed to
master. Could you please upload it to the archive?

BTW, could upload again the rejected package that I fixed as ftp-master's
suggestions: realfft

Regards
Fab

#1087162#20
Date:
2024-12-30 12:49:50 UTC
From:
To:
We believe that the bug you reported is fixed in the latest version of
rust-image-hasher, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 1087162@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Fab Stz <fabstz-it@yahoo.fr> (supplier of updated rust-image-hasher package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@ftp-master.debian.org)
Format: 1.8
Date: Mon, 30 Dec 2024 13:27:40 +0100
Source: rust-image-hasher
Architecture: source
Version: 2.0.0-2
Distribution: unstable
Urgency: medium
Maintainer: Debian Rust Maintainers <pkg-rust-maintainers@alioth-lists.debian.net>
Changed-By: Fab Stz <fabstz-it@yahoo.fr>
Closes: 1087162
Changes:
 rust-image-hasher (2.0.0-2) unstable; urgency=medium
 .
   * Package image_hasher 2.0.0 from crates.io using debcargo 2.7.5
   * Add upstream patch to fix overflow in median hash (Closes: #1087162)
Checksums-Sha1:
 824a1b15e1ed9aa3ded91a5c3ae19fc80891e96e 1962 rust-image-hasher_2.0.0-2.dsc
 5c57bfcfda62c7ff7a27389d14af8145d787cb37 3276 rust-image-hasher_2.0.0-2.debian.tar.xz
 1e986c88cae1d8db6008a6daf918462ef7a6a793 6732 rust-image-hasher_2.0.0-2_source.buildinfo
Checksums-Sha256:
 dcb85318a8ebe00fc60998acada0bc1d575e4f0e5cbaaf2b51fbde687e50bffd 1962 rust-image-hasher_2.0.0-2.dsc
 a04344b465d62bb5b05aecaaa66201f26b7f2791792d333f60046174241de36e 3276 rust-image-hasher_2.0.0-2.debian.tar.xz
 145866ebd9cc093162a165348c95914814a72449cad6267e67c5a30ebf6da373 6732 rust-image-hasher_2.0.0-2_source.buildinfo
Files:
 18412d74fa3d2674c40a74422a854c82 1962 rust optional rust-image-hasher_2.0.0-2.dsc
 4e33d65fc406f973ea47afd6b66f6982 3276 rust optional rust-image-hasher_2.0.0-2.debian.tar.xz
 f67d39f04d8c33e8e3874b2c805f5626 6732 rust optional rust-image-hasher_2.0.0-2_source.buildinfo
-----BEGIN PGP SIGNATURE-----

iHUEARYKAB0WIQQUWTv/Sl6/b+DpcW7svtu2B7myvgUCZ3KRyQAKCRDsvtu2B7my
vqXxAP9pFOoG8S/+1NNwOA4X5qxzJg/poQmDAvnJccLMCzM+7AEAruzshe/XqZnA
O2UqdZWAMOv0Ub1BPZegsLWSqhJzcwA=
=9gv4
-----END PGP SIGNATURE-----