From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [216.205.24.124]) by sourceware.org (Postfix) with ESMTP id 1AAEC389203D for ; Wed, 21 Apr 2021 11:46:55 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 1AAEC389203D Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-199-Bh54_U1aOIGXOYLg3w9jwg-1; Wed, 21 Apr 2021 07:46:47 -0400 X-MC-Unique: Bh54_U1aOIGXOYLg3w9jwg-1 Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id AB1491966323; Wed, 21 Apr 2021 11:46:46 +0000 (UTC) Received: from oldenburg.str.redhat.com (ovpn-113-20.ams2.redhat.com [10.36.113.20]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 3CDCA60C05; Wed, 21 Apr 2021 11:46:45 +0000 (UTC) From: Florian Weimer To: Florian Weimer via Libc-alpha Cc: gdb-patches@sourceware.org, Pedro Alves , Kevin Buettner , Simon Marchi Subject: Re: [PATCH v3] nptl_db: Support different libpthread/ld.so load orders (bug 27744) References: <87tuo24kxi.fsf@oldenburg.str.redhat.com> Date: Wed, 21 Apr 2021 13:47:01 +0200 In-Reply-To: <87tuo24kxi.fsf@oldenburg.str.redhat.com> (Florian Weimer via Libc-alpha's message of "Mon, 19 Apr 2021 12:40:09 +0200") Message-ID: <87czunoo5m.fsf@oldenburg.str.redhat.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.12 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain X-Spam-Status: No, score=-6.4 required=5.0 tests=BAYES_00, DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H4, RCVD_IN_MSPIKE_WL, 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: Wed, 21 Apr 2021 11:46:56 -0000 * Florian Weimer via Libc-alpha: > 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"). > > --- > v3: Mark test as UNSUPPORTED if launching gdb fails with ENOENT. > This is the version I'd like to commit soon. I've pushed this version given that Pedro acknowledged v2. Thanks, Florian