From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: AS3215 2.6.0.0/16 X-Spam-Status: No, score=-4.2 required=3.0 tests=AWL,BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED,SPF_HELO_PASS,SPF_PASS shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from sourceware.org (server2.sourceware.org [IPv6:2620:52:3:1:0:246e:9693:128c]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by dcvr.yhbt.net (Postfix) with ESMTPS id 4435A1F8C6 for ; Wed, 28 Jul 2021 18:49:40 +0000 (UTC) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id B8132398202D for ; Wed, 28 Jul 2021 18:49:38 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org B8132398202D DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1627498178; bh=OwiabQEo3VhbjsgsuJEqjbdYMucKJy5fEbLgP3KOlyQ=; 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=HhVhbqxqNX3LBWs1TwSikB8Hy8RaMiirMPierqZeMZz4YjoPNAwYBpSOqOMopAlDk 4pY5sUfNvLRu15FWOG9tkDyLKm6dgvCCjijMmQBcN3ZhMhhXxzQA9qSdYi+PGoBVqM TOQCxL+FDTEHZpuKa8l6rXTPp5OuhRQb75uc/Exs= Received: from mail-pl1-x629.google.com (mail-pl1-x629.google.com [IPv6:2607:f8b0:4864:20::629]) by sourceware.org (Postfix) with ESMTPS id 27223383A822 for ; Wed, 28 Jul 2021 18:49:19 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 27223383A822 Received: by mail-pl1-x629.google.com with SMTP id t21so3767377plr.13 for ; Wed, 28 Jul 2021 11:49:19 -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=OwiabQEo3VhbjsgsuJEqjbdYMucKJy5fEbLgP3KOlyQ=; b=EIbUsmQConsrqdtC2Wmj/MKckVOsKMP+eeoZ7xgkG/cofOdX1JiWRBbuFeLBnHbsKG smYCmN7cCzsYD6TKYq3ye1ZZnFiyULYGhasi6gF9hOLt4C9UV3ThCZxtqV63BwtS0Y+p j8+nsA0e1aZOVjlvonon5JDYs5eeyb36R2k3f9/tVw+plu2udco/H/GzsY393M76zyda i36MQa/Z4BT29pr9H61bunftAzoQGBgnJIM1P399MVKySTFsu4yVRaNIzSFOlJrCu9jY qQ8HwCYojI2UQVGekwU2MoSogAAjy0UcVD/3viJYrljGLmn1pC9qaLtWdJT+UWkQI2Fm L6sA== X-Gm-Message-State: AOAM532JYwCcUrkoVFxD9er2LHTMe4Mdohyt44ZyYNNvtW8Z7nkf/ndL oyUhQshiaVHKquF2nkAL/fP8wmnHx+Ocw+8nUMQ= X-Google-Smtp-Source: ABdhPJxeb3OFqqLQStIiGwj+3cWxXRiIAWqfwnbGWRqaIXET4g2RshO1oKWgNtXwPG7fMt8mipS0jFoPrtip6X4i3ac= X-Received: by 2002:a63:58e:: with SMTP id 136mr276256pgf.37.1627498158196; Wed, 28 Jul 2021 11:49:18 -0700 (PDT) MIME-Version: 1.0 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> <20210728183338.GH1633923@zorba> In-Reply-To: <20210728183338.GH1633923@zorba> Date: Wed, 28 Jul 2021 11:48:42 -0700 Message-ID: Subject: Re: [RFC PATCH 0/3] implement dlmopen hooks for gdb To: Daniel Walker Content-Type: text/plain; charset="UTF-8" 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: , From: "H.J. Lu via Libc-alpha" Reply-To: "H.J. Lu" Cc: Florian Weimer , "Nikola Tesic -X \(ntesic - SYRMIA DOO NOVI SAD at Cisco\)" , "libc-alpha@sourceware.org" , Pedro Alves , "Jeremy Stenglein \(jstengle\)" , "xe-linux-external\(mailer list\)" Errors-To: libc-alpha-bounces+e=80x24.org@sourceware.org Sender: "Libc-alpha" On Wed, Jul 28, 2021 at 11:34 AM Daniel Walker via Libc-alpha wrote: > > 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 ? Cary made an announcement last August: https://groups.google.com/g/generic-abi/c/9OO5vhxb00Y/m/D-PCPis_CAAJ But I didn't see the github URL. -- H.J.