From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-io1-xd2c.google.com (mail-io1-xd2c.google.com [IPv6:2607:f8b0:4864:20::d2c]) by sourceware.org (Postfix) with ESMTPS id 3EF4C3858D3C for ; Tue, 16 Aug 2022 13:18:12 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 3EF4C3858D3C Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=fitzsim.org Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=fitzsim.org Received: by mail-io1-xd2c.google.com with SMTP id o2so8137062iof.8 for ; Tue, 16 Aug 2022 06:18:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fitzsim-org.20210112.gappssmtp.com; s=20210112; h=content-transfer-encoding:mime-version:user-agent:message-id :in-reply-to:date:references:subject:cc:to:from:from:to:cc; bh=IYIUucYn2gtxn4DlJFo/knR87Bmjd5ahJlb0Luvr4g4=; b=Jw1jRDu4aznhd36aggtsYiyYcvYuSiYICFixowgbDK/Mdi25k6VPWHRikgjhrrUDCm yvbNFx3yrRoa4TxSvvkAapOJq0gS1IS3SQ/NjsULzCONfdvovRjVnkjblfPvveoqh5jO LlAeifof72V6LXfN+5inctEIPOCSd2RJ+OknDkuESMNsKskIoba3EW4m6oBv/UF0mUN/ g9wCHKMbQT4xBdrpsMNM0P8UUsHRCpsOdQdsBnRYkTgQsv57ao1yGXRlglcysI1eySb9 L18Ntt4lxCt046dtj6xqU0sc2i68Uqhe+ora6KfDNSPF0hh6EhU0dmhPed0WjIch466v Yldw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:user-agent:message-id :in-reply-to:date:references:subject:cc:to:from:x-gm-message-state :from:to:cc; bh=IYIUucYn2gtxn4DlJFo/knR87Bmjd5ahJlb0Luvr4g4=; b=DWhDeE8p8N1GEJUh6jGtknUxKf0G2jS//YRnraIv4pgNv4e4T41R2LC63wEmwNAuBt REAv4Mf5jmoS0NP2QPLLwE6kgB1skzniSVrBS4ND2lMvMGpWe7DA5/1+R1nXD6oY7Xxx UtYPYEOe9PZWE32hMe/b2w+Xp0r8QeTjilqmXmzVkmIXXXbZvtLhiGlw+pOa3anaYt/o +1U74fFdt4s1sfCInSqvwpxTfR4vYjo16Y+g2gyOR2FuEORjTPa+eNh6gzrqls8ef7dU Z2b/UMcYO1COiMOzeS9XGlgeNkyY/NpjrHy4e8Wa3FDJFGtE5q45v5OSEpWouiJzVAgB D+pg== X-Gm-Message-State: ACgBeo3oB77kYZgaPSbkI/yPTNsx76F2RUKEqOL7KWqe8FEjVtlnxTrT ZvkwhGrmevN5iemcL9GhkQ0tag/MbSk/XBsb X-Google-Smtp-Source: AA6agR4ZKjhBo/gwKvxP35bGHuLhj1EMWL4W1SveJS+L1n0XtUWI/OFvUDl9o5y8xzmyLpqcCgt2vg== X-Received: by 2002:a05:6638:3801:b0:346:8a42:ac39 with SMTP id i1-20020a056638380100b003468a42ac39mr3692810jav.313.1660655891182; Tue, 16 Aug 2022 06:18:11 -0700 (PDT) Received: from localhost.localdomain (69-165-165-189.dsl.teksavvy.com. [69.165.165.189]) by smtp.gmail.com with ESMTPSA id m11-20020a92cacb000000b002de3a85e256sm4931750ilq.69.2022.08.16.06.18.10 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 16 Aug 2022 06:18:10 -0700 (PDT) From: Thomas Fitzsimmons To: Wilco Dijkstra Cc: Florian Weimer , Mark Wielaard , 'GNU C Library' Subject: Re: [PATCH] Improve performance of IO locks References: <878rnoeja2.fsf@oldenburg.str.redhat.com> Date: Tue, 16 Aug 2022 09:18:09 -0400 In-Reply-To: (Wilco Dijkstra's message of "Tue, 16 Aug 2022 10:24:57 +0000") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE 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: libc-alpha@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Libc-alpha mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 16 Aug 2022 13:18:17 -0000 Hi Wilco, Wilco Dijkstra writes: >>> I looked at elf/unload as an example; it's segfaulting in >>> _dl_relocate_object, backtrace attached; not sure what else to check. >> >> I don't see this on powerpc64, with a toolchain based on GCC 8.2 and >> binutils 2.30.=C2=A0 I'm at a loss how these things could be related. > > I would not expect the dynamic linker to have changed at all, so one > option is to check the binary is identical before/after my commit. If > the dynamic linker somehow got some uses of SINGLE_THREAD_P then that > might access TLS before it is setup. elf/ld64.so.1 is identical before and after your change. > The other possibility is that the binary it is trying to link has > corrupted relocations. It's hard to imagine how that could happen > unless you use the new GLIBC to link an application and fileio fails > to write out the data for the relocations. I don't know how to check this. I'll contact you off-list to set up temporary remote access for you. Thomas