-
Notifications
You must be signed in to change notification settings - Fork 3
Open
Labels
bugSomething isn't workingSomething isn't working
Description
bindgen tests in sd_journal_h.rs fail
The #[test] generated by bindgen under ./subprojects/bindgen/src/ fail in Github Actions CI runners for Mac, Linux, and Windows.
2025-07-05T08:16:05.2514027Z Nextest run ID 0dc437c2-f17e-48ba-84ea-1eace9ed8751 with nextest profile: default
2025-07-05T08:16:05.2514643Z Starting 3262 tests across 2 binaries
2025-07-05T08:16:05.6878688Z SIGABRT [ 0.435s] super_speedy_syslog_searcher bindings::sd_journal_h::bindgen_test_layout___locale_struct
2025-07-05T08:16:05.6879829Z stdout ───
2025-07-05T08:16:05.6880138Z
2025-07-05T08:16:05.6880309Z running 1 test
2025-07-05T08:16:05.6880703Z stderr ───
2025-07-05T08:16:05.6880978Z
2025-07-05T08:16:05.6881796Z thread 'bindings::sd_journal_h::bindgen_test_layout___locale_struct' panicked at src/bindings/sd_journal_h.rs:1493:18:
2025-07-05T08:16:05.6882769Z null pointer dereference occurred
2025-07-05T08:16:05.6883174Z stack backtrace:
2025-07-05T08:16:05.6883481Z 0: __rustc::rust_begin_unwind
2025-07-05T08:16:05.6884121Z at /rustc/17067e9ac6d7ecb70e50f92c1944e545188d2359/library/std/src/panicking.rs:697:5
2025-07-05T08:16:05.6884847Z 1: core::panicking::panic_nounwind_fmt::runtime
2025-07-05T08:16:05.6892991Z at /rustc/17067e9ac6d7ecb70e50f92c1944e545188d2359/library/core/src/panicking.rs:117:22
2025-07-05T08:16:05.6893786Z 2: core::panicking::panic_nounwind_fmt
2025-07-05T08:16:05.6894510Z at /rustc/17067e9ac6d7ecb70e50f92c1944e545188d2359/library/core/src/intrinsics/mod.rs:3241:9
2025-07-05T08:16:05.6895278Z 3: core::panicking::panic_null_pointer_dereference
2025-07-05T08:16:05.6897140Z at /rustc/17067e9ac6d7ecb70e50f92c1944e545188d2359/library/core/src/panicking.rs:304:5
2025-07-05T08:16:05.6898064Z 4: s4lib::bindings::sd_journal_h::bindgen_test_layout___locale_struct
2025-07-05T08:16:05.6901398Z at ./src/bindings/sd_journal_h.rs:1493:18
2025-07-05T08:16:05.6903300Z 5: s4lib::bindings::sd_journal_h::bindgen_test_layout___locale_struct::{{closure}}
2025-07-05T08:16:05.6904466Z at ./src/bindings/sd_journal_h.rs:1485:41
2025-07-05T08:16:05.6904992Z 6: core::ops::function::FnOnce::call_once
2025-07-05T08:16:05.6906368Z at /rustc/17067e9ac6d7ecb70e50f92c1944e545188d2359/library/core/src/ops/function.rs:250:5
2025-07-05T08:16:05.6907695Z 7: core::ops::function::FnOnce::call_once
2025-07-05T08:16:05.6908801Z at /rustc/17067e9ac6d7ecb70e50f92c1944e545188d2359/library/core/src/ops/function.rs:250:5
2025-07-05T08:16:05.6909583Z note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
2025-07-05T08:16:05.6922465Z thread caused non-unwinding panic. aborting.
2025-07-05T08:16:05.6922869Z
2025-07-05T08:16:05.6934975Z (test aborted with signal 6: SIGABRT)
2025-07-05T08:16:05.6935327Z
2025-07-05T08:16:05.6936734Z SIGABRT [ 0.439s] super_speedy_syslog_searcher bindings::sd_journal_h::bindgen_test_layout___atomic_wide_counter
2025-07-05T08:16:05.6938002Z stdout ───
2025-07-05T08:16:05.6938290Z
2025-07-05T08:16:05.6938451Z running 1 test
2025-07-05T08:16:05.6938841Z stderr ───
The same tests do not fail when running on my Ubuntu 22 WSL using rust 1.73.0.
They do fail similarly when run on my Windows 11.
To Reproduce
- starting with 7b2037e
- generate a new
bindings.rscd subprojects/bindgen/cargo buildcp -v "$(find ./target/ -type f -name 'bindings.rs' | tail -n1)" ../../src/bindings/sd_journal_h.rscd ../..
cargo upgradeanything, for examplecargo upgrade -p bstrcargo testorcargo nextest run --no-fail-fast "bindings::sd_journal_h"git commitandgit push- the CI will fail
Windows failures are:
PS> cargo nextest run --no-fail-fast "bindings::sd_journal_h"
...
Summary [ 0.416s] 27 tests run: 21 passed, 6 failed, 3228 skipped
FAIL [ 0.010s] super_speedy_syslog_searcher bindings::sd_journal_h::bindgen_test_layout___pthread_rwlock_arch_t
FAIL [ 0.009s] super_speedy_syslog_searcher bindings::sd_journal_h::bindgen_test_layout___sigset_t
FAIL [ 0.006s] super_speedy_syslog_searcher bindings::sd_journal_h::bindgen_test_layout_fd_set
FAIL [ 0.005s] super_speedy_syslog_searcher bindings::sd_journal_h::bindgen_test_layout_imaxdiv_t
FAIL [ 0.005s] super_speedy_syslog_searcher bindings::sd_journal_h::bindgen_test_layout_timespec
FAIL [ 0.005s] super_speedy_syslog_searcher bindings::sd_journal_h::bindgen_test_layout_timeval
Mac failures are:
Summary [ 204.405s] 3262 tests run: 3235 passed, 27 failed, 0 skipped
SIGABRT [ 0.060s] super_speedy_syslog_searcher bindings::sd_journal_h::bindgen_test_layout___atomic_wide_counter
SIGABRT [ 0.060s] super_speedy_syslog_searcher bindings::sd_journal_h::bindgen_test_layout___atomic_wide_counter__bindgen_ty_1
SIGABRT [ 0.060s] super_speedy_syslog_searcher bindings::sd_journal_h::bindgen_test_layout___fsid_t
SIGABRT [ 0.035s] super_speedy_syslog_searcher bindings::sd_journal_h::bindgen_test_layout___locale_struct
SIGABRT [ 0.045s] super_speedy_syslog_searcher bindings::sd_journal_h::bindgen_test_layout___once_flag
SIGABRT [ 0.036s] super_speedy_syslog_searcher bindings::sd_journal_h::bindgen_test_layout___pthread_cond_s
SIGABRT [ 0.030s] super_speedy_syslog_searcher bindings::sd_journal_h::bindgen_test_layout___pthread_internal_list
SIGABRT [ 0.029s] super_speedy_syslog_searcher bindings::sd_journal_h::bindgen_test_layout___pthread_internal_slist
SIGABRT [ 0.030s] super_speedy_syslog_searcher bindings::sd_journal_h::bindgen_test_layout___pthread_mutex_s
SIGABRT [ 0.045s] super_speedy_syslog_searcher bindings::sd_journal_h::bindgen_test_layout___pthread_rwlock_arch_t
SIGABRT [ 0.050s] super_speedy_syslog_searcher bindings::sd_journal_h::bindgen_test_layout___sigset_t
SIGABRT [ 0.049s] super_speedy_syslog_searcher bindings::sd_journal_h::bindgen_test_layout___va_list_tag
SIGABRT [ 0.029s] super_speedy_syslog_searcher bindings::sd_journal_h::bindgen_test_layout_fd_set
SIGABRT [ 0.030s] super_speedy_syslog_searcher bindings::sd_journal_h::bindgen_test_layout_imaxdiv_t
SIGABRT [ 0.030s] super_speedy_syslog_searcher bindings::sd_journal_h::bindgen_test_layout_iovec
SIGABRT [ 0.025s] super_speedy_syslog_searcher bindings::sd_journal_h::bindgen_test_layout_pthread_attr_t
SIGABRT [ 0.023s] super_speedy_syslog_searcher bindings::sd_journal_h::bindgen_test_layout_pthread_barrier_t
SIGABRT [ 0.025s] super_speedy_syslog_searcher bindings::sd_journal_h::bindgen_test_layout_pthread_barrierattr_t
SIGABRT [ 0.025s] super_speedy_syslog_searcher bindings::sd_journal_h::bindgen_test_layout_pthread_cond_t
SIGABRT [ 0.023s] super_speedy_syslog_searcher bindings::sd_journal_h::bindgen_test_layout_pthread_condattr_t
SIGABRT [ 0.024s] super_speedy_syslog_searcher bindings::sd_journal_h::bindgen_test_layout_pthread_mutex_t
SIGABRT [ 0.024s] super_speedy_syslog_searcher bindings::sd_journal_h::bindgen_test_layout_pthread_mutexattr_t
SIGABRT [ 0.025s] super_speedy_syslog_searcher bindings::sd_journal_h::bindgen_test_layout_pthread_rwlock_t
SIGABRT [ 0.026s] super_speedy_syslog_searcher bindings::sd_journal_h::bindgen_test_layout_pthread_rwlockattr_t
SIGABRT [ 0.025s] super_speedy_syslog_searcher bindings::sd_journal_h::bindgen_test_layout_sd_id128
SIGABRT [ 0.026s] super_speedy_syslog_searcher bindings::sd_journal_h::bindgen_test_layout_timespec
SIGABRT [ 0.026s] super_speedy_syslog_searcher bindings::sd_journal_h::bindgen_test_layout_timeval
error: test run failed
Linux failures are:
$ export NEXTEST_TEST_THREADS=num-cpus
$ cargo nextest run --locked --bins --lib --no-fail-fast --final-status-level=fail
...
2025-07-05T08:21:17.7026000Z Summary [ 312.451s] 3262 tests run: 3235 passed, 27 failed, 0 skipped
2025-07-05T08:21:17.7027517Z SIGABRT [ 0.439s] super_speedy_syslog_searcher bindings::sd_journal_h::bindgen_test_layout___atomic_wide_counter
2025-07-05T08:21:17.7029525Z SIGABRT [ 0.447s] super_speedy_syslog_searcher bindings::sd_journal_h::bindgen_test_layout___atomic_wide_counter__bindgen_ty_1
2025-07-05T08:21:17.7031174Z SIGABRT [ 0.442s] super_speedy_syslog_searcher bindings::sd_journal_h::bindgen_test_layout___fsid_t
2025-07-05T08:21:17.7032646Z SIGABRT [ 0.435s] super_speedy_syslog_searcher bindings::sd_journal_h::bindgen_test_layout___locale_struct
2025-07-05T08:21:17.7034072Z SIGABRT [ 0.589s] super_speedy_syslog_searcher bindings::sd_journal_h::bindgen_test_layout___once_flag
2025-07-05T08:21:17.7035650Z SIGABRT [ 0.562s] super_speedy_syslog_searcher bindings::sd_journal_h::bindgen_test_layout___pthread_cond_s
2025-07-05T08:21:17.7037182Z SIGABRT [ 0.594s] super_speedy_syslog_searcher bindings::sd_journal_h::bindgen_test_layout___pthread_internal_list
2025-07-05T08:21:17.7038734Z SIGABRT [ 0.606s] super_speedy_syslog_searcher bindings::sd_journal_h::bindgen_test_layout___pthread_internal_slist
2025-07-05T08:21:17.7040584Z SIGABRT [ 0.613s] super_speedy_syslog_searcher bindings::sd_journal_h::bindgen_test_layout___pthread_mutex_s
2025-07-05T08:21:17.7042076Z SIGABRT [ 0.645s] super_speedy_syslog_searcher bindings::sd_journal_h::bindgen_test_layout___pthread_rwlock_arch_t
2025-07-05T08:21:17.7043548Z SIGABRT [ 0.708s] super_speedy_syslog_searcher bindings::sd_journal_h::bindgen_test_layout___sigset_t
2025-07-05T08:21:17.7044955Z SIGABRT [ 0.643s] super_speedy_syslog_searcher bindings::sd_journal_h::bindgen_test_layout___va_list_tag
2025-07-05T08:21:17.7046728Z SIGABRT [ 0.569s] super_speedy_syslog_searcher bindings::sd_journal_h::bindgen_test_layout_fd_set
2025-07-05T08:21:17.7048215Z SIGABRT [ 0.639s] super_speedy_syslog_searcher bindings::sd_journal_h::bindgen_test_layout_imaxdiv_t
2025-07-05T08:21:17.7049707Z SIGABRT [ 0.596s] super_speedy_syslog_searcher bindings::sd_journal_h::bindgen_test_layout_iovec
2025-07-05T08:21:17.7051237Z SIGABRT [ 0.608s] super_speedy_syslog_searcher bindings::sd_journal_h::bindgen_test_layout_pthread_attr_t
2025-07-05T08:21:17.7052839Z SIGABRT [ 0.487s] super_speedy_syslog_searcher bindings::sd_journal_h::bindgen_test_layout_pthread_barrier_t
2025-07-05T08:21:17.7054499Z SIGABRT [ 0.641s] super_speedy_syslog_searcher bindings::sd_journal_h::bindgen_test_layout_pthread_barrierattr_t
2025-07-05T08:21:17.7056216Z SIGABRT [ 0.601s] super_speedy_syslog_searcher bindings::sd_journal_h::bindgen_test_layout_pthread_cond_t
2025-07-05T08:21:17.7057748Z SIGABRT [ 0.652s] super_speedy_syslog_searcher bindings::sd_journal_h::bindgen_test_layout_pthread_condattr_t
2025-07-05T08:21:17.7059386Z SIGABRT [ 0.589s] super_speedy_syslog_searcher bindings::sd_journal_h::bindgen_test_layout_pthread_mutex_t
2025-07-05T08:21:17.7060953Z SIGABRT [ 0.613s] super_speedy_syslog_searcher bindings::sd_journal_h::bindgen_test_layout_pthread_mutexattr_t
2025-07-05T08:21:17.7062599Z SIGABRT [ 0.656s] super_speedy_syslog_searcher bindings::sd_journal_h::bindgen_test_layout_pthread_rwlock_t
2025-07-05T08:21:17.7064301Z SIGABRT [ 0.605s] super_speedy_syslog_searcher bindings::sd_journal_h::bindgen_test_layout_pthread_rwlockattr_t
2025-07-05T08:21:17.7066113Z SIGABRT [ 0.567s] super_speedy_syslog_searcher bindings::sd_journal_h::bindgen_test_layout_sd_id128
2025-07-05T08:21:17.7067609Z SIGABRT [ 0.625s] super_speedy_syslog_searcher bindings::sd_journal_h::bindgen_test_layout_timespec
2025-07-05T08:21:17.7069115Z SIGABRT [ 0.599s] super_speedy_syslog_searcher bindings::sd_journal_h::bindgen_test_layout_timeval
2025-07-05T08:21:17.7070022Z error: test run failed
Environment:
- OS: Mac, Ubuntu 24, Windows 11
- s4 version: c839399 or branch
jtmoon79/20250704_upgrade - rust 1.73.0 (I did not try other rust versions)
- bindgen 0.53.1
- libsystemd-dev 255 on Github Actions runner (libsystemd-dev 249.11 on my local Ubuntu 22 WSL which does not elicit the failed tests)
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working