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-Status: No, score=-4.1 required=3.0 tests=AWL,BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, SPF_HELO_PASS,SPF_PASS shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from sourceware.org (server2.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 (4096 bits) server-digest SHA256) (No client certificate requested) by dcvr.yhbt.net (Postfix) with ESMTPS id 97A511F4B4 for ; Mon, 21 Sep 2020 20:02:24 +0000 (UTC) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 6F39B396E46A; Mon, 21 Sep 2020 20:02:23 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 6F39B396E46A DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1600718543; bh=EqFHz9RcNYqw8HWGFQhmmX3Ou7aiTCbVIshAMx9+Q6I=; h=To:Subject:Date:References:In-Reply-To:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:Cc: From; b=ETVeIuY52CznLlKxFmHEpbTgB7n5uYMSCPBb0fxYeCNKdbexMBrOiOdH5BaJ92NhR 9tR+ewgysfzY/Oa9U2G4KXi/3vLny2MbQfFU+t7nvWBLKJwOXkuw8e4Y6wQPXbSqYA 63AG/eK2VuGxh2w2BbsjLGnBwYB95tESlpBdD0GU= Received: from alln-iport-8.cisco.com (alln-iport-8.cisco.com [173.37.142.95]) by sourceware.org (Postfix) with ESMTPS id AA9CE3857C40 for ; Mon, 21 Sep 2020 20:02:20 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org AA9CE3857C40 IronPort-PHdr: =?us-ascii?q?9a23=3A39AHExcckYh9vLT2dFYIid4elGMj4e+mNxMJ6p?= =?us-ascii?q?chl7NFe7ii+JKnJkHE+PFxlwaQA9fB5v5EgvaQuKflCiQM4peE5XYFdpEEFx?= =?us-ascii?q?oIkt4fkAFoBsmZQVb6I/jnY21ffoxCWVZp8mv9PR1TH8DzNEffrn278XgZHR?= =?us-ascii?q?CsfQZwL/7+T4jVicn/3uuu+prVNgNPgjf1Yb57IBis6wvLscxDiop5IaF3wR?= =?us-ascii?q?zM8XY=3D?= X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: =?us-ascii?q?A0BdAQD/BWlf/4cNJK1fHAEBAQEBAQc?= =?us-ascii?q?BARIBAQQEAQFAgT4EAQELAYFRUQdwWS8sCod2A415j1uJGYFCgREDVQsBAQE?= =?us-ascii?q?NAQEjCgIEAQGESwKCKwIkNwYOAgMBAQsBAQUBAQECAQYEbYVcDIVzAQEBAxI?= =?us-ascii?q?oBgEBNwEPAgEIDgoeEBQeJwQOJ4MFgksDLgEOqhMCgTmIYXSBNIMBAQEFgTM?= =?us-ascii?q?Bg3sYghAJFIEkAYJwijsbgUE/g2w1PoJcA4EpARIBITKFRZJ3pDsKgmeIdoZ?= =?us-ascii?q?SinUwD6BynVyVGwIEAgQFAg4BAQWBaiRncHAVO4JpCUcXAg2OHwwXg06FFIF?= =?us-ascii?q?dg2V0NwIGCgEBAwl8jFIBgRABAQ?= X-IronPort-AV: E=Sophos;i="5.77,287,1596499200"; d="scan'208";a="563166306" Received: from alln-core-2.cisco.com ([173.36.13.135]) by alln-iport-8.cisco.com with ESMTP/TLS/DHE-RSA-SEED-SHA; 21 Sep 2020 20:02:19 +0000 Received: from XCH-ALN-005.cisco.com (xch-aln-005.cisco.com [173.36.7.15]) by alln-core-2.cisco.com (8.15.2/8.15.2) with ESMTPS id 08LK2Jt5019564 (version=TLSv1.2 cipher=AES256-SHA bits=256 verify=FAIL); Mon, 21 Sep 2020 20:02:19 GMT Received: from xhs-rcd-003.cisco.com (173.37.227.248) by XCH-ALN-005.cisco.com (173.36.7.15) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Mon, 21 Sep 2020 15:02:19 -0500 Received: from xhs-aln-003.cisco.com (173.37.135.120) by xhs-rcd-003.cisco.com (173.37.227.248) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Mon, 21 Sep 2020 15:02:17 -0500 Received: from NAM10-BN7-obe.outbound.protection.outlook.com (173.37.151.57) by xhs-aln-003.cisco.com (173.37.135.120) with Microsoft SMTP Server (TLS) id 15.0.1497.2 via Frontend Transport; Mon, 21 Sep 2020 15:02:17 -0500 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=nWQ6kmGN+Evvmjuoicsv2X1L3EOpHMTsmOEAlTNXHdesBVyA4OmZROYPplB447IeONa2Rbrjtcsm2230B4qe9nKdA4W3WyVZ40/R2oRj+ak8WyKJKjdRZ21G2CUSE2Hs1HGrGlM0a1o1Rw7ouwKFN8+45DOuQlgvpHoJ79QEgZGffpWSsONniFlysomMJAwr6hBzureKlstK2CfQR3IY/RsQebpZeyKw/RO8BDyVpfFP7+wVVRfmMQc8aLZe2i3KQaQr4cW3rDE95Aqhzy12LzNvcgImjhlzNWVM4R+eJIp0+L1HtIF++IsHX/2LKI06ty+tOysNErdjg7qAmWM/+A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=EqFHz9RcNYqw8HWGFQhmmX3Ou7aiTCbVIshAMx9+Q6I=; b=AJuhSBU0ljVtmXxf3YZAoLy+x0cI9SNSUBN2S0w+kvGAcSzHK7Swb5mP9iDMitHP5RumMIGbZPnbais21NoIxG262V2RvkJodgYzycuzGvzRiyoJKBQTUso6v2wh5iW+4mvlGCDSqqo/Et1R0L53sUSnB75KmyizJYiGhhL795n+bhoBjMajUtHtO9GiZi/S6u0stvgyq1HRqogzs/ccxUwjyAnrSLAbDhIlWAQyAaCBm4jZHqp6XEXnvHguMYLXojOdbxO+5kGN9Elo1bCYTVtrraHohnw+HSgxjnpRocoyyz+cruZAw5S8EV09L+D5O8rxLF6V1SL9ZTe02vcCZQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=cisco.com; dmarc=pass action=none header.from=cisco.com; dkim=pass header.d=cisco.com; arc=none Received: from BL0PR11MB3201.namprd11.prod.outlook.com (2603:10b6:208:6b::21) by BL0PR11MB3105.namprd11.prod.outlook.com (2603:10b6:208:33::29) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3391.15; Mon, 21 Sep 2020 20:02:17 +0000 Received: from BL0PR11MB3201.namprd11.prod.outlook.com ([fe80::a464:f45d:2dc9:f8df]) by BL0PR11MB3201.namprd11.prod.outlook.com ([fe80::a464:f45d:2dc9:f8df%5]) with mapi id 15.20.3391.024; Mon, 21 Sep 2020 20:02:17 +0000 To: Florian Weimer Subject: Re: [RFC PATCH 0/3] implement dlmopen hooks for gdb Thread-Topic: [RFC PATCH 0/3] implement dlmopen hooks for gdb Thread-Index: AQHWkFIbEYg1eZPVcEKE9rAYTqndhQ== Date: Mon, 21 Sep 2020 20:02:16 +0000 Message-ID: <20200921200216.GQ7261@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> In-Reply-To: <87imcb3xg1.fsf@oldenburg2.str.redhat.com> Accept-Language: en-GB, en-US Content-Language: en-US X-MS-Has-Attach: X-Auto-Response-Suppress: DR, OOF, AutoReply X-MS-TNEF-Correlator: user-agent: Mutt/1.9.4 (2018-02-28) x-originating-ip: [128.107.241.186] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: e3767732-3264-4f0c-cd13-08d85e693d98 x-ms-traffictypediagnostic: BL0PR11MB3105: x-ld-processed: 5ae1af62-9505-4097-a69a-c1553ef7840e,ExtAddr x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:7219; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: qSlSzK6Qwbx/p2cow6/G3lY32uCGsqROeF2zwWoF+VNjjSDaRSdq1/BLz48uqyvK0NWZiej9/cXf+o/ZbMANQcDOyq8extftESMTmT0qLZWlBcjhUZAHNtIg0v+l2riYkM9L9tRDnScKdPz19qyq6ZkU6930BO+xcr5IstQisujXfskRCYHSNhZXI51UFGXXonmZ5EVcBbpoEG+wN5kmitVg8wG8GgOagDpEEHFYSNXwySZVvru1SI5+k1gvLU1TbkcJyGv2JgVFicFbwCNgUKuZ5MMWmkkfbFGmopoXzTr0Cjr3nBwXeX9JbpaMIjK1q9xuth9AybdW9d7Ooc9GA5L5RcLLq2EfvqT+0vClpV72kb/44Q43syJOf3+UMp3vV8Rya9vt9YUmUtevBNtjT3jgLGOjM9Zj+p3r+z0+R8TU+92D7lj5MIcejSGMRCddH3d+LbXnk+Dwc3KZpOKizQ== x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:BL0PR11MB3201.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(7916004)(346002)(396003)(136003)(366004)(39860400002)(376002)(33716001)(6486002)(83380400001)(5660300002)(86362001)(186003)(33656002)(54906003)(26005)(316002)(107886003)(64756008)(9686003)(6512007)(53546011)(6506007)(2906002)(66476007)(4326008)(66556008)(66946007)(6916009)(71200400001)(91956017)(76116006)(8676002)(8936002)(1076003)(478600001)(66446008); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata: XhFVSYdh2AsbbnPZGq+kPkdOlu2BiJl+hVqJ8dwKy/+vrQ2n7cQibXfsxEuMETPLChn4LjGXhmaPfHU3114xjajs16N8Xd0LztqSJ1FcZnOWLsZEm3sYklVUcQLM83U2WZlLZB2TmhrL4xxsS3mU3LY7F4QGn8oPm7Iq+uJP4Y495V5VNZoUuQ0kzBB28MMaDfpetLqh5lTNbEBju/h+AAGua6tbXk7rx/IGO9vaBrZVLhN7IYeyZOlVSZbttIn66WlFEhY+xkihsYx8t1u2KI3fg+Yyfau+OaKdo/O5FwEi8kfhFyjrKlk2KtHor4f91D/CxD64br+c9wglk8PVWKFIGidPK4gIql7RujR1w8cZDVmzss3+7myQwTPte8e+qkBxnMDQV0Xv7ruSZafw6IzvcXnAM2tbqwCjeAVio4o/2aJOVdfgYbrgpAfmE60Rb6QPgjQuxGtnBlBzPvBh98r9aPY1jLq7gbvIJIpO0iIvwMLu+6sUDZXp02koPlCBTyrU5FATYRKuxotEchDEPU/TeF2FWv2KcNBt6IsSztKzFGewJWrCQR7F9PfSwVyjVqRbQlPxKE5LeDeNyxmIsbowTpZW6G2QsR5noT5msM1rmesk8KpaXLYvyKDC24TKqnebl4iKdrj4r0FjkLr5bA== Content-Type: text/plain; charset="us-ascii" Content-ID: Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: BL0PR11MB3201.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: e3767732-3264-4f0c-cd13-08d85e693d98 X-MS-Exchange-CrossTenant-originalarrivaltime: 21 Sep 2020 20:02:16.9926 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 5ae1af62-9505-4097-a69a-c1553ef7840e X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: gL06QK2jC0HH4Y3/Huw4EefkdVJl0BudWnip/N/qEUQwOdqLptfsODbhfCD2vl1jxwPeB2lErHkKEmyW/i8+1g== X-MS-Exchange-Transport-CrossTenantHeadersStamped: BL0PR11MB3105 X-OriginatorOrg: cisco.com X-Outbound-SMTP-Client: 173.36.7.15, xch-aln-005.cisco.com X-Outbound-Node: alln-core-2.cisco.com 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: "Daniel Walker \(danielwa\) via Libc-alpha" Reply-To: "Daniel Walker \(danielwa\)" Cc: "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@sourceware.org Sender: "Libc-alpha" On Fri, Sep 18, 2020 at 05:40:30PM +0200, Florian Weimer wrote: > * Daniel Walker: >=20 > > 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: > >> >=20 > >> >> You will always have .dynsym with a definition for _r_debug_dlmopen= . > >> >=20 > >> > 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. > >>=20 > >> You are correct. > >>=20 > >> I followed up on my own email regarding this. > >>=20 > >> So in the end to get process and core file debugging we'll need: > >>=20 > >> * _r_debug_dlmopen > >> * DT_DEBUG_DLMOPEN > >>=20 > > > > 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. >=20 > We are reviving GNU gABI maintenance. There's been quite a bit of list > activity, and a proposal of a first ABI document: >=20 > >=20 > I have a feeling that we might be soon over this bump, and getting > things added should become easier. >=20 > 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-) >=20 The only fully working version we have is the one I released originally. Ye= s, that version had no DT_DEBUG_DLMOPEN. It should be working and you can demo= it.=20 We're still working on updating GDB to use the new interfaces. In terms of updating the gABI, should I just add a patch to glibc to add va= lues or do I need special documents to be submitted ? Daniel=