Article View: linux.debian.maint.glibc
Article #11Bug#1132468: libc6: pthread_cond_signal failed to wake up pthread_cond_wait due to a bug in undoing stealing
From: Florian Weimer
Date: Sun, 01 Nov 2026 20:30
Date: Sun, 01 Nov 2026 20:30
67 lines
6146 bytes
6146 bytes
* 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. 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.
Technical Details
Message-ID:
<NUKlH-9gZE-1@gated-at.bofh.it>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!news.corradoroberto.it!bofh.it!news.nic.it!robomodReferences:
<MF4Ah-bUzK-1@gated-at.bofh.it> <MHkAV-dqGU-13@gated-at.bofh.it> <MF4Ah-bUzK-1@gated-at.bofh.it> <MHxot-dziO-7@gated-at.bofh.it> <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> <NQSUy-77fi-1@gated-at.bofh.it>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!news.corradoroberto.it!bofh.it!news.nic.it!robomod From: Florian Weimer <fw@deneb.enyo.de> 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: Sun, 01 Nov 2026 21:30:01 +0100 Message-ID: <NUKlH-9gZE-1@gated-at.bofh.it> References: <MF4Ah-bUzK-1@gated-at.bofh.it> <MHkAV-dqGU-13@gated-at.bofh.it> <MF4Ah-bUzK-1@gated-at.bofh.it> <MHxot-dziO-7@gated-at.bofh.it> <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> <NQSUy-77fi-1@gated-at.bofh.it> X-Original-To: Aurelien Jarno <aurel32@debian.org> X-Mailbox-Line: From debian-bugs-dist-request@lists.debian.org Sun Nov 1 20:29:08 2026 Old-Return-Path: <debbugs@buxtehude.debian.org> X-Spam-Flag: NO X-Spam-Score: -1.65 Reply-To: Florian Weimer <fw@deneb.enyo.de>, 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 X-Greylist: delayed 1272 seconds by postgrey-1.37 at buxtehude; Sun, 01 Nov 2026 20:27:45 UTC X-Debian-Message: from BTS X-Mailing-List: <debian-bugs-dist@lists.debian.org> archive/latest/2000162 List-ID: <debian-bugs-dist.lists.debian.org> List-URL: <https://lists.debian.org/debian-bugs-dist/> Approved: robomod@news.nic.it Lines: 67 Organization: linux.* mail to news gateway Sender: robomod@news.nic.it X-Original-Cc: Nick Desaulniers <ndesaulniers@google.com>, 1132468@bugs.debian.org, Florian Bezdeka <florian.bezdeka@siemens.com>, ccross@android.com, i@maskray.me X-Original-Date: Sun, 01 Nov 2026 21:06:22 +0100 X-Original-Message-ID: <87ik2g5nb5.fsf@mid.deneb.enyo.de> X-Original-References: <59795f5c04d477096841f70787900348a350a63a.camel@siemens.com> <adVeplnu7ya2Qpdo@aurel32.net> <59795f5c04d477096841f70787900348a350a63a.camel@siemens.com> <186117d5843cca0cb81e7155eabbef09dfe24e50.camel@siemens.com> <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> <atmTcEHnnVQE-Z5G@aurel32.net>