Article View: linux.debian.bugs.dist
Article #4160Bug#1132468: libc6: pthread_cond_signal failed to wake up pthread_cond_wait due to a bug in undoing stealing
From: Aurelien Jarno
Date: Wed, 11 Nov 2026 16:50
Date: Wed, 11 Nov 2026 16:50
88 lines
6871 bytes
6871 bytes
Hi Florian, On 2026-11-01 21:06, Florian Weimer wrote: > * Aurelien Jarno: > > > Hi, > > > > On 2026-10-21 13:03, Nick Desaulniers wrote: > >> On 2026-04-08 11:11, Florian Bezdeka wrote: > >> > Hi Aurelien, > >> > > >> > On Tue, 2026-04-07 at 21:44 +0200, Aurelien Jarno wrote: > >> > > > >> > > At this stage I am not fully convinced: > >> > > > >> > > - It is not clear to me which software is currently affected by this > >> > > bug, and thus it's difficult to judge how important is it to fix this > >> > > bug, especially given this is not a regression from bullseye (the bug > >> > > is present in that version). Do you have some real examples of > >> > > affected software that can show it's important to fix this bug in > >> > > bookworm? > >> > > >> > That's hard to tell. I'm quite sure that there are Debian package > >> > affected by this problem but the "lockup" isn't happening that often, so > >> > that those problems likely stay unreported. > >> > >> Hi, I think we're also hitting this issue on Android's host build > >> machines running bookworm; it seems that LLVM's multithreaded linker, > >> lld, can miss wakeup signals causing the linker to deadlock. > >> > >> See also: https://github.com/llvm/llvm-project/pull/231314 > >> > >> Did this ever end up getting resolved? > > > > At this stage no. > > > > The patchset is not trivial, and while it definitely fixes the issue, we > > know it breaks software using process-shared condition variables in > > files on disk, which at minimum needs to be restarted. > > > > It is difficult to evaluate what could be the impact of bookworm as a > > whole and on usual third party software used on it. At least compared to > > RPM based distributions we know that the upgrade part is not an issue > > (db5.3 in bookworm is not patched for this issue). And the fact it is > > not a regression from bullseye, makes it more problematic to possibly > > break other things. > > > > Now, if the debian-lts team has more ressources to evaluate that, or if > > they want to take the risk, it's pretty fine. > > I did the backport upstream to glibc 2.36 today and ran the testsuite > on x86-64 and ppc64le, with no unexplained failures. (There were some > expected failures due to kernel backports on the hosts that were used > for testing.) > > [PATCH 2.36 COMMITTED 01/10] pthreads NPTL: lost wakeup fix 2 > <https://inbox.sourceware.org/libc-stable/14c5014e1c1aedbf6742f46b26ade61c8858d567.1793561338.git.fweimer@redhat.com/> > > The backport is identical to the 2.38 backport that was already > available upstream, except for a spurious conflict in code that was > being deleted (a typo had been fixed during 2.38 development). It > should be pretty safe. The same fixes have been backported to even > earlier glibc release downstream (2.28 and 2.34). The main known risk > is breaking the frozen condition variables in certain Berkeley DB > environments (relevant to db5.3, for example). This was true for > later Debian releases as well, and did not block the backport there. On Debian, this was never backported to stable, it went as part of the bookworm to trixie update, where we require a reboot after the upgrade. We don't require a reboot for stable updates, even less for oldstable updates, so my worry is that it breaks long running applications, especially the ones using db5.3. > I can submit an MR against glibc in Salsa if that would help? There > is just one other fix on the upstream branch, and installed header fix > for improved compatibility with newer kernels. Thanks for the offer, but I don't think a MR is needed. Given that the changes are now on the upstream 2.36 branch, it should be straightforward to just pick them up in the debian package by updating debian/patches/git-updates.diff. Regards Aurelien -- Aurelien Jarno GPG: 4096R/1DDD8C9B aurelien@aurel32.net http://aurel32.net
Technical Details
Message-ID:
<NYjGh-bg4v-5@gated-at.bofh.it>Path:
mbox-mo1.pugleaf.net!news-lax.pugleaf.net!news-ams.pugleaf.net!news.tcpreset.net!newsfeed.bofh.team!news.samoylyk.net!gothmog.csi.it!bofh.it!news.nic.it!robomodReferences:
<MJbjQ-eGrI-1@gated-at.bofh.it> <MF4Ah-bUzK-1@gated-at.bofh.it> <MVwiR-5FYB-5@gated-at.bofh.it> <N0WcF-9miM-9@gated-at.bofh.it> <N1ddv-9xqI-3@gated-at.bofh.it> <NQSUy-77fi-3@gated-at.bofh.it> <MF4Ah-bUzK-1@gated-at.bofh.it> <NQSUy-77fi-1@gated-at.bofh.it> <MF4Ah-bUzK-1@gated-at.bofh.it> <NUKlH-9gZE-1@gated-at.bofh.it> <MF4Ah-bUzK-1@gated-at.bofh.it> <NUKlH-9gZE-1@gated-at.bofh.it>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!news-ams.pugleaf.net!news.tcpreset.net!newsfeed.bofh.team!news.samoylyk.net!gothmog.csi.it!bofh.it!news.nic.it!robomod From: Aurelien Jarno <aurel32@debian.org> Newsgroups: linux.debian.bugs.dist,linux.debian.maint.glibc Subject: Bug#1132468: libc6: pthread_cond_signal failed to wake up pthread_cond_wait due to a bug in undoing stealing Date: Wed, 11 Nov 2026 17:50:01 +0100 Message-ID: <NYjGh-bg4v-5@gated-at.bofh.it> References: <MJbjQ-eGrI-1@gated-at.bofh.it> <MF4Ah-bUzK-1@gated-at.bofh.it> <MVwiR-5FYB-5@gated-at.bofh.it> <N0WcF-9miM-9@gated-at.bofh.it> <N1ddv-9xqI-3@gated-at.bofh.it> <NQSUy-77fi-3@gated-at.bofh.it> <MF4Ah-bUzK-1@gated-at.bofh.it> <NQSUy-77fi-1@gated-at.bofh.it> <MF4Ah-bUzK-1@gated-at.bofh.it> <NUKlH-9gZE-1@gated-at.bofh.it> <MF4Ah-bUzK-1@gated-at.bofh.it> <NUKlH-9gZE-1@gated-at.bofh.it> X-Original-To: Florian Weimer <fw@deneb.enyo.de>, 1132468@bugs.debian.org X-Mailbox-Line: From debian-bugs-dist-request@lists.debian.org Wed Nov 11 16:41:07 2026 Old-Return-Path: <debbugs@buxtehude.debian.org> X-Spam-Flag: NO X-Spam-Score: -1.699 Reply-To: Aurelien Jarno <aurel32@debian.org>, 1132468@bugs.debian.org Resent-To: debian-bugs-dist@lists.debian.org Resent-Cc: debian-glibc@lists.debian.org X-Debian-Pr-Message: followup 1132468 X-Debian-Pr-Package: libc6 X-Debian-Pr-Keywords: upstream X-Debian-Pr-Source: eglibc, glibc MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/2.4.1 (2026-07-04) X-Debian-User: aurel32 X-Debian-Message: from BTS X-Mailing-List: <debian-bugs-dist@lists.debian.org> archive/latest/2002067 List-ID: <debian-bugs-dist.lists.debian.org> List-URL: <https://lists.debian.org/debian-bugs-dist/> Approved: robomod@news.nic.it Lines: 88 Organization: linux.* mail to news gateway Sender: robomod@news.nic.it X-Original-Cc: Nick Desaulniers <ndesaulniers@google.com>, Florian Bezdeka <florian.bezdeka@siemens.com>, ccross@android.com, i@maskray.me X-Original-Date: Wed, 11 Nov 2026 17:38:43 +0100 X-Original-Message-ID: <avSaEwbovUJUjgdR@aurel32.net> X-Original-References: <adwZDGGPVtM-NJTb@aurel32.net> <59795f5c04d477096841f70787900348a350a63a.camel@siemens.com> <5849b6cf99868416142fb253679edb45b678e536.camel@siemens.com> <ahyrwprgbScC7bFG@aurel32.net> <53f553893d5d4b1649fbeb1322d4408fc9585fe5.camel@siemens.com> <atkZBLWRnDHIS0aE@google.com> <59795f5c04d477096841f70787900348a350a63a.camel@siemens.com> <atmTcEHnnVQE-Z5G@aurel32.net> <59795f5c04d477096841f70787900348a350a63a.camel@siemens.com> <87ik2g5nb5.fsf@mid.deneb.enyo.de> <59795f5c04d477096841f70787900348a350a63a.camel@siemens.com> <87ik2g5nb5.fsf@mid.deneb.enyo.de>