From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: 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> From: Emil Velikov 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 Cc: libc-alpha@sourceware.org, gdb-patches@sourceware.org, Simon Marchi , Kevin Buettner , Pedro Alves Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.3 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) 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: Mon, 19 Apr 2021 10:50:54 -0000 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