Your message dated Wed, 11 Nov 2026 18:34:26 +0000
with message-id <[email protected]>
and subject line Bug#1152056: fixed in rustc 1.98.1+dfsg1-1
has caused the Debian Bug report #1152056,
regarding rustc: Fix test_rwlock_max_readers hanging on non-linux 32b archs
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)
--
1152056: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1152056
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: rustc
Version: 1.97.1+dfsg1-1
Severity: important
Tags: patch upstream
Forwarded: https://github.com/rust-lang/rust/pull/164764
Hello,
test_rwlock_max_readers currently hangs on non-linux 32b archs, making
the build get stuck on hurd-i386, the attached patch was applied
upstream to fix this, could you apply it?
Thanks,
Samuel
-- System Information:
Debian Release: forky/sid
APT prefers testing
APT policy: (990, 'testing'), (500, 'unstable-debug'), (500,
'testing-debug'), (500, 'stable-security'), (500, 'stable-debug'), (500,
'proposed-updates'), (500, 'oldstable-debug'), (500, 'oldoldstable'), (500,
'buildd-unstable'), (500, 'unstable'), (500, 'stable'), (500, 'oldstable'), (1,
'experimental-debug'), (1, 'buildd-experimental'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386, arm64
Kernel: Linux 7.2.9+deb14-amd64 (SMP w/22 CPU threads; PREEMPT)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
Versions of packages rustc depends on:
ii binutils 2.47-6
ii gcc 4:16.1.0-3
ii libc6 2.43-7
ii libc6-dev [libc-dev] 2.43-7
ii libgcc-s1 16.2.0-3
ii libstd-rust-dev 1.97.1+dfsg1-1
Versions of packages rustc recommends:
ii cargo 1.97.1+dfsg1-1
ii rust-llvm 1.97.1+dfsg1-1
rustc suggests no packages.
-- no debconf information
--
Samuel
"I don't know why, but first C programs tend to look a lot worse than
first programs in any other language (maybe except for fortran, but then
I suspect all fortran programs look like `firsts')"
(By Olaf Kirch)
commit dfa3e66f7344e39da3bd6c9c58acb14ebd286db1
Author: Samuel Thibault <[email protected]>
Date: Sun Oct 25 04:50:40 2026 +0000
Test(lib/sync): Fix `test_rwlock_max_readers` for 32bit architectures
* Test(lib/sync): Fix `test_rwlock_max_readers` for 32bit architectures
962e9e2aab0d ("Fix `test_rwlock_max_readers` for x86 Win7") detected the
issue but fixed it only for windows.
As mentioned in the comment above the test, with the queue implementation,
the counter for the number of threads has 4 bits reserved for management. On
64bit platforms, there are still ample room for u32::MAX readers, but on 32b
platforms, only 2^28-1 readers can fit. We can still test u32::MAX readers
on 64b platforms, thus keeping the min with usize::MAX >> 4.
Fixes 83a7a4ad74ad ("Clarified docs in std::sync::RwLock and added a test
that checks if we can reach max reader")
Signed-off-by: Samuel Thibault <[email protected]>
Index: rustc-1.97.1+dfsg1/library/std/tests/sync/rwlock.rs
===================================================================
--- rustc-1.97.1+dfsg1.orig/library/std/tests/sync/rwlock.rs
+++ rustc-1.97.1+dfsg1/library/std/tests/sync/rwlock.rs
@@ -923,16 +923,16 @@ fn test_rwlock_max_readers() {
},
any(
target_family = "unix",
- all(target_os = "windows", target_vendor = "win7",
target_pointer_width = "64"),
+ all(target_os = "windows", target_vendor = "win7"),
all(target_vendor = "fortanix", target_env = "sgx"),
target_os = "xous",
target_os = "teeos",
) => {
- u32::MAX
- },
- // Otherwise a form of deadlock is observed.
- all(target_os = "windows", target_vendor = "win7",
target_pointer_width = "32") => {
- (1 << 28) - 1
+ if usize::BITS - 4 > u32::BITS {
+ u32::MAX
+ } else {
+ (usize::MAX >> 4) as u32
+ }
},
target_os = "solid_asp3" => {
(1 << 30)
--- End Message ---
--- Begin Message ---
Source: rustc
Source-Version: 1.98.1+dfsg1-1
Done: Fabian Grünbichler <[email protected]>
We believe that the bug you reported is fixed in the latest version of
rustc, which is due to be installed in the Debian FTP archive.
A summary of the changes between this version and the previous one is
attached.
Thank you for reporting the bug, which will now be closed. If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Fabian Grünbichler <[email protected]> (supplier of updated
rustc package)
(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512
Format: 1.8
Date: Tue, 10 Nov 2026 16:59:19 +0100
Source: rustc
Architecture: source
Version: 1.98.1+dfsg1-1
Distribution: unstable
Urgency: medium
Maintainer: Debian Rust Maintainers
<[email protected]>
Changed-By: Fabian Grünbichler <[email protected]>
Closes: 1148581 1152056
Changes:
rustc (1.98.1+dfsg1-1) unstable; urgency=medium
.
[ Samuel Thibault ]
* fix hurd-i386 test (Closes: #1152056)
.
[ Reuben Roessler ]
* cargo wrapper: allow overriding the installation path for virtual manifests
(Closes: #1148581)
Checksums-Sha1:
1af15bb178f24e476584af3bb111c5ab660de103 4341 rustc_1.98.1+dfsg1-1.dsc
9aebe1995dc78b82288ac524ee89573557123ae5 153076
rustc_1.98.1+dfsg1-1.debian.tar.xz
f461ef8236e92b000f86b93b20d385c5ee3b8fb2 9642
rustc_1.98.1+dfsg1-1_source.buildinfo
Checksums-Sha256:
e773109b3a36ab6363b9ffa7391eef1e8e31c19590b58606ea2820d28526f9e4 4341
rustc_1.98.1+dfsg1-1.dsc
8df3e8285f1d03a36a02f0f71e5349f7b1c2cbf0d2a702cdaa13b0d0b094a097 153076
rustc_1.98.1+dfsg1-1.debian.tar.xz
9f037db7be4ac81d2155de087362de77b9a432e43ee7718da031336fc3423a5a 9642
rustc_1.98.1+dfsg1-1_source.buildinfo
Files:
ae410c5afa672a0367842470eb6ed990 4341 devel optional rustc_1.98.1+dfsg1-1.dsc
1dd0b539151bbb9673aea9b5719f7c18 153076 devel optional
rustc_1.98.1+dfsg1-1.debian.tar.xz
8ba5e61e2e4a425539348ae6398b5878 9642 devel optional
rustc_1.98.1+dfsg1-1_source.buildinfo
-----BEGIN PGP SIGNATURE-----
iQJVBAEBCgA/FiEEbdkGe7ToK0Amc9ppdh5TKjcTRTAFAmr0tCghHGRlYmlhbkBm
YWJpYW4uZ3J1ZW5iaWNobGVyLmVtYWlsAAoJEHYeUyo3E0UwIVoQAMK7p8DSpYX/
U5q+nlRT0RsWrr8PCmJF5WrLux2NA0naWGLWiDqYgw6YwUWfcPOjiAkAFqZ8hMqO
N7OAoxcF+pKWS8sUejUEicWo7xDxqFZ++xFKelUy+jZfekJMD0UREVvwiPqo6Shx
ORlR7MjnmLUNfua6+fK1NK/m2boJu0XNV9NmbZ88e3YyRD1cayA3Ef0wNspogSdj
DKVrR3oo/UXEkZaiqVteUsT6ItkTqaUoNeNrBNVmxBm/Hoe1jKpZqwr8bTzO1kYC
aNxCdlVsfOJrFGglEZsWttTM3ql5XgWqTTMTbXqWZCzjmSH5uaouyiSi98aURmJA
PbZXcgYluLM/yZ8ju9iKGQyLUPPbkQy9fNKqrjrporxz54EHhtfP1mgE9RZibia5
TWNTAgPwCkLouNRtqQDjpPN+PgeweUIleDwMGat6k9kcdp7HAm54mrd3ibjfNoV1
UqFsR8gorXBCv//R8UQ4SD/hD8po16ZJIfgOnxcKUf/9v12msIAE3dWvPRAJ98Bh
Bgb/HIKEQmSlNmoLvNLZMXVkFhmAFVI+IzEGXbaIeHOyuMZXzx9G2064lXs9dKma
I55rJdQCGTgJngcw6Y+66PzRwYYNZoMxf8x8X3dgidoqXEhus3+2quo2Cz18vrHK
wFzoZhEYeGH9PjhG4NLQK4CMEGayA/1u
=+2eF
-----END PGP SIGNATURE-----
pgpn2Xje9llaW.pgp
Description: PGP signature
--- End Message ---