Skip to content

memory allocation failure during test on 32-bit debian CI #16

@dkg

Description

@dkg

debian continuous integration for xxhash-rust shows failures for the three 32-bit architectures covered: i386 armel and armhf, all for xxhash-rust version 0.8.5. (64-bit platforms don't seem to have a problem).

All the errors on 32-bit platforms appear to be the same, if i'm reading the logs correctly: when the xxh3 test is enabled (or in the --all-targets --all-features test, named rust-xxhash-rust:@, which also has xxh3 enabled), there's a memory allocation failure. From the i386 test logs:

    Running `CARGO=/usr/bin/cargo CARGO_CRATE_NAME=xxhash_rust CARGO_MANIFEST_DIR=/usr/share/cargo/registry/xxhash-rust-0.8.5 CARGO_PKG_AUTHORS='Douman <[email protected]>' CARGO_PKG_DESCRIPTION='Implementation of xxhash' CARGO_PKG_HOMEPAGE='' CARGO_PKG_LICENSE=BSL-1.0 CARGO_PKG_LICENSE_FILE='' CARGO_PKG_NAME=xxhash-rust CARGO_PKG_REPOSITORY='https://github.com/DoumanAsh/xxhash-rust' CARGO_PKG_VERSION=0.8.5 CARGO_PKG_VERSION_MAJOR=0 CARGO_PKG_VERSION_MINOR=8 CARGO_PKG_VERSION_PATCH=5 CARGO_PKG_VERSION_PRE='' CARGO_PRIMARY_PACKAGE=1 LD_LIBRARY_PATH='/tmp/tmp.CxqByNHB3a/target/debug/deps:/usr/lib' rustc --crate-name xxhash_rust --edition=2018 src/lib.rs --error-format=json --json=diagnostic-rendered-ansi --emit=dep-info,link -C embed-bitcode=no -C debuginfo=2 --test --cfg 'feature="xxh3"' -C metadata=ee812a8640e9d0d0 -C extra-filename=-ee812a8640e9d0d0 --out-dir /tmp/tmp.CxqByNHB3a/target/i686-unknown-linux-gnu/debug/deps --target i686-unknown-linux-gnu -C incremental=/tmp/tmp.CxqByNHB3a/target/i686-unknown-linux-gnu/debug/incremental -L dependency=/tmp/tmp.CxqByNHB3a/target/i686-unknown-linux-gnu/debug/deps -L dependency=/tmp/tmp.CxqByNHB3a/target/debug/deps --extern getrandom=/tmp/tmp.CxqByNHB3a/target/i686-unknown-linux-gnu/debug/deps/libgetrandom-322ba22e80140a7b.rlib --extern xxhash_c_sys=/tmp/tmp.CxqByNHB3a/target/i686-unknown-linux-gnu/debug/deps/libxxhash_c_sys-9cb2dbdfa5d3f6f6.rlib -C debuginfo=2 --cap-lints warn -C linker=i686-linux-gnu-gcc -C link-arg=-Wl,-z,relro --remap-path-prefix /usr/share/cargo/registry/xxhash-rust-0.8.5=/usr/share/cargo/registry/xxhash-rust-0.8.5 -L native=/usr/lib/i386-linux-gnu`
memory allocation of 39344 bytes failed
error: could not compile `xxhash-rust`

Caused by:
  process didn't exit successfully: `CARGO=/usr/bin/cargo CARGO_CRATE_NAME=test_vectors CARGO_MANIFEST_DIR=/usr/share/cargo/registry/xxhash-rust-0.8.5 CARGO_PKG_AUTHORS='Douman <[email protected]>' CARGO_PKG_DESCRIPTION='Implementation of xxhash' CARGO_PKG_HOMEPAGE='' CARGO_PKG_LICENSE=BSL-1.0 CARGO_PKG_LICENSE_FILE='' CARGO_PKG_NAME=xxhash-rust CARGO_PKG_REPOSITORY='https://github.com/DoumanAsh/xxhash-rust' CARGO_PKG_VERSION=0.8.5 CARGO_PKG_VERSION_MAJOR=0 CARGO_PKG_VERSION_MINOR=8 CARGO_PKG_VERSION_PATCH=5 CARGO_PKG_VERSION_PRE='' CARGO_PRIMARY_PACKAGE=1 CARGO_TARGET_TMPDIR=/tmp/tmp.CxqByNHB3a/target/i686-unknown-linux-gnu/tmp LD_LIBRARY_PATH='/tmp/tmp.CxqByNHB3a/target/debug/deps:/usr/lib' rustc --crate-name test_vectors --edition=2018 tests/test-vectors.rs --error-format=json --json=diagnostic-rendered-ansi --emit=dep-info,link -C embed-bitcode=no -C debuginfo=2 --test --cfg 'feature="xxh3"' -C metadata=e84fb12084e50348 -C extra-filename=-e84fb12084e50348 --out-dir /tmp/tmp.CxqByNHB3a/target/i686-unknown-linux-gnu/debug/deps --target i686-unknown-linux-gnu -C incremental=/tmp/tmp.CxqByNHB3a/target/i686-unknown-linux-gnu/debug/incremental -L dependency=/tmp/tmp.CxqByNHB3a/target/i686-unknown-linux-gnu/debug/deps -L dependency=/tmp/tmp.CxqByNHB3a/target/debug/deps --extern getrandom=/tmp/tmp.CxqByNHB3a/target/i686-unknown-linux-gnu/debug/deps/libgetrandom-322ba22e80140a7b.rlib --extern xxhash_c_sys=/tmp/tmp.CxqByNHB3a/target/i686-unknown-linux-gnu/debug/deps/libxxhash_c_sys-9cb2dbdfa5d3f6f6.rlib --extern xxhash_rust=/tmp/tmp.CxqByNHB3a/target/i686-unknown-linux-gnu/debug/deps/libxxhash_rust-35df15a22e0c4ab4.rlib -C debuginfo=2 --cap-lints warn -C linker=i686-linux-gnu-gcc -C link-arg=-Wl,-z,relro --remap-path-prefix /usr/share/cargo/registry/xxhash-rust-0.8.5=/usr/share/cargo/registry/xxhash-rust-0.8.5 -L native=/usr/lib/i386-linux-gnu` (signal: 6, SIGABRT: process abort signal)
autopkgtest [07:29:05]: test librust-xxhash-rust-dev:xxh3: -----------------------]
autopkgtest [07:29:05]: test librust-xxhash-rust-dev:xxh3:  - - - - - - - - - - results - - - - - - - - - -
librust-xxhash-rust-dev:xxh3 FAIL non-zero exit status 101

I'm happy to try to patch the package to gain more debugging information, if that would be useful, or to execute reasonable-looking commands in a test environment. Do you have suggestions on what I should be looking for? If you're running tests upstream on 32-bit platforms that include this feature, can you point me to recent updates, so i can review the differences?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions