From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from rcdn-iport-9.cisco.com (rcdn-iport-9.cisco.com [173.37.86.80]) by sourceware.org (Postfix) with ESMTPS id 81CB5386197D for ; Wed, 28 Jul 2021 18:33:41 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 81CB5386197D X-IronPort-AV: E=Sophos;i="5.84,276,1620691200"; d="scan'208";a="822552633" Received: from rcdn-core-8.cisco.com ([173.37.93.144]) by rcdn-iport-9.cisco.com with ESMTP/TLS/DHE-RSA-SEED-SHA; 28 Jul 2021 18:33:40 +0000 Received: from zorba ([10.24.27.66]) by rcdn-core-8.cisco.com (8.15.2/8.15.2) with ESMTPS id 16SIXcf7003939 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Wed, 28 Jul 2021 18:33:40 GMT Date: Wed, 28 Jul 2021 11:33:38 -0700 From: Daniel Walker To: Florian Weimer Cc: "Carlos O'Donell" , "libc-alpha@sourceware.org" , Pedro Alves , "Jeremy Stenglein (jstengle)" , "xe-linux-external(mailer list)" , "Nikola Tesic -X (ntesic - SYRMIA DOO NOVI SAD at Cisco)" Subject: Re: [RFC PATCH 0/3] implement dlmopen hooks for gdb Message-ID: <20210728183338.GH1633923@zorba> References: <20200626193228.1953-1-danielwa@cisco.com> <0f791d3a-20bc-4524-54eb-ce6df108fbff@redhat.com> <20200723184054.GD9875@zorba> <3ff42e45-b394-bf50-38c4-93baecc71497@redhat.com> <20200916161836.GW7261@zorba> <85ee3ea9-039b-a5db-a84e-224924822c79@redhat.com> <871rj0imo8.fsf@oldenburg2.str.redhat.com> <5ce2d889-9eea-4c53-8bba-d8216f2bf513@redhat.com> <20200918153543.GX7261@zorba> <87imcb3xg1.fsf@oldenburg2.str.redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <87imcb3xg1.fsf@oldenburg2.str.redhat.com> X-Auto-Response-Suppress: DR, OOF, AutoReply X-Outbound-SMTP-Client: 10.24.27.66, [10.24.27.66] X-Outbound-Node: rcdn-core-8.cisco.com X-Spam-Status: No, score=-11.5 required=5.0 tests=BAYES_00, DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, SPF_HELO_PASS, SPF_NONE, TXREP, USER_IN_DEF_DKIM_WL autolearn=ham autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) 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, 28 Jul 2021 18:33:45 -0000 On Fri, Sep 18, 2020 at 05:40:30PM +0200, Florian Weimer wrote: > * Daniel Walker: > > > On Thu, Sep 17, 2020 at 09:53:30AM -0400, Carlos O'Donell wrote: > >> On 9/17/20 8:59 AM, Florian Weimer wrote: > >> > * Carlos O'Donell: > >> > > >> >> You will always have .dynsym with a definition for _r_debug_dlmopen. > >> > > >> > Note that this doesn't work if you just have a core file. In order to > >> > find _r_debug (or _r_debug_dlmopen), a debugger needs the exact same > >> > copy of ld.so that was used by the executable, otherwise the symbol > >> > cannot be found in the image. > >> > >> You are correct. > >> > >> I followed up on my own email regarding this. > >> > >> So in the end to get process and core file debugging we'll need: > >> > >> * _r_debug_dlmopen > >> * DT_DEBUG_DLMOPEN > >> > > > > It seems like adding DT_DEBUG_DLMOPEN into the gABI might take some > > effort. Have you considered this ? The last one which was added was > > DT_SYMTAB_SHNDX in 2018, and it looks like it did not come from glibc. > > We are reviving GNU gABI maintenance. There's been quite a bit of list > activity, and a proposal of a first ABI document: > > > > I have a feeling that we might be soon over this bump, and getting > things added should become easier. > > In the meantime, can we demo this feature without DT_DEBUG_DLMOPEN? > With a patch glibc and gdb? Incidentally, I have an LD_AUDIT issue I > need to debug. 8-) Do you know what the status of taking over the gABI is ? Daniel