From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id +cI6AJWvBGrIqzYAWB0awg (envelope-from ) for ; Wed, 13 May 2026 13:06:29 -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=M//hMUKD; dkim-atps=neutral Received: by simark.ca (Postfix, from userid 112) id EDBC41E0C3; Wed, 13 May 2026 13:06:28 -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 81CB11E067 for ; Wed, 13 May 2026 13:06:28 -0400 (EDT) Received: from vm01.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 180FB4BBC0A9 for ; Wed, 13 May 2026 17:06:27 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 180FB4BBC0A9 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=M//hMUKD Received: from omta40.uswest2.a.cloudfilter.net (omta40.uswest2.a.cloudfilter.net [35.89.44.39]) by sourceware.org (Postfix) with ESMTPS id 207054BB58D0 for ; Wed, 13 May 2026 17:05:23 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 207054BB58D0 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 207054BB58D0 Authentication-Results: sourceware.org; arc=none smtp.remote-ip=35.89.44.39 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1778691923; cv=none; b=nYR6lU+pBYfG+iTBKgNPbHNam3DmCvx9k6gQAZ/g6wK8L+/Kff41qHT8F8sSJ7Qk67MTsDh13edPm/V5QsjtoB826c14UnCgxYQ8eZKhEOhiwvQ9IeFOBNTzk03nIreTXYQpxRoyXqfgu44g24PS5Jl/Y/t+c6xbOVy/T56HTK8= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1778691923; c=relaxed/simple; bh=FmZeEYM1AQI6+IdNPDTTt1m5CDiatRPwc3JGRC7NWHM=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=PRBdB/2/e1rO6gFWY6OZ36SHxuucWDGYe7ngt1R/TZS8FplNcP8jCIml5vAIRgqlEVwf1MXwUvJFO4LJ0jXAL7rX4+PWc/SOZh+2YZm420hN2GjwhBQbW5SWLyy9JUqlgpomNCBwmHQda1S0C12RZsQTaiRct9lqIOx+uBOYpac= 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=M//hMUKD reason="signing key too small" DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 207054BB58D0 Received: from eig-obgw-6007b.ext.cloudfilter.net ([10.0.30.166]) by cmsmtp with ESMTPS id NC5gw172qshqQND1OwcOjj; Wed, 13 May 2026 17:05:22 +0000 Received: from box5379.bluehost.com ([162.241.216.53]) by cmsmtp with ESMTPS id ND1NwymRotuVJND1NwV3dC; Wed, 13 May 2026 17:05:21 +0000 X-Authority-Analysis: v=2.4 cv=BNWzrEQG c=1 sm=1 tr=0 ts=6a04af51 a=ApxJNpeYhEAb1aAlGBBbmA==:117 a=ApxJNpeYhEAb1aAlGBBbmA==:17 a=NGcC8JguVDcA:10 a=ItBw4LHWJt0A:10 a=k30FPTVk26mTG3Uibd4A:9 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=FmZeEYM1AQI6+IdNPDTTt1m5CDiatRPwc3JGRC7NWHM=; b=M//hMUKDyq4sLS7elkNo/I5ck1 zActpNsRcRdOPGVKUHlbli+FlT9PBBMuqoe6U/TRCCvMFjKtOLb5IkzI6WkwtHv/quGATki4512UZ erqSxti1P0ni40FL7YcXIfKwk; Received: from 75-166-225-82.hlrn.qwest.net ([75.166.225.82]:52316 helo=bapiya) by box5379.bluehost.com with esmtpsa (TLS1.3) tls TLS_AES_256_GCM_SHA384 (Exim 4.99.2) (envelope-from ) id 1wND1L-000000032RG-1xug; Wed, 13 May 2026 11:05:20 -0600 From: Tom Tromey To: Tom Tromey Cc: "Metzger, Markus T" , Simon Marchi , "gdb-patches@sourceware.org" Subject: Re: [PATCH] gdb: fix an issue with thread list corruption In-Reply-To: <87bjejml9q.fsf@tromey.com> (Tom Tromey's message of "Wed, 13 May 2026 08:33:53 -0600") 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> <87bjejml9q.fsf@tromey.com> X-Attribution: Tom Date: Wed, 13 May 2026 11:05:17 -0600 Message-ID: <87v7crjl4i.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: 1wND1L-000000032RG-1xug X-Source: X-Source-Args: X-Source-Dir: X-Source-Sender: 75-166-225-82.hlrn.qwest.net (bapiya) [75.166.225.82]:52316 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: MS4xfLRuMlPgfYCjn+LZ/Jvn7VqsPicUv3Qo42qFGwH0TX4yoHGtRuH45tnv7iCoR04mERtaWSfjo3nfYWANf6O4iB12lcy+ok3q4rhfEaAivXTOsS7Ef99K 10pxJIiiiPpzddhgquii6RpNjoMXzx5SZfBLiQbTZx2Rwi+AszUHqfcMQJIe3NDyVzeYNlRzCgVmaRg9oWi8DzLHHdWZTWNtLWc= 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 >> I'm testing a patch [1] that changes for_each_thread(). Tom> What if we just got rid of for_each_thread and had the callers use a Tom> foreach and all_threads(). I wrote a patch to do this that I'll send in a bit. Tom