From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from xry111.site (xry111.site [IPv6:2001:470:683e::1]) by sourceware.org (Postfix) with ESMTPS id 56965385828E for ; Tue, 5 Jul 2022 08:47:54 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 56965385828E Received: from localhost.localdomain (xry111.site [IPv6:2001:470:683e::1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature ECDSA (P-384) server-digest SHA384) (Client did not present a certificate) (Authenticated sender: xry111@xry111.site) by xry111.site (Postfix) with ESMTPSA id 33E146679A; Tue, 5 Jul 2022 04:47:51 -0400 (EDT) Message-ID: <5696c3f05f24fe66840630446f54e5c2b4c8eb56.camel@xry111.site> Subject: Re: [PATCH] Mips: Enable asynchronous unwind tables with both ASAN and TSAN From: Xi Ruoyao To: Fangrui Song Cc: Dimitrije Milosevic , Djordje Todorovic , "gcc-patches@gcc.gnu.org" Date: Tue, 05 Jul 2022 16:47:49 +0800 In-Reply-To: <624d68f0ea3c05a90e384e7e06a6597ab4158b3a.camel@xry111.site> References: <7e4db89fea59f636afd7abce981cc625d940b5cd.camel@xry111.site> <624d68f0ea3c05a90e384e7e06a6597ab4158b3a.camel@xry111.site> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.44.3 MIME-Version: 1.0 X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FROM_SUSPICIOUS_NTLD, LIKELY_SPAM_FROM, SPF_HELO_PASS, SPF_PASS, TXREP, T_PDS_OTHER_BAD_TLD, 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 X-BeenThere: gcc-patches@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 05 Jul 2022 08:47:56 -0000 On Tue, 2022-07-05 at 12:51 +0800, Xi Ruoyao via Gcc-patches wrote: > I agree it's fine, but the problem is TSAN is currently "unsupported" > within GCC (i. e. when you build gcc libtsan is not built).=C2=A0 So it > does > not make any benefit to commit this change before making TSAN > supported > on GCC side. >=20 > Dimitrije told me TSAN should be supported on 64-bit MIPS, but I can't > make it work fine with GCC.=C2=A0 I'll need some time to debug... Hi Fangrui, On my system dlpi_tls_modid for libtsan.so.2 is 2, instead of 1.=20 GetStaticTlsBoundary seems assuming the dlpi_tls_modid for libtsan.so to be 1, and returning wrong values if the assumption is broken. Is it unsafe to make such an assumption? Or, am I being haunted by a glibc bug? --=20 Xi Ruoyao School of Aerospace Science and Technology, Xidian University