[Pkg-rust-maintainers] Bug#1114360: rust-zmq-sys: FTBFS: error: test failed, to rerun pass `--lib`
Santiago Vila
sanvila at debian.org
Fri Sep 5 19:25:46 BST 2025
Package: src:rust-zmq-sys
Version: 0.11.0-2
Severity: serious
Tags: ftbfs forky sid
Dear maintainer:
During a rebuild of all packages in unstable, your package failed to build.
Below you will find how the build ends (probably the most relevant part,
but not necessarily). If required, the full build log is available here:
https://people.debian.org/~sanvila/build-logs/202509/
About the archive rebuild: The build was made on virtual machines from AWS,
using sbuild and a reduced chroot with only build-essential packages.
If you could not reproduce the bug please contact me privately, as I
am willing to provide ssh access to a virtual machine where the bug is
fully reproducible.
If this is really a bug in one of the build-depends, please use
reassign and add an affects on src:rust-zmq-sys, so that this is still
visible in the BTS web page for this package.
Thanks.
--------------------------------------------------------------------------------
[...]
debian/rules clean
dh clean --buildsystem cargo
dh_auto_clean -O--buildsystem=cargo
debian cargo wrapper: options = ['parallel=2'], profiles = [], parallel = ['-j2'], lto =
debian cargo wrapper: rust_type = x86_64-unknown-linux-gnu, gnu_type = x86_64-linux-gnu
debian cargo wrapper: running subprocess (['env', 'RUST_BACKTRACE=1', '/usr/bin/cargo', 'clean', '--verbose', '--verbose'],) {'check': True}
Removed 0 files
dh_autoreconf_clean -O--buildsystem=cargo
dh_clean -O--buildsystem=cargo
debian/rules binary
dh binary --buildsystem cargo
dh_update_autotools_config -O--buildsystem=cargo
dh_autoreconf -O--buildsystem=cargo
dh_auto_configure -O--buildsystem=cargo
[... snipped ...]
|
help: remove these parentheses
|
41 - pub const ENOTSUP_ALT: i32 = (ZMQ_HAUSNUMERO + 1);
41 + pub const ENOTSUP_ALT: i32 = ZMQ_HAUSNUMERO + 1;
|
warning: unnecessary parentheses around assigned value
--> src/errno.rs:42:38
|
42 | pub const EPROTONOSUPPORT_ALT: i32 = (ZMQ_HAUSNUMERO + 2);
| ^ ^
|
help: remove these parentheses
|
42 - pub const EPROTONOSUPPORT_ALT: i32 = (ZMQ_HAUSNUMERO + 2);
42 + pub const EPROTONOSUPPORT_ALT: i32 = ZMQ_HAUSNUMERO + 2;
|
warning: unnecessary parentheses around assigned value
--> src/errno.rs:43:38
|
43 | pub const ENOBUFS_ALT: i32 = (ZMQ_HAUSNUMERO + 3);
| ^ ^
|
help: remove these parentheses
|
43 - pub const ENOBUFS_ALT: i32 = (ZMQ_HAUSNUMERO + 3);
43 + pub const ENOBUFS_ALT: i32 = ZMQ_HAUSNUMERO + 3;
|
warning: unnecessary parentheses around assigned value
--> src/errno.rs:44:38
|
44 | pub const ENETDOWN_ALT: i32 = (ZMQ_HAUSNUMERO + 4);
| ^ ^
|
help: remove these parentheses
|
44 - pub const ENETDOWN_ALT: i32 = (ZMQ_HAUSNUMERO + 4);
44 + pub const ENETDOWN_ALT: i32 = ZMQ_HAUSNUMERO + 4;
|
warning: unnecessary parentheses around assigned value
--> src/errno.rs:45:38
|
45 | pub const EADDRINUSE_ALT: i32 = (ZMQ_HAUSNUMERO + 5);
| ^ ^
|
help: remove these parentheses
|
45 - pub const EADDRINUSE_ALT: i32 = (ZMQ_HAUSNUMERO + 5);
45 + pub const EADDRINUSE_ALT: i32 = ZMQ_HAUSNUMERO + 5;
|
warning: unnecessary parentheses around assigned value
--> src/errno.rs:46:38
|
46 | pub const EADDRNOTAVAIL_ALT: i32 = (ZMQ_HAUSNUMERO + 6);
| ^ ^
|
help: remove these parentheses
|
46 - pub const EADDRNOTAVAIL_ALT: i32 = (ZMQ_HAUSNUMERO + 6);
46 + pub const EADDRNOTAVAIL_ALT: i32 = ZMQ_HAUSNUMERO + 6;
|
warning: unnecessary parentheses around assigned value
--> src/errno.rs:47:38
|
47 | pub const ECONNREFUSED_ALT: i32 = (ZMQ_HAUSNUMERO + 7);
| ^ ^
|
help: remove these parentheses
|
47 - pub const ECONNREFUSED_ALT: i32 = (ZMQ_HAUSNUMERO + 7);
47 + pub const ECONNREFUSED_ALT: i32 = ZMQ_HAUSNUMERO + 7;
|
warning: unnecessary parentheses around assigned value
--> src/errno.rs:48:38
|
48 | pub const EINPROGRESS_ALT: i32 = (ZMQ_HAUSNUMERO + 8);
| ^ ^
|
help: remove these parentheses
|
48 - pub const EINPROGRESS_ALT: i32 = (ZMQ_HAUSNUMERO + 8);
48 + pub const EINPROGRESS_ALT: i32 = ZMQ_HAUSNUMERO + 8;
|
warning: unnecessary parentheses around assigned value
--> src/errno.rs:49:38
|
49 | pub const ENOTSOCK_ALT: i32 = (ZMQ_HAUSNUMERO + 9);
| ^ ^
|
help: remove these parentheses
|
49 - pub const ENOTSOCK_ALT: i32 = (ZMQ_HAUSNUMERO + 9);
49 + pub const ENOTSOCK_ALT: i32 = ZMQ_HAUSNUMERO + 9;
|
warning: unnecessary parentheses around assigned value
--> src/errno.rs:50:38
|
50 | pub const EMSGSIZE_ALT: i32 = (ZMQ_HAUSNUMERO + 10);
| ^ ^
|
help: remove these parentheses
|
50 - pub const EMSGSIZE_ALT: i32 = (ZMQ_HAUSNUMERO + 10);
50 + pub const EMSGSIZE_ALT: i32 = ZMQ_HAUSNUMERO + 10;
|
warning: unnecessary parentheses around assigned value
--> src/errno.rs:51:38
|
51 | pub const EAFNOSUPPORT_ALT: i32 = (ZMQ_HAUSNUMERO + 11);
| ^ ^
|
help: remove these parentheses
|
51 - pub const EAFNOSUPPORT_ALT: i32 = (ZMQ_HAUSNUMERO + 11);
51 + pub const EAFNOSUPPORT_ALT: i32 = ZMQ_HAUSNUMERO + 11;
|
warning: unnecessary parentheses around assigned value
--> src/errno.rs:52:38
|
52 | pub const ENETUNREACH_ALT: i32 = (ZMQ_HAUSNUMERO + 12);
| ^ ^
|
help: remove these parentheses
|
52 - pub const ENETUNREACH_ALT: i32 = (ZMQ_HAUSNUMERO + 12);
52 + pub const ENETUNREACH_ALT: i32 = ZMQ_HAUSNUMERO + 12;
|
warning: unnecessary parentheses around assigned value
--> src/errno.rs:53:38
|
53 | pub const ECONNABORTED_ALT: i32 = (ZMQ_HAUSNUMERO + 13);
| ^ ^
|
help: remove these parentheses
|
53 - pub const ECONNABORTED_ALT: i32 = (ZMQ_HAUSNUMERO + 13);
53 + pub const ECONNABORTED_ALT: i32 = ZMQ_HAUSNUMERO + 13;
|
warning: unnecessary parentheses around assigned value
--> src/errno.rs:54:38
|
54 | pub const ECONNRESET_ALT: i32 = (ZMQ_HAUSNUMERO + 14);
| ^ ^
|
help: remove these parentheses
|
54 - pub const ECONNRESET_ALT: i32 = (ZMQ_HAUSNUMERO + 14);
54 + pub const ECONNRESET_ALT: i32 = ZMQ_HAUSNUMERO + 14;
|
warning: unnecessary parentheses around assigned value
--> src/errno.rs:55:38
|
55 | pub const ENOTCONN_ALT: i32 = (ZMQ_HAUSNUMERO + 15);
| ^ ^
|
help: remove these parentheses
|
55 - pub const ENOTCONN_ALT: i32 = (ZMQ_HAUSNUMERO + 15);
55 + pub const ENOTCONN_ALT: i32 = ZMQ_HAUSNUMERO + 15;
|
warning: unnecessary parentheses around assigned value
--> src/errno.rs:56:38
|
56 | pub const ETIMEDOUT_ALT: i32 = (ZMQ_HAUSNUMERO + 16);
| ^ ^
|
help: remove these parentheses
|
56 - pub const ETIMEDOUT_ALT: i32 = (ZMQ_HAUSNUMERO + 16);
56 + pub const ETIMEDOUT_ALT: i32 = ZMQ_HAUSNUMERO + 16;
|
warning: unnecessary parentheses around assigned value
--> src/errno.rs:57:38
|
57 | pub const EHOSTUNREACH_ALT: i32 = (ZMQ_HAUSNUMERO + 17);
| ^ ^
|
help: remove these parentheses
|
57 - pub const EHOSTUNREACH_ALT: i32 = (ZMQ_HAUSNUMERO + 17);
57 + pub const EHOSTUNREACH_ALT: i32 = ZMQ_HAUSNUMERO + 17;
|
warning: unnecessary parentheses around assigned value
--> src/errno.rs:58:38
|
58 | pub const ENETRESET_ALT: i32 = (ZMQ_HAUSNUMERO + 18);
| ^ ^
|
help: remove these parentheses
|
58 - pub const ENETRESET_ALT: i32 = (ZMQ_HAUSNUMERO + 18);
58 + pub const ENETRESET_ALT: i32 = ZMQ_HAUSNUMERO + 18;
|
warning: `zmq-sys` (lib) generated 22 warnings (run `cargo fix --lib -p zmq-sys` to apply 22 suggestions)
warning: dereferencing a null pointer
--> src/ffi.rs:245:19
|
245 | unsafe { &(*(::std::ptr::null::<zmq_msg_t>())).__ as *const _ as usize },
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ this code causes undefined behavior when executed
|
= note: `#[warn(deref_nullptr)]` on by default
warning: dereferencing a null pointer
--> src/ffi.rs:431:19
|
431 | unsafe { &(*(::std::ptr::null::<zmq_pollitem_t>())).socket as *const _ as usize },
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ this code causes undefined behavior when executed
warning: dereferencing a null pointer
--> src/ffi.rs:441:19
|
441 | unsafe { &(*(::std::ptr::null::<zmq_pollitem_t>())).fd as *const _ as usize },
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ this code causes undefined behavior when executed
warning: dereferencing a null pointer
--> src/ffi.rs:451:19
|
451 | unsafe { &(*(::std::ptr::null::<zmq_pollitem_t>())).events as *const _ as usize },
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ this code causes undefined behavior when executed
warning: dereferencing a null pointer
--> src/ffi.rs:461:19
|
461 | unsafe { &(*(::std::ptr::null::<zmq_pollitem_t>())).revents as *const _ as usize },
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ this code causes undefined behavior when executed
warning: `zmq-sys` (lib test) generated 27 warnings (22 duplicates)
Finished `test` profile [unoptimized + debuginfo] target(s) in 1.51s
Running `CARGO=/usr/bin/cargo CARGO_MANIFEST_DIR=/<<PKG [too-long-redacted] /deps/zmq_sys-a8c34c6fd43f799e`
running 2 tests
thread 'ffi::bindgen_test_layout_zmq_msg_t' panicked at src/ffi.rs:245:18:
null pointer dereference occurred
stack backtrace:
0: rust_begin_unwind
at /usr/src/rustc-1.86.0/library/std/src/panicking.rs:695:5
1: core::panicking::panic_nounwind_fmt::runtime
at /usr/src/rustc-1.86.0/library/core/src/panicking.rs:117:22
2: core::panicking::panic_nounwind_fmt
at /usr/src/rustc-1.86.0/library/core/src/intrinsics/mod.rs:3886:9
3: core::panicking::panic_null_pointer_dereference
at /usr/src/rustc-1.86.0/library/core/src/panicking.rs:304:5
4: zmq_sys::ffi::bindgen_test_layout_zmq_msg_t
at /usr/share/cargo/registry/zmq-sys-0.11.0/src/ffi.rs:245:18
5: zmq_sys::ffi::bindgen_test_layout_zmq_msg_t::{{closure}}
at /usr/share/cargo/registry/zmq-sys-0.11.0/src/ffi.rs:233:35
6: core::ops::function::FnOnce::call_once
at /usr/src/rustc-1.86.0/library/core/src/ops/function.rs:250:5
7: core::ops::function::FnOnce::call_once
at /usr/src/rustc-1.86.0/library/core/src/ops/function.rs:250:5
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
thread caused non-unwinding panic. aborting.
error: test failed, to rerun pass `--lib`
Caused by:
process didn't exit successfully: `CARGO=/usr/bin/cargo CA [too-long-redacted] SIGABRT: process abort signal)
dh_auto_test: error: /usr/share/cargo/bin/cargo test --all returned exit code 101
make[1]: *** [debian/rules:6: override_dh_auto_test] Error 25
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
make: *** [debian/rules:3: binary] Error 2
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2
--------------------------------------------------------------------------------
More information about the Pkg-rust-maintainers
mailing list