From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id IWr5AK0JGWJwVQAAWB0awg (envelope-from ) for ; Fri, 25 Feb 2022 11:54:05 -0500 Received: by simark.ca (Postfix, from userid 112) id E64BB1F3C8; Fri, 25 Feb 2022 11:54:04 -0500 (EST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-3.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,URIBL_BLOCKED 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 (2048 bits) server-digest SHA256) (No client certificate requested) by simark.ca (Postfix) with ESMTPS id D9DF51EE1F for ; Fri, 25 Feb 2022 11:54:03 -0500 (EST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 57E973858006 for ; Fri, 25 Feb 2022 16:54:03 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 57E973858006 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1645808043; bh=Ui+QCKVaeWTzGTJeEtOYuwqEVtWAXR4msETAxa/GqNc=; 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=vlaomAcf6z6GEoyl3zu8nYahSTWs8ZwUQd13uk+crghjqCTgTE33NhyjWt2i2BUG0 W5jxEig8NhDx2yqXE+OOmKKOQAVkCBPU9goRAWw6EtcZroz8i7G5A6RZMBLETEPaPs jLQir9bo6SjqRsijChhqXNzf8Na0iXi5nqgs32Jw= Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by sourceware.org (Postfix) with ESMTPS id 83B123858D35 for ; Fri, 25 Feb 2022 16:53:42 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 83B123858D35 X-IronPort-AV: E=McAfee;i="6200,9189,10268"; a="252452984" X-IronPort-AV: E=Sophos;i="5.90,136,1643702400"; d="scan'208";a="252452984" Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 25 Feb 2022 08:53:41 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.90,136,1643702400"; d="scan'208";a="628899117" Received: from orsmsx602.amr.corp.intel.com ([10.22.229.15]) by FMSMGA003.fm.intel.com with ESMTP; 25 Feb 2022 08:53:40 -0800 Received: from orsmsx609.amr.corp.intel.com (10.22.229.22) by ORSMSX602.amr.corp.intel.com (10.22.229.15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.21; Fri, 25 Feb 2022 08:53:40 -0800 Received: from ORSEDG601.ED.cps.intel.com (10.7.248.6) by orsmsx609.amr.corp.intel.com (10.22.229.22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.21 via Frontend Transport; Fri, 25 Feb 2022 08:53:40 -0800 Received: from NAM10-MW2-obe.outbound.protection.outlook.com (104.47.55.109) by edgegateway.intel.com (134.134.137.102) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2308.20; Fri, 25 Feb 2022 08:53:40 -0800 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=CeVf/w3fCSG+5RLIYhlPTrmBse1IwvG8iCmTUL48ZtydO4SSZ+qUNhAuphaHoXzPE4TmJYs+l5U0eeh9y9VNYhcCL8v9dQ50bSld/q7ZInypUfXbVHvbnJswH9+XbrDNE7En8OJLW8tOAp+rtz2DpFI2rtCXYYTWhAe6AAceGDhogY50TJI45KxsPmYr2MzId8IFR1Q7odqbsF5kCYO9mpZn0RdFbgpRWRHiguP2smg0AGA2x1Di0Dkxiv6RuABrr8Y7akQcigEOsl6+C643qM/qswZ/9XaxhPNUwTxnT0j92saQ5uhWUAWB0sZe5d1m6saMjMzxJPT2sR0rt9eWDQ== 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-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=sKyMmT5mkwpgAamiHjeQV/D04wPBMYD8mBlHaEtRm1A=; b=HJH6DKRXAAN+wztcfTum0PVOOSFrmCI9VbXavIO22ycCI0UdD5f2dYwXOFtywPbOeCPvCPAPHsOaIkZNNr8reOwR9NP8154nOWaqVfNQggaNiNi4ZAzfXrD7N5f7QjwFmhXHz7SpLQKd0cecWomYWoNHGADhe4PBRlZC+xHNKTeOGxMabBo7uQ5Lg6NzsBS3C1hj4wk8s/xc8s++QAu4kifwuZH1xIFu1jiChpNSv4pGGdUwY3osB1cs60iYx/yNdlXdohL6vu6iUjZGW9c1oo1MfuZyz833pXFiihy1qFlP9FjxwpxNvc34iWgziI2ljzza/4FJeEmtLz0a7uhivw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=intel.com; dmarc=pass action=none header.from=intel.com; dkim=pass header.d=intel.com; arc=none Received: from DM8PR11MB5749.namprd11.prod.outlook.com (2603:10b6:8:10::15) by MN2PR11MB4648.namprd11.prod.outlook.com (2603:10b6:208:26f::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5017.22; Fri, 25 Feb 2022 16:53:38 +0000 Received: from DM8PR11MB5749.namprd11.prod.outlook.com ([fe80::8072:5ca1:297a:f7f9]) by DM8PR11MB5749.namprd11.prod.outlook.com ([fe80::8072:5ca1:297a:f7f9%4]) with mapi id 15.20.5017.025; Fri, 25 Feb 2022 16:53:38 +0000 To: Kevin Buettner Subject: RE: [PATCH v3] Support glibc multiple namespace extension Thread-Topic: [PATCH v3] Support glibc multiple namespace extension Thread-Index: AQHXt841fh++1mKyOUOwLwh6jA+2FKyONpeAgACJUSCAD61xIIAG5PqA Date: Fri, 25 Feb 2022 16:53:38 +0000 Message-ID: References: <20220210160823.35a8508e@f35-zws-1> In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-reaction: no-action dlp-version: 11.6.401.20 dlp-product: dlpe-windows x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 7a6caf9f-ba95-4b93-ba9f-08d9f87f5ec4 x-ms-traffictypediagnostic: MN2PR11MB4648:EE_ x-microsoft-antispam-prvs: x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: Ipf1GxhmndS0yjo4mx8HnuFPOxChsD398SJzLTQzzuBux36Q3R4BvpWPmntAMmxV9UqULKPx8C/DyQgS0Km/HE6jllvxoTGyaZ0wEnw3idWxcD1MQ6d+kyJsN03I6l8RVZx0gPQLC3fqFVMmAa4it+sElbYXXWpS/CS5SQJxcJ3VYgtU4nc7Sy2LIWoS12QY8Dcclj/xYNTo00mJvvKR6lKosO497FynqU5h79QVf4M4xjdvMs042etY747RYqblM2yY4riREPUfeTad0rtZ9Xy65sFEqiBlE8JRNojJ4JOIB8jBhNBoKwFKhtV8dpg9e049O/yp68bCq2pP70cu0x9FoDEYeO4F2N8PjRFiasm3FIm6J5KzfdVKPbesqIDDxAAMS3MuPY7MjH/aeI9BwLXoHGI8LdqHeTEF7E40POubfmNsyj0yi+tE/RUyg2xCaFA9/gI21Yj20XEnUWieFsd8kYP/PS3oDZ3ALQFjMEM1GDFrdQcBOd05h4Zi7Tc65zy6hpZk1Zu937ot6sGFe3XF0kXXPk0DukVSsPpxTopn2vcmIRUptufzBbWf9VzRHjGiY1bDJGNWBr1q92ucpLkzDyyMgPDts9mSarbj2DFdjz0Ls8RNqLtNJxY7uKf8xKcSCgeKGSX9y5QzPVgPqWWhb+SIYUWsntnLZr1dObDbcwG6cn2JehMW6v8NfriMq/l1076zNzvd5JFz7AnquqJBPKRRFKBmD3xDf1N0Np/embEve671fsRolv2+k5bD4PfdZjI53N3oCncUbhApK5a+nUeDseyZJdiO86IwO24= x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DM8PR11MB5749.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230001)(366004)(8936002)(508600001)(76116006)(38070700005)(2906002)(5660300002)(52536014)(83380400001)(38100700002)(9686003)(86362001)(6506007)(71200400001)(26005)(186003)(7696005)(316002)(54906003)(66556008)(66946007)(66446008)(66476007)(64756008)(8676002)(55016003)(122000001)(82960400001)(84970400001)(4326008)(6916009)(33656002); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?Q0ENR4Tz3k1s6JTRoOVUUf0lW+4rpmVCThEyB4lTfRWwTKAZ2HZKUBDx0ChC?= =?us-ascii?Q?SOUbbXHdJfgWTxICWkxeVweYzSSDcMilsfoc6ZzxmwM3AGAHSd7fAVBquz5s?= =?us-ascii?Q?Ews0hs8EjmKfEZpTYDNUUnF8MH0+7Z4/x18/q1OaRgfaF1MO1Spf2ZtrTPmW?= =?us-ascii?Q?HrFz1FLgxB0JV+Me1l8bC6IAHbAT2qLFHYOoHYcVJvg7Nvbn0YWz03C2Wjh3?= =?us-ascii?Q?I5iDe/7uScx5r95AM78bYVoDrcz3+tWt8P6x6OpQfDBhZkL1XzlihG+Gub1G?= =?us-ascii?Q?X2kKkMwd4ThsSzURLkmeAHAnPW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xmwlvoRUlZ08JTA9m1gfnB9sP2mEXxTvf9z3XdZFBvP7JPs7DvtneY?= =?us-ascii?Q?aFEJVgo1xe00RV+VqWXnrFiMRwACIo7wkxQdt9H67oDDCm5MuVSIdbkSi3Oe?= =?us-ascii?Q?CKMBvOH6sxR4CXJ4+dWlPwm7B0CRcNR5v2kWHyxSoZ0or44k11tXXbTPkzE5?= =?us-ascii?Q?fOGE+F7+rqnPhUNbQsjAK9bvQBjkMROE1weSg2tj93rXMtiLBekWe4h9ybhq?= =?us-ascii?Q?PgqWhx5CM2p2FavCZKJ4i8jb5BIjA3Eq/WiqAT3qnvjYItZ/V4RoBrq2ftHL?= =?us-ascii?Q?B3tdF4DHlNd0BJuf48JImTYET7WbEraTjp7y4VJJ3DWgibvfxhA/u+BVG7Lv?= =?us-ascii?Q?DFkIvBa5hBxYTN+2LTjunT4WIRdF3PplxCpU9wBMihKvvg6a9qjg48MMu6Ht?= =?us-ascii?Q?svtJhzU9gB4c+EkbmcRVxL7lR8geDFH+C5jSq41dwHaI2/n1NDUnTMpk6hSa?= =?us-ascii?Q?xuJq2A=3D=3D?= Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: DM8PR11MB5749.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 7a6caf9f-ba95-4b93-ba9f-08d9f87f5ec4 X-MS-Exchange-CrossTenant-originalarrivaltime: 25 Feb 2022 16:53:38.3028 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 46c98d88-e344-4ed4-8496-4ed7712e255d X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: +hVN6ezJUwzhanqIILC5oZG3f+7EcKAGy/hbMVLUoNwTVK0gQK4ybDxrFUnzNp6zsIaeEe/6A2eTqPsOdJbi6kKB4nfHajadM6udvA/gFWE= X-MS-Exchange-Transport-CrossTenantHeadersStamped: MN2PR11MB4648 X-OriginatorOrg: intel.com Content-Transfer-Encoding: quoted-printable X-BeenThere: gdb-patches@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: "Metzger, Markus T via Gdb-patches" Reply-To: "Metzger, Markus T" Cc: "gdb-patches@sourceware.org" Errors-To: gdb-patches-bounces+public-inbox=simark.ca@sourceware.org Sender: "Gdb-patches" Hello Kevin, >This is indeed wrong and leads to > > if (li->l_prev !=3D prev_lm) > { > warning (_("Corrupted shared library list: %s !=3D %s"), > paddress (target_gdbarch (), prev_lm), > paddress (target_gdbarch (), li->l_prev)); > return 0; > } > >in svr4_read_so_list(). Assigning prev_lm to zero avoided the warning for >the first library in another namespace. I added more test cases to detect >this reliably. > >I'll try organizing SVr4 DSOs in per-namespace lists. That works. During testing I noticed Invalid cast. warning: Probes-based dynamic linker interface failed. Reverting to original interface. on dlcose(). This can also be reproduced with gdb.base/unload.exp and upstream GDB. I have not looked into this, yet. This is not detected by the test system and I'm not sure whether we actually want to consider falling back to the old interface a test fail. The invalid cast error we probably want to detect. I added support for detecting this invalid cast and the corrupted library list warning in gdb_continue_to_breakpoint. I still need to extend the library-list-svr4 XML to cover namespaces before I send an updated patch. I'll be out the next week so this will take a while. I currently check the XML version and put everything into a special namespace on the GDB side. We cannot use incremental updates this way but we're backwards compatible. The final version will support both the new format with namespaces and incremental updates and the old format without. Regards, Markus. Intel Deutschland GmbH Registered Address: Am Campeon 10, 85579 Neubiberg, Germany Tel: +49 89 99 8853-0, www.intel.de Managing Directors: Christin Eisenschmid, Sharon Heck, Tiffany Doon Silva = Chairperson of the Supervisory Board: Nicole Lau Registered Office: Munich Commercial Register: Amtsgericht Muenchen HRB 186928