[Pkg-rust-maintainers] Bug#1114359: rust-libsensors-sys: FTBFS: error: test failed, to rerun pass `--lib`
Santiago Vila
sanvila at debian.org
Fri Sep 5 19:25:42 BST 2025
Package: src:rust-libsensors-sys
Version: 0.2.0-1
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-libsensors-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
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: linking /usr/share/cargo/registry/* into /<<PKGBUILDDIR>>/debian/cargo_registry/
dh_auto_build -O--buildsystem=cargo
debian/rules override_dh_auto_test
make[1]: Entering directory '/<<PKGBUILDDIR>>'
dh_auto_test -- test --all
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', '-Zavoid-dev-deps', 'test', '--verbose', '--verbose', '-j2', '--target', 'x86_64-unknown-linux-gnu', '--all'],) {}
warning: no edition set: defaulting to the 2015 edition while the latest is 2024
Compiling libsensors-sys v0.2.0 (/<<PKGBUILDDIR>>)
Running `CARGO=/usr/bin/cargo CARGO_CRATE_NAME=build_sc [too-long-redacted] KGBUILDDIR>>/target/debug/deps`
Running `CARGO=/usr/bin/cargo CARGO_CFG_FEATURE='' CARG [too-long-redacted] 1acf8d3614c/build-script-build`
[libsensors-sys 0.2.0] cargo:rustc-link-lib=dylib=sensors
Running `CARGO=/usr/bin/cargo CARGO_CRATE_NAME=libsenso [too-long-redacted] argo/registry -l dylib=sensors`
Running `CARGO=/usr/bin/cargo CARGO_CRATE_NAME=libsenso [too-long-redacted] argo/registry -l dylib=sensors`
warning: dereferencing a null pointer
--> src/sensors.rs:42:19
|
42 | unsafe { &(*(::std::ptr::null::<_IO_marker>()))._next as *const _ as usize },
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ this code causes undefined behavior when executed
|
= note: `#[warn(deref_nullptr)]` on by default
warning: dereferencing a null pointer
--> src/sensors.rs:52:19
|
52 | unsafe { &(*(::std::ptr::null::<_IO_marker>()))._sbuf as *const _ as usize },
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ this code causes undefined behavior when executed
warning: dereferencing a null pointer
--> src/sensors.rs:62:19
|
62 | unsafe { &(*(::std::ptr::null::<_IO_marker>()))._pos as *const _ as usize },
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ this code causes undefined behavior when executed
warning: dereferencing a null pointer
--> src/sensors.rs:118:19
|
118 | unsafe { &(*(::std::ptr::null::<_IO_FILE>()))._flags as *const _ as usize },
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ this code causes undefined behavior when executed
warning: dereferencing a null pointer
--> src/sensors.rs:128:19
|
128 | unsafe { &(*(::std::ptr::null::<_IO_FILE>()))._IO_read_ptr as *const _ as usize },
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ this code causes undefined behavior when executed
warning: dereferencing a null pointer
--> src/sensors.rs:138:19
|
138 | unsafe { &(*(::std::ptr::null::<_IO_FILE>()))._IO_read_end as *const _ as usize },
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ this code causes undefined behavior when executed
warning: dereferencing a null pointer
--> src/sensors.rs:148:19
|
148 | unsafe { &(*(::std::ptr::null::<_IO_FILE>()))._IO_read_base as *const _ as usize },
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ this code causes undefined behavior when executed
warning: dereferencing a null pointer
--> src/sensors.rs:158:19
|
158 | unsafe { &(*(::std::ptr::null::<_IO_FILE>()))._IO_write_base as *const _ as usize },
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ this code causes undefined behavior when executed
warning: dereferencing a null pointer
--> src/sensors.rs:168:19
|
168 | unsafe { &(*(::std::ptr::null::<_IO_FILE>()))._IO_write_ptr as *const _ as usize },
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ this code causes undefined behavior when executed
warning: dereferencing a null pointer
--> src/sensors.rs:178:19
|
178 | unsafe { &(*(::std::ptr::null::<_IO_FILE>()))._IO_write_end as *const _ as usize },
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ this code causes undefined behavior when executed
warning: dereferencing a null pointer
--> src/sensors.rs:188:19
|
188 | unsafe { &(*(::std::ptr::null::<_IO_FILE>()))._IO_buf_base as *const _ as usize },
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ this code causes undefined behavior when executed
warning: dereferencing a null pointer
--> src/sensors.rs:198:19
|
198 | unsafe { &(*(::std::ptr::null::<_IO_FILE>()))._IO_buf_end as *const _ as usize },
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ this code causes undefined behavior when executed
warning: dereferencing a null pointer
--> src/sensors.rs:208:19
|
208 | unsafe { &(*(::std::ptr::null::<_IO_FILE>()))._IO_save_base as *const _ as usize },
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ this code causes undefined behavior when executed
warning: dereferencing a null pointer
--> src/sensors.rs:218:19
|
218 | unsafe { &(*(::std::ptr::null::<_IO_FILE>()))._IO_backup_base as *const _ as usize },
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ this code causes undefined behavior when executed
warning: dereferencing a null pointer
--> src/sensors.rs:228:19
|
228 | unsafe { &(*(::std::ptr::null::<_IO_FILE>()))._IO_save_end as *const _ as usize },
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ this code causes undefined behavior when executed
warning: dereferencing a null pointer
--> src/sensors.rs:238:19
|
238 | unsafe { &(*(::std::ptr::null::<_IO_FILE>()))._markers as *const _ as usize },
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ this code causes undefined behavior when executed
warning: dereferencing a null pointer
--> src/sensors.rs:248:19
|
248 | unsafe { &(*(::std::ptr::null::<_IO_FILE>()))._chain as *const _ as usize },
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ this code causes undefined behavior when executed
warning: dereferencing a null pointer
--> src/sensors.rs:258:19
|
258 | unsafe { &(*(::std::ptr::null::<_IO_FILE>()))._fileno as *const _ as usize },
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ this code causes undefined behavior when executed
warning: dereferencing a null pointer
--> src/sensors.rs:268:19
|
268 | unsafe { &(*(::std::ptr::null::<_IO_FILE>()))._flags2 as *const _ as usize },
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ this code causes undefined behavior when executed
warning: dereferencing a null pointer
--> src/sensors.rs:278:19
|
278 | unsafe { &(*(::std::ptr::null::<_IO_FILE>()))._old_offset as *const _ as usize },
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ this code causes undefined behavior when executed
warning: dereferencing a null pointer
--> src/sensors.rs:288:19
|
288 | unsafe { &(*(::std::ptr::null::<_IO_FILE>()))._cur_column as *const _ as usize },
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ this code causes undefined behavior when executed
warning: dereferencing a null pointer
--> src/sensors.rs:298:19
|
298 | unsafe { &(*(::std::ptr::null::<_IO_FILE>()))._vtable_offset as *const _ as usize },
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ this code causes undefined behavior when executed
warning: dereferencing a null pointer
--> src/sensors.rs:308:19
|
308 | unsafe { &(*(::std::ptr::null::<_IO_FILE>()))._shortbuf as *const _ as usize },
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ this code causes undefined behavior when executed
warning: dereferencing a null pointer
--> src/sensors.rs:318:19
|
318 | unsafe { &(*(::std::ptr::null::<_IO_FILE>()))._lock as *const _ as usize },
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ this code causes undefined behavior when executed
warning: dereferencing a null pointer
--> src/sensors.rs:328:19
|
328 | unsafe { &(*(::std::ptr::null::<_IO_FILE>()))._offset as *const _ as usize },
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ this code causes undefined behavior when executed
warning: dereferencing a null pointer
--> src/sensors.rs:338:19
|
338 | unsafe { &(*(::std::ptr::null::<_IO_FILE>())).__pad1 as *const _ as usize },
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ this code causes undefined behavior when executed
warning: dereferencing a null pointer
--> src/sensors.rs:348:19
|
348 | unsafe { &(*(::std::ptr::null::<_IO_FILE>())).__pad2 as *const _ as usize },
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ this code causes undefined behavior when executed
warning: dereferencing a null pointer
--> src/sensors.rs:358:19
|
358 | unsafe { &(*(::std::ptr::null::<_IO_FILE>())).__pad3 as *const _ as usize },
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ this code causes undefined behavior when executed
warning: dereferencing a null pointer
--> src/sensors.rs:368:19
|
368 | unsafe { &(*(::std::ptr::null::<_IO_FILE>())).__pad4 as *const _ as usize },
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ this code causes undefined behavior when executed
warning: dereferencing a null pointer
--> src/sensors.rs:378:19
|
378 | unsafe { &(*(::std::ptr::null::<_IO_FILE>())).__pad5 as *const _ as usize },
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ this code causes undefined behavior when executed
warning: dereferencing a null pointer
--> src/sensors.rs:388:19
|
388 | unsafe { &(*(::std::ptr::null::<_IO_FILE>()))._mode as *const _ as usize },
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ this code causes undefined behavior when executed
warning: dereferencing a null pointer
--> src/sensors.rs:398:19
|
398 | unsafe { &(*(::std::ptr::null::<_IO_FILE>()))._unused2 as *const _ as usize },
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ this code causes undefined behavior when executed
warning: dereferencing a null pointer
--> src/sensors.rs:431:19
|
431 | unsafe { &(*(::std::ptr::null::<sensors_bus_id>())).type_ as *const _ as usize },
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ this code causes undefined behavior when executed
warning: dereferencing a null pointer
--> src/sensors.rs:441:19
|
441 | unsafe { &(*(::std::ptr::null::<sensors_bus_id>())).nr as *const _ as usize },
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ this code causes undefined behavior when executed
warning: dereferencing a null pointer
--> src/sensors.rs:472:19
|
472 | unsafe { &(*(::std::ptr::null::<sensors_chip_name>())).prefix as *const _ as usize },
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ this code causes undefined behavior when executed
warning: dereferencing a null pointer
--> src/sensors.rs:482:19
|
482 | unsafe { &(*(::std::ptr::null::<sensors_chip_name>())).bus as *const _ as usize },
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ this code causes undefined behavior when executed
warning: dereferencing a null pointer
--> src/sensors.rs:492:19
|
492 | unsafe { &(*(::std::ptr::null::<sensors_chip_name>())).addr as *const _ as usize },
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ this code causes undefined behavior when executed
warning: dereferencing a null pointer
--> src/sensors.rs:502:19
|
502 | unsafe { &(*(::std::ptr::null::<sensors_chip_name>())).path as *const _ as usize },
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ this code causes undefined behavior when executed
warning: dereferencing a null pointer
--> src/sensors.rs:693:19
|
693 | unsafe { &(*(::std::ptr::null::<sensors_feature>())).name as *const _ as usize },
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ this code causes undefined behavior when executed
warning: dereferencing a null pointer
--> src/sensors.rs:703:19
|
703 | unsafe { &(*(::std::ptr::null::<sensors_feature>())).number as *const _ as usize },
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ this code causes undefined behavior when executed
warning: dereferencing a null pointer
--> src/sensors.rs:713:19
|
713 | unsafe { &(*(::std::ptr::null::<sensors_feature>())).type_ as *const _ as usize },
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ this code causes undefined behavior when executed
warning: dereferencing a null pointer
--> src/sensors.rs:724:14
|
724 | &(*(::std::ptr::null::<sensors_feature>())).first_subfeature as *const _ as usize
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ this code causes undefined behavior when executed
warning: dereferencing a null pointer
--> src/sensors.rs:735:19
|
735 | unsafe { &(*(::std::ptr::null::<sensors_feature>())).padding1 as *const _ as usize },
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ this code causes undefined behavior when executed
warning: dereferencing a null pointer
--> src/sensors.rs:767:19
|
767 | unsafe { &(*(::std::ptr::null::<sensors_subfeature>())).name as *const _ as usize },
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ this code causes undefined behavior when executed
warning: dereferencing a null pointer
--> src/sensors.rs:777:19
|
777 | unsafe { &(*(::std::ptr::null::<sensors_subfeature>())).number as *const _ as usize },
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ this code causes undefined behavior when executed
warning: dereferencing a null pointer
--> src/sensors.rs:787:19
|
787 | unsafe { &(*(::std::ptr::null::<sensors_subfeature>())).type_ as *const _ as usize },
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ this code causes undefined behavior when executed
warning: dereferencing a null pointer
--> src/sensors.rs:797:19
|
797 | unsafe { &(*(::std::ptr::null::<sensors_subfeature>())).mapping as *const _ as usize },
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ this code causes undefined behavior when executed
warning: dereferencing a null pointer
--> src/sensors.rs:807:19
|
807 | unsafe { &(*(::std::ptr::null::<sensors_subfeature>())).flags as *const _ as usize },
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ this code causes undefined behavior when executed
warning: `libsensors-sys` (lib test) generated 48 warnings
Finished `test` profile [unoptimized + debuginfo] target(s) in 0.72s
Running `CARGO=/usr/bin/cargo CARGO_MANIFEST_DIR=/<<PKGBUILDDIR>> CARGO_MANIFEST_PATH=/<<PKGBUILDDIR>>/Cargo.toml CARGO_PKG_AUTHORS='nyantec GmbH <dev at nyantec.com>' CARGO_PKG_DESCRIPTION='Rust bindings to libsensors' CARGO_PKG_HOMEPAGE='' CARGO_PKG_LICENSE=MirOS CARGO_PKG_LICENSE_FILE='' CARGO_PKG_NAME=libsensors-sys CARGO_PKG_README='' CARGO_PKG_REPOSITORY='' CARGO_PKG_RUST_VERSION='' CARGO_PKG_VERSION=0.2.0 CARGO_PKG_VERSION_MAJOR=0 CARGO_PKG_VERSION_MINOR=2 CARGO_PKG_VERSION_PATCH=0 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' OUT_DIR=/<<PKGBUILDDIR>>/target/x86_64-unknown-linux-gnu/debug/build/libsensors-sys-9338a5cdf8ecf99a/out /<<PKGBUILDDIR>>/target/x86_64-unknown-linux-gnu/debug/deps/libsensors_sys-e99298602913df06`
running 6 tests
thread 'sensors::bindgen_test_layout__IO_FILE' panicked at src/sensors.rs:118: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: libsensors_sys::sensors::bindgen_test_layout__IO_FILE
at /usr/share/cargo/registry/libsensors-sys-0.2.0/src/sensors.rs:118:18
5: libsensors_sys::sensors::bindgen_test_layout__IO_FILE::{{closure}}
at /usr/share/cargo/registry/libsensors-sys-0.2.0/src/sensors.rs:106:34
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