| Message ID | 20250914202133.1197710-1-mac@mcrowe.com |
|---|---|
| Headers |
Return-Path: <gcc-patches-bounces~patchwork=sourceware.org@gcc.gnu.org> X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 8A6B73858D1E for <patchwork@sourceware.org>; Sun, 14 Sep 2025 20:25:32 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 8A6B73858D1E Authentication-Results: sourceware.org; dkim=pass (2048-bit key, unprotected) header.d=mcrowe.com header.i=@mcrowe.com header.a=rsa-sha256 header.s=20191005 header.b=UU0Mwa43 X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from smarthost01c.sbp.mail.zen.net.uk (smarthost01c.sbp.mail.zen.net.uk [212.23.1.5]) by sourceware.org (Postfix) with ESMTPS id 83A8D3858D39; Sun, 14 Sep 2025 20:22:09 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 83A8D3858D39 Authentication-Results: sourceware.org; dmarc=pass (p=quarantine dis=none) header.from=mcrowe.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=mcrowe.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 83A8D3858D39 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=212.23.1.5 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1757881329; cv=none; b=X2h5aqiCbaU13NP3PLZaKIKhTjJ2ac2iZoxat9PbVxP5Z0aJfbnvdrn394aO+GtnKIdIRUis833D4c7ESyzJYwyjBtaOxRi5uGN4M2e/XwZ+ueDPcMgwa2hJvoh/0lAZL1EtRmUhgHt679+LGUJoAVUEgObYCC9oNZG/+bBKFeE= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1757881329; c=relaxed/simple; bh=RspUGRV6OBYdgXepYEQ+qitHEttw5VlopCaLc60tnSM=; h=DKIM-Signature:From:To:Subject:Date:Message-Id:MIME-Version; b=HVYJTWdwU0XNfnAesqKgeLYVYGbzqL/rJL62UwbNO7j2dZyRGS/ctaEJd3+BABM2GgbHjzNIExNrIRHqyS8DBvX7J+/nmLu+slv4skF+Iz1g9gMzVADj2+hplOOIkyRNO9RDct0AlYfrBbJyo6lpafOlkAizDlU6xC+l6nkFl6M= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 83A8D3858D39 Received: from [88.97.37.36] (helo=deneb.mcrowe.com) by smarthost01c.sbp.mail.zen.net.uk with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.95) (envelope-from <mac@mcrowe.com>) id 1uxtEe-008WUc-3D; Sun, 14 Sep 2025 20:22:08 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mcrowe.com; s=20191005; h=Content-Transfer-Encoding:MIME-Version:Message-Id:Date:Subject: Cc:To:From:Sender:Reply-To:Content-Type:Content-ID:Content-Description: In-Reply-To:References; bh=RspUGRV6OBYdgXepYEQ+qitHEttw5VlopCaLc60tnSM=; b=UU 0Mwa43xSFxuq81oiPNUacUK29jNPSA18B1aTlQr1led2SopQMXoV5w/QWRdKHHtK4Ly9g92eIO01n Rqo4uJPZkyEIZ/bVt4VPqcDDfXBUBHaz/kBEBb7hPUWarCcLnRq0SmK5GumPLr4ERdnoSYoKoq3kS f3apCi8eWVzqeTyGZR7MCTkI6UlfbkQ8Fsk/yd2KD4vxyygB3aHTDomqmn5mVqYwLOBp3mkTuaYA4 bG0djXmORKGnH74CUeSpmsouBODBucBUPGQpu+fxq7taov3Gvyx3IUBFbCtdORQRkUibRMAUOVxkF KqD2sB+b8abdj2m50HFeIg6wmWT+sZ8A==; Received: from mac by deneb.mcrowe.com with local (Exim 4.96) (envelope-from <mac@mcrowe.com>) id 1uxtEc-003hIm-2c; Sun, 14 Sep 2025 21:22:06 +0100 From: Mike Crowe <mac@mcrowe.com> To: libstdc++@gcc.gnu.org, gcc-patches@gcc.gnu.org Cc: Mike Crowe <mac@mcrowe.com> Subject: [PATCH 0/6] PR116586 negative timeout tests and fixes Date: Sun, 14 Sep 2025 21:21:27 +0100 Message-Id: <20250914202133.1197710-1-mac@mcrowe.com> X-Mailer: git-send-email 2.39.5 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Originating-smarthost01c-IP: [88.97.37.36] Feedback-ID: 88.97.37.36 X-Spam-Status: No, score=-6.6 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, KAM_SHORT, RCVD_IN_DNSWL_LOW, RCVD_IN_VALIDITY_RPBL_BLOCKED, RCVD_IN_VALIDITY_SAFE_BLOCKED, SPF_HELO_PASS, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: gcc-patches@gcc.gnu.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Gcc-patches mailing list <gcc-patches.gcc.gnu.org> List-Unsubscribe: <https://gcc.gnu.org/mailman/options/gcc-patches>, <mailto:gcc-patches-request@gcc.gnu.org?subject=unsubscribe> List-Archive: <https://gcc.gnu.org/pipermail/gcc-patches/> List-Post: <mailto:gcc-patches@gcc.gnu.org> List-Help: <mailto:gcc-patches-request@gcc.gnu.org?subject=help> List-Subscribe: <https://gcc.gnu.org/mailman/listinfo/gcc-patches>, <mailto:gcc-patches-request@gcc.gnu.org?subject=subscribe> Errors-To: gcc-patches-bounces~patchwork=sourceware.org@gcc.gnu.org |
| Series |
PR116586 negative timeout tests and fixes
|
|
Message
Mike Crowe
Sept. 14, 2025, 8:21 p.m. UTC
This series fixes the std::shared_timed_mutex negative timeout bug[0] and adds test cases to the other standard library wait functions that take a timeout. Those test cases revealed a similar bug in std::binary_semaphore and std::counting_semaphore which I've also fixed. This series does nothing to address the problems I identified[1] in how std::shared_timed_mutex deals with error returns that made this bug even more serious[2]. I'll deal with that separately, ideally once I receive some guidance as to the best way forward. Thanks. Mike. [0] https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116586 [1] https://gcc.gnu.org/pipermail/libstdc++/2025-August/062846.html [2] https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121141