From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id wYkvKJBgfWBjbwAAWB0awg (envelope-from ) for ; Mon, 19 Apr 2021 06:50:56 -0400 Received: by simark.ca (Postfix, from userid 112) id 972C91F104; Mon, 19 Apr 2021 06:50:56 -0400 (EDT) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-0.7 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,MAILING_LIST_MULTI,RDNS_DYNAMIC,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.2 Received: from sourceware.org (ip-8-43-85-97.sourceware.org [8.43.85.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by simark.ca (Postfix) with ESMTPS id E4A141E54D for ; Mon, 19 Apr 2021 06:50:55 -0400 (EDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 5F456394FC0A; Mon, 19 Apr 2021 10:50:55 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 5F456394FC0A DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1618829455; bh=vQiSRhbC7+ugP0fHCmygvIgP8+/mGbFBZgJ+nrBmA/Q=; h=References:In-Reply-To:Date:Subject:To:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:Cc: From; b=vDvPJkj4PxhlvpZhdNbHmfTN1IO3QbqoJcE/vYZw0NOnFNdvnAfkCWvdOKdGU8F3w d38q4qUQwJ9r43uWm3YxCZ47jVSFhiYwejr1aGINRwqV2od0d+wJydORhKBEJwkQFF jyNHKCWj4ZPIvaQs+sOHhoozbnJ/01RzKq2Nm+ok= Received: from mail-ua1-x933.google.com (mail-ua1-x933.google.com [IPv6:2607:f8b0:4864:20::933]) by sourceware.org (Postfix) with ESMTPS id C1E5B394FC0A; Mon, 19 Apr 2021 10:50:43 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org C1E5B394FC0A Received: by mail-ua1-x933.google.com with SMTP id a12so7008429uak.6; Mon, 19 Apr 2021 03:50:43 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=vQiSRhbC7+ugP0fHCmygvIgP8+/mGbFBZgJ+nrBmA/Q=; b=Aan4KyrYUeXi3PEh+JyAQHkNeaxKo/3zsCLSxHTIdADHaCfIRZiFzoX18BSDAL9PUu KprGlq62d3hD7TFOXeILc4aNPdH8fQmczfX7r+/RX9AxSfpctgEeW8xzaVWPvfhCD5TC MsZSNRh/zZ0zWPr0fk3PWOxRaCMNnmbSRxxTPCYG3Ya6RDtuwckgOS1IQ3WLy1ZJYahh mozxOeLyJw2taEIYA3c0zrFdwjKYweFtbHj26clq8tZZjbVjK4ApQ8T97khvkGaE6pCu f3frKxvWyv6JOtmU0cu/hrWFnIFVO7qCCGJjrsC3KX+6lvC/g/nP2VAV51fKpxM9WzFT WWqA== X-Gm-Message-State: AOAM533DNZ9M7w4Rfc52jAsvC2V3D5LJ380H803z5W44fRFjD5MtlWfT q/8R5ksPgTNdi2ELFnPmaa5yWZV4YKm/gXiEuRGxcZHeizOLVQ== X-Google-Smtp-Source: ABdhPJxwt5OO9vVE7aS9KzZpT6T8pgx8glgmw+Jg+L9dCaKLuuWGFfIZwrhHPJrSGGyX2o5GeygcerJi2ggTNeSIPAQ= X-Received: by 2002:ab0:2a84:: with SMTP id h4mr7018371uar.46.1618829443429; Mon, 19 Apr 2021 03:50:43 -0700 (PDT) MIME-Version: 1.0 References: <87czuum5yb.fsf@oldenburg.str.redhat.com> In-Reply-To: <87czuum5yb.fsf@oldenburg.str.redhat.com> Date: Mon, 19 Apr 2021 11:50:32 +0100 Message-ID: Subject: Re: [PATCH v2] nptl_db: Support different libpthread/ld.so load orders (bug 27744) To: Florian Weimer Content-Type: text/plain; charset="UTF-8" X-BeenThere: gdb-patches@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: Emil Velikov via Gdb-patches Reply-To: Emil Velikov Cc: Pedro Alves , libc-alpha@sourceware.org, gdb-patches@sourceware.org Errors-To: gdb-patches-bounces@sourceware.org Sender: "Gdb-patches" Hi Florian, On Fri, 16 Apr 2021 at 19:37, Florian Weimer wrote: > > libthread_db is loaded once GDB encounters libpthread, and at this > point, ld.so may not have been processed by GDB yet. As a result, > _rtld_global cannot be accessed by regular means from libthread_db. > To make this work until GDB can be fixed, acess _rtld_global through > a pointer stored in libpthread. > > The new test does not reproduce bug 27744 with > --disable-hardcoded-path-in-tests, but is still a valid smoke test. > With --enable-hardcoded-path-in-tests, it is necessary to avoid > add-symbol-file because this can tickle a GDB bug. > > Fixes commit 1daccf403b1bd86370eb94edca794dc106d02039 ("nptl: Move > stack list variables into _rtld_global"). > > --- > v2: Fixes suggested by Pedro. The static tests is now actually built > and run. > Thanks for the prompt fix. Both v1 and v2 fix the issue for me with gimp and steam. Feel free to add: Tested-by: Emil Velikov Are there any plans for glibc 2.33.1 or shall I ask the Arch Linux maintainers to include this in the package? Thanks again, Emil