From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from omta36.uswest2.a.cloudfilter.net (omta36.uswest2.a.cloudfilter.net [35.89.44.35]) by sourceware.org (Postfix) with ESMTPS id 8204A3858D1E for ; Tue, 19 Mar 2024 20:18:01 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 8204A3858D1E 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 8204A3858D1E Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=35.89.44.35 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1710879483; cv=none; b=pZNijNKh0IIGqB7vLnCSahXiC7UABqqCibGw6NgPFY+7TfDF8fpDd1Yr1rMuPLgPUFRkQP+Pt5QoWOTGooU1PrjwT0WuB20/5CutjdqAFpJyhAWigFh3xmj80b7le5uOMRpazBnN3xeOfaQj3nWJ31FsOBAEWc63JlwfOTZ74G0= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1710879483; c=relaxed/simple; bh=XtIAQvdcW/inzZjMZzk8wKOPQFNFfczUaSAik01nLY8=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=Ci+Q2uMvPN3ZNjUcPvTUUxBovs8aegO5BaRFcMYVKqPHj1qQeGRX5GiCLVYyfohcXMnZ6USyfniH5ilwAbIJHG6DV9YfW6JMplg5nM9puj8d1QtHmNCgnmyQpjOOR1O4rYlUDaFL/fXw7hbLvWq11qx9+4u9IyI2ltedMK3snyQ= ARC-Authentication-Results: i=1; server2.sourceware.org Received: from eig-obgw-6002a.ext.cloudfilter.net ([10.0.30.222]) by cmsmtp with ESMTPS id mRGRrUjcHtf2QmfuKrgB32; Tue, 19 Mar 2024 20:18:00 +0000 Received: from box5379.bluehost.com ([162.241.216.53]) by cmsmtp with ESMTPS id mfuJrkmSNiKqRmfuKrGtyt; Tue, 19 Mar 2024 20:18:00 +0000 X-Authority-Analysis: v=2.4 cv=I9quR8gg c=1 sm=1 tr=0 ts=65f9f2f8 a=ApxJNpeYhEAb1aAlGBBbmA==:117 a=ApxJNpeYhEAb1aAlGBBbmA==:17 a=K6JAEmCyrfEA:10 a=Qbun_eYptAEA:10 a=zstS-IiYAAAA:8 a=xlUL3fBkHtTlp1kcBfEA:9 a=zgiPjhLxNE0A:10 a=zZCYzV9kfG8A:10 a=4G6NA9xxw8l3yy4pmD5M: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:In-Reply-To:Date:References :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=oyP1bkMhEW2BWm1Fsr78Q0BtORWNjn2+8ng12tI8p6U=; b=LENZ7LatBzmSuTfQEWhFVleSIB 9AmTYce11X33BmiByRlPOrTKWNcOllDZwCI6DdgIiXSGTs1hdyb+be1q0A7+cU11TOVPvzmbgPp6Z mUY/pThBac/vkMdipn/2xIKyM; Received: from 97-122-82-115.hlrn.qwest.net ([97.122.82.115]:40810 helo=murgatroyd) by box5379.bluehost.com with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96.2) (envelope-from ) id 1rmfuJ-003W74-1P; Tue, 19 Mar 2024 14:17:59 -0600 From: Tom Tromey To: Tom Tromey Cc: Alan Modra , binutils@sourceware.org Subject: Re: [PATCH 1/3] Make several more BFD globals thread-local References: <20240130010540.1754740-1-tom@tromey.com> <20240130010540.1754740-2-tom@tromey.com> <87sf1xjj62.fsf@tromey.com> <87bk8ljh31.fsf@tromey.com> <87y1asxl6l.fsf@tromey.com> <87v85ouzdo.fsf@tromey.com> X-Attribution: Tom Date: Tue, 19 Mar 2024 14:17:58 -0600 In-Reply-To: <87v85ouzdo.fsf@tromey.com> (Tom Tromey's message of "Thu, 14 Mar 2024 18:12:19 -0600") Message-ID: <871q86gemh.fsf@tromey.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.3 (gnu/linux) 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: 97.122.82.115 X-Source-L: No X-Exim-ID: 1rmfuJ-003W74-1P X-Source: X-Source-Args: X-Source-Dir: X-Source-Sender: 97-122-82-115.hlrn.qwest.net (murgatroyd) [97.122.82.115]:40810 X-Source-Auth: tom+tromey.com X-Email-Count: 2 X-Org: HG=bhshared;ORG=bluehost; X-Source-Cap: ZWx5bnJvYmk7ZWx5bnJvYmk7Ym94NTM3OS5ibHVlaG9zdC5jb20= X-Local-Domain: yes X-CMAE-Envelope: MS4xfG3lJA66ZtH0Z2eFkQSTQM5kdWnDWwob/FSn6Dq8Ob9ZganM0tX6cIrxkuhM7WOd6/b8YuxJMnHkbybiV9lvvNR8wrApNuFMMuEhjs2CLi23ym4kVUGH QXr2Zq9ggoxDSwaFPBlw9YP4TCOj8leIe2sjMs+PVsFnqbLQYjVWYr+Z4tVLv/fOb3A/i1QniwR1iVwGJDmBbm1nREcvNC5Ri+o= X-Spam-Status: No, score=-3015.4 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,JMQ_SPF_NEUTRAL,SPF_HELO_NONE,SPF_PASS,TXREP,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: >>>>> "Tom" == Tom Tromey writes: Alan> Oops, sorry. I didn't see any uses of bfd_print_error in the sources Alan> and didn't check its history. Tom> Thanks, I appreciate the update. I sent the rewrite of gdb's error Tom> handler to gdb-patches today. Tom> I also have a patch to handle thread-safety with the per-xvec messages. Tom> I'm going test that with the bug you mentioned before submitting it. Quick update on this... I sent another note about my inability to access the test. While looking into this, though, I couldn't reproduce the exact race mentioned in the bug. However, I still believe it is there. And, my testing shows another race, this time between a call to bfd_cache_close_all on one thread, and bfd_check_format_matches on another. I plan to rework my patch to account for this as well, I think by having bfd_cache_close_all skip any BFDs currently being format-matched. Tom