From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id AWh7NQyMBGqFaTYAWB0awg (envelope-from ) for ; Wed, 13 May 2026 10:34:52 -0400 Authentication-Results: simark.ca; dkim=fail reason="signature verification failed" (768-bit key; unprotected) header.d=tromey.com header.i=@tromey.com header.a=rsa-sha256 header.s=default header.b=nrrwpDoo; dkim-atps=neutral Received: by simark.ca (Postfix, from userid 112) id D6B9C1E0C3; Wed, 13 May 2026 10:34:52 -0400 (EDT) X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-25) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=ARC_SIGNED,ARC_VALID,BAYES_00, DKIM_INVALID,DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED, RCVD_IN_VALIDITY_CERTIFIED_BLOCKED,RCVD_IN_VALIDITY_RPBL_BLOCKED, RCVD_IN_VALIDITY_SAFE_BLOCKED autolearn=ham autolearn_force=no version=4.0.1 Received: from vm01.sourceware.org (vm01.sourceware.org [38.145.34.32]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by simark.ca (Postfix) with ESMTPS id 4C35E1E093 for ; Wed, 13 May 2026 10:34:52 -0400 (EDT) Received: from vm01.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 00DE04BB3BBE for ; Wed, 13 May 2026 14:34:51 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 00DE04BB3BBE Authentication-Results: sourceware.org; dkim=fail reason="signature verification failed" (768-bit key, unprotected) header.d=tromey.com header.i=@tromey.com header.a=rsa-sha256 header.s=default header.b=nrrwpDoo Received: from omta038.useast.a.cloudfilter.net (omta038.useast.a.cloudfilter.net [44.202.169.37]) by sourceware.org (Postfix) with ESMTPS id EB7D04BB3BD9 for ; Wed, 13 May 2026 14:34:04 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org EB7D04BB3BD9 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=tromey.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=tromey.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org EB7D04BB3BD9 Authentication-Results: sourceware.org; arc=none smtp.remote-ip=44.202.169.37 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1778682845; cv=none; b=BEDnZ6dDV5Ny/RkH7TDybOWmhF9fOeNnGP0kiqxNx5DW/U7GAwX1Tl4ANz8/LplVYfg0ZeEHBPnYMEnce9v6ApktjL6jGFxSrMX1/dMAIdqtCknVJDgao2Dj7uvI4DEq6vm92wCAOA0sWt2Seblk8FIUxTdY2LeHmj2ot2/1XWQ= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1778682845; c=relaxed/simple; bh=jIqvJGfT1RecowYNbE0v00ixB9dQqWaBOdqJ0ntRdlQ=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=Gx875J0za4wkuu+cA+7f++95G3rfAJ0UD/nKWUu8jN0ZGXrOxnMhAhaq0T/JRUm7i4ctu1N+EOd2Myd7hYLkYOxw0lQtGo7SzPvuzxdUt9BuHk+IiI3xjUmvsRRpYRwS+dHI/eg8HW6O67ocFtnAJtln5J+q/CuFKMMvhi/H4fI= ARC-Authentication-Results: i=1; sourceware.org; dkim=policy (768-bit key, unprotected) header.d=tromey.com header.i=@tromey.com header.a=rsa-sha256 header.s=default header.b=nrrwpDoo reason="signing key too small" DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org EB7D04BB3BD9 Received: from eig-obgw-6006b.ext.cloudfilter.net ([10.0.30.211]) by cmsmtp with ESMTPS id MPySwBMzcuVXCNAeywqnZg; Wed, 13 May 2026 14:34:04 +0000 Received: from box5379.bluehost.com ([162.241.216.53]) by cmsmtp with ESMTPS id NAewwPIajSUGqNAexwlFII; Wed, 13 May 2026 14:34:03 +0000 X-Authority-Analysis: v=2.4 cv=CoK/cm4D c=1 sm=1 tr=0 ts=6a048bdb a=ApxJNpeYhEAb1aAlGBBbmA==:117 a=ApxJNpeYhEAb1aAlGBBbmA==:17 a=NGcC8JguVDcA:10 a=ItBw4LHWJt0A:10 a=QyXUC8HyAAAA:8 a=BliCYa6hzWYjlMyJwhkA:9 a=DdtexN94uqQA:10 a=DCx65vhANUyCzuf5D8fC:22 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=tromey.com; s=default; h=Content-Type:MIME-Version:Message-ID:Date:References:In-Reply-To :Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=jIqvJGfT1RecowYNbE0v00ixB9dQqWaBOdqJ0ntRdlQ=; b=nrrwpDooLAudCyqeWnkNoNZyB1 0ghOQhlgaspYV9/oC5CDxgR+rUuMzjuJoLrC/FykkUiUmNZcL5oqGZReSH1jC7szuCZqbYjkbf3Ct aNobgioAI/FvKdGuOE+rWh6n7; Received: from 75-166-225-82.hlrn.qwest.net ([75.166.225.82]:39510 helo=bapiya) by box5379.bluehost.com with esmtpsa (TLS1.3) tls TLS_AES_256_GCM_SHA384 (Exim 4.99.2) (envelope-from ) id 1wNAet-00000000MzO-2mRD; Wed, 13 May 2026 08:33:59 -0600 From: Tom Tromey To: "Metzger, Markus T" Cc: Simon Marchi , "gdb-patches@sourceware.org" Subject: Re: [PATCH] gdb: fix an issue with thread list corruption In-Reply-To: (Markus T. Metzger's message of "Mon, 11 May 2026 10:05:05 +0000") References: <20260504071636.1571615-1-markus.t.metzger@intel.com> <20260504071636.1571615-2-markus.t.metzger@intel.com> <6ff2ff67-e93c-41b0-b55a-2ec6462e6061@simark.ca> <81a1a827-5c22-4f24-852a-1c85d09c30cc@simark.ca> <5b5e0342-ff7e-44f4-803b-aa96075229af@simark.ca> X-Attribution: Tom Date: Wed, 13 May 2026 08:33:53 -0600 Message-ID: <87bjejml9q.fsf@tromey.com> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - box5379.bluehost.com X-AntiAbuse: Original Domain - sourceware.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - tromey.com X-BWhitelist: no X-Source-IP: 75.166.225.82 X-Source-L: No X-Exim-ID: 1wNAet-00000000MzO-2mRD X-Source: X-Source-Args: X-Source-Dir: X-Source-Sender: 75-166-225-82.hlrn.qwest.net (bapiya) [75.166.225.82]:39510 X-Source-Auth: tom+tromey.com X-Email-Count: 3 X-Org: HG=bhshared;ORG=bluehost; X-Source-Cap: ZWx5bnJvYmk7ZWx5bnJvYmk7Ym94NTM3OS5ibHVlaG9zdC5jb20= X-Local-Domain: yes X-CMAE-Envelope: MS4xfFEhvfuUti1TbbgP+Ht8m6AzUzma0mYfl+35gTNwHe9EyOJlfr9GfMrmrU29RHKrJUuBcUxYXubqsLT5IfIhc67wQqxAqtT0L0SN9UNF2wTgf63dITf/ D3T5NjitI2n2GXNSmVNdrQdoSRmHZ01/0ket2KUszPkJZAUa5MbxC4NQ4Ef1Bgp9K5gRX5MsjNMr1xIbyw54U6zSF5TSRUc0cyw= X-BeenThere: gdb-patches@sourceware.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Gdb-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: gdb-patches-bounces~public-inbox=simark.ca@sourceware.org >>>>> Metzger, Markus T writes: > I'm testing a patch [1] that changes for_each_thread(). What if we just got rid of for_each_thread and had the callers use a foreach and all_threads(). Tom