Article View: linux.debian.bugs.dist
Article #2620Bug#1152357: libc6: pthread_mutex_trylock succeeds on an unrecoverable robust recursive mutex
From: Aurelien Jarno
Date: Fri, 30 Oct 2026 07:40
Date: Fri, 30 Oct 2026 07:40
48 lines
3636 bytes
3636 bytes
control: forwarded -1 https://sourceware.org/bugzilla/show_bug.cgi?id=27458 Hi, On 2026-10-28 13:35, Tobias Schülein wrote: > Package: libc6 > Version: 2.41-12+deb13u3 > Severity: normal > > A standalone pthread reproducer shows unexpected behavior for a mutex > configured with PTHREAD_MUTEX_RECURSIVE and PTHREAD_MUTEX_ROBUST. > > An owner thread exits while holding the mutex. The next thread receives > EOWNERDEAD and unlocks without calling pthread_mutex_consistent(). > The mutex should then remain permanently unrecoverable. > > Expected: > Both subsequent pthread_mutex_trylock() calls return ENOTRECOVERABLE. > > Observed: > The first returns ENOTRECOVERABLE (131), but the second returns success (0). > > Build: > gcc -std=c11 -D_POSIX_C_SOURCE=200809L -Wall -Wextra -pthread repro.c -o repro Thanks for the bug report and the reproducer. This corresponds to upstream bug BZ#27458, which already got a fixed in master: https://sourceware.org/bugzilla/show_bug.cgi?id=27458 The bug was opened for for more than 5 years until someone reported a similar issue using WSL2. I noticed that you also use WSL2. I am not sure if it is a coincidence or if there is some application on WSL2 that is affected by this bug. Do you mind providing a bit more details on how you found this bug and what are the consequences, it might also help to decide if this bug needs to be fixed in trixie or not, as it is technically not a regression from bookworm or even bullseye. Regards Aurelien -- Aurelien Jarno GPG: 4096R/1DDD8C9B aurelien@aurel32.net http://aurel32.net
Technical Details
Message-ID:
<NTPnr-8LPx-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:
<NTPnr-8LPx-3@gated-at.bofh.it> <NTPnr-8LPx-3@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: Aurelien Jarno <aurel32@debian.org> Newsgroups: linux.debian.bugs.dist,linux.debian.maint.glibc Subject: Bug#1152357: libc6: pthread_mutex_trylock succeeds on an unrecoverable robust recursive mutex Date: Fri, 30 Oct 2026 08:40:01 +0100 Message-ID: <NTPnr-8LPx-1@gated-at.bofh.it> References: <NTPnr-8LPx-3@gated-at.bofh.it> <NTPnr-8LPx-3@gated-at.bofh.it> X-Original-To: Tobias Schülein <Tobias.Schuelein@kuka.com>, 1152357@bugs.debian.org X-Mailbox-Line: From debian-bugs-dist-request@lists.debian.org Fri Oct 30 07:37: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>, 1152357@bugs.debian.org Resent-To: debian-bugs-dist@lists.debian.org Resent-Cc: debian-glibc@lists.debian.org X-Debian-Pr-Message: followup 1152357 X-Debian-Pr-Package: libc6 X-Debian-Pr-Source: eglibc, glibc MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable 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/1999668 List-ID: <debian-bugs-dist.lists.debian.org> List-URL: <https://lists.debian.org/debian-bugs-dist/> Approved: robomod@news.nic.it Lines: 48 Organization: linux.* mail to news gateway Sender: robomod@news.nic.it X-Original-Date: Fri, 30 Oct 2026 08:35:55 +0100 X-Original-Message-ID: <auRI20vfrnOIXlY6@aurel32.net> X-Original-References: <PA2PR01MB89605953BEF20EF1DF0F77A830EB6F2@PA2PR01MB896059.eurprd01.prod.exchangelabs.com> <PA2PR01MB89605953BEF20EF1DF0F77A830EB6F2@PA2PR01MB896059.eurprd01.prod.exchangelabs.com>