#1148859 wasm-bindgen: FTBFS: Test deadlock on single-CPU systems

#1148859#5
Date:
2026-09-24 10:04:58 UTC
From:
To:
Hello Jonas.

When trying to build this package on a VM with one vCPU, a deadlock
happens while the tests run, and sbuild has to kill dpkg-buildpackage.
(See below).

This can be reproduced easily using the GRUB_CMDLINE_LINUX="nr_cpus=1" trick.

I've put a full build log here:

https://people.debian.org/~sanvila/build-logs/202609/

Upstream has already fixed this with this simple patch:

https://github.com/wasm-bindgen/wasm-bindgen/commit/d3fff5ef8ae711b763aa82c9c0eafd06e5f19fe4.patch

Thanks.
--------------------------------------------------------------------------------
[...]
running 1 test
test test_foo ... ok

test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s

     Running `CARGO=/usr/bin/cargo CARGO_MANIFEST_DIR=/<<PKGBUILDDIR>> CARGO_MANIFEST_PATH=/<<PKGBUILDDIR>>/Cargo.toml CARGO_PKG_AUTHORS='The wasm-bindgen Developers' CARGO_PKG_DESCRIPTION='Easy support for interacting between JS and Rust.
' CARGO_PKG_HOMEPAGE='https://wasm-bindgen.github.io/wasm-bindgen' CARGO_PKG_LICENSE='MIT OR Apache-2.0' CARGO_PKG_LICENSE_FILE='' CARGO_PKG_NAME=wasm-bindgen CARGO_PKG_README=README.md CARGO_PKG_REPOSITORY='https://github.com/wasm-bindgen/wasm-bindgen' CARGO_PKG_RUST_VERSION=1.71 CARGO_PKG_VERSION=0.2.108 CARGO_PKG_VERSION_MAJOR=0 CARGO_PKG_VERSION_MINOR=2 CARGO_PKG_VERSION_PATCH=108 CARGO_PKG_VERSION_PRE='' LD_LIBRARY_PATH='/<<PKGBUILDDIR>>/target/x86_64-unknown-linux-gnu/release:/<<PKGBUILDDIR>>/target/x86_64-unknown-linux-gnu/release/deps:/usr/lib/rustlib/x86_64-unknown-linux-gnu/lib' OUT_DIR=/<<PKGBUILDDIR>>/target/x86_64-unknown-linux-gnu/release/build/wasm-bindgen-eae241bcfa79cd5a/out /<<PKGBUILDDIR>>/target/x86_64-unknown-linux-gnu/release/deps/non_wasm_test-521a67510fe7a7ee`

running 2 tests
test test ...
E: Build killed with signal TERM after 60 minutes of inactivity
--------------------------------------------------------------------------------