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: AS17314 8.43.84.0/22 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, MSGID_FROM_MTA_HEADER,RCVD_IN_DNSWL_MED,SPF_HELO_PASS,SPF_PASS, UNPARSEABLE_RELAY 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 274201F5AE for ; Thu, 22 Apr 2021 07:28:49 +0000 (UTC) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 012A239C0005; Thu, 22 Apr 2021 07:28:47 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 012A239C0005 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1619076527; bh=27WmZdsLFCF3c1p4XJsNKHXbbKnY5S7EDqeZogIi5LM=; h=Date:To:Subject:References:In-Reply-To:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:Cc: From; b=J8DeTCMLkx8a1jws2z5wo/Rltv4Vic0gOteX749iAa0k4sZFEj9Om1bMb1bzLZ2VY HHHwgSNBBPh6ex9uWnGoueNt5HGztUp/iiiEKOHqcl9XP5u3oRf4lXaFSoQ0RfzdqS mnJNhFkPb0QPd5o2E8U1P+truGBwosCDsTToCVGg= Received: from EUR05-VI1-obe.outbound.protection.outlook.com (mail-vi1eur05on2058.outbound.protection.outlook.com [40.107.21.58]) by sourceware.org (Postfix) with ESMTPS id C118739C0005; Thu, 22 Apr 2021 07:28:42 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org C118739C0005 Received: from DB6PR07CA0166.eurprd07.prod.outlook.com (2603:10a6:6:43::20) by DB8PR08MB5433.eurprd08.prod.outlook.com (2603:10a6:10:118::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4042.16; Thu, 22 Apr 2021 07:28:41 +0000 Received: from DB5EUR03FT017.eop-EUR03.prod.protection.outlook.com (2603:10a6:6:43:cafe::ac) by DB6PR07CA0166.outlook.office365.com (2603:10a6:6:43::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4087.17 via Frontend Transport; Thu, 22 Apr 2021 07:28:41 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 63.35.35.123) smtp.mailfrom=arm.com; sourceware.org; dkim=pass (signature was verified) header.d=armh.onmicrosoft.com;sourceware.org; dmarc=pass action=none header.from=arm.com; Received-SPF: Pass (protection.outlook.com: domain of arm.com designates 63.35.35.123 as permitted sender) receiver=protection.outlook.com; client-ip=63.35.35.123; helo=64aa7808-outbound-1.mta.getcheckrecipient.com; Received: from 64aa7808-outbound-1.mta.getcheckrecipient.com (63.35.35.123) by DB5EUR03FT017.mail.protection.outlook.com (10.152.20.114) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4065.21 via Frontend Transport; Thu, 22 Apr 2021 07:28:40 +0000 Received: ("Tessian outbound 700fd1fc53d5:v90"); Thu, 22 Apr 2021 07:28:40 +0000 X-CheckRecipientChecked: true X-CR-MTA-CID: 03ecee806c7ac2fc X-CR-MTA-TID: 64aa7808 Received: from 9b8630e34db6.1 by 64aa7808-outbound-1.mta.getcheckrecipient.com id 4D9C7B9E-622F-4A80-9155-3132925457E3.1; Thu, 22 Apr 2021 07:28:31 +0000 Received: from EUR05-VI1-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id 9b8630e34db6.1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Thu, 22 Apr 2021 07:28:31 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Kz34YdhPhJgxzjf/tc0X+PGxM+cWkWZoKM5HL809nuEgp/KLoDtfTGLzxa2cs4Jmw5Xx5KmvwoVXpWGfmuk8IAGrFK1qwU2xB+EhAEMJZFUHz0x1Xs1Z607598RrUWLoOiHXD/vC3zLieYG2jpuDrWhI9jwE2Sdol/7rL3+sslrDkjbHvvh/pCtElw3Aq6yqmtDTwwnrcIswgN93REUpILxru777Y5p65z8gCfGYO+KErJ0lczd+y7TFkF9si+5gRXa2nD+/0Mjq7dZET/xU8/nWxeySLmgtkU/3LzXlIjeu1BZVCpW7t0+L2n7jT9XiOUTg9czVt03kLmrnok+fxQ== 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=27WmZdsLFCF3c1p4XJsNKHXbbKnY5S7EDqeZogIi5LM=; b=dDMO6cd3CoFh0UmHrCUolwkZCBNcrz3DjlBkm6GqMeiDLqYpIar8U8llWkB7gVc9SdgF6s7xzA8hK9rQetQFIOmhRF5Obo2IR1xihMbpxtJfQI6F3YUedTg4N1765tOX4ss0xVep9slxPQ+i7k/RUykq0M2hxbY4fBAXpjhz1NshLyyJi79fW+nkbw3a2izVbZMEqEiGM+u/eUQ0IgitrCvp7Q4TJJb1GBzeuT8Yu4i0NMsA2ZHcDNxEUKeyxLKyXBp64ROn2YXg2Uq7T/t0Gy4fANt84j8vlv/UNDNT/x9cInOFOidEU21rNDT6X8Bwx1W+aYR/vs7/IPVD2KVltw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=arm.com; dmarc=pass action=none header.from=arm.com; dkim=pass header.d=arm.com; arc=none Authentication-Results-Original: redhat.com; dkim=none (message not signed) header.d=none;redhat.com; dmarc=none action=none header.from=arm.com; Received: from PA4PR08MB6320.eurprd08.prod.outlook.com (2603:10a6:102:e5::9) by PAXPR08MB6752.eurprd08.prod.outlook.com (2603:10a6:102:131::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4065.21; Thu, 22 Apr 2021 07:28:29 +0000 Received: from PA4PR08MB6320.eurprd08.prod.outlook.com ([fe80::c99f:671d:bb2c:f20b]) by PA4PR08MB6320.eurprd08.prod.outlook.com ([fe80::c99f:671d:bb2c:f20b%7]) with mapi id 15.20.4065.022; Thu, 22 Apr 2021 07:28:29 +0000 Date: Thu, 22 Apr 2021 08:28:27 +0100 To: Florian Weimer Subject: Re: [PATCH v3] nptl_db: Support different libpthread/ld.so load orders (bug 27744) Message-ID: <20210422072821.GE9028@arm.com> References: <87tuo24kxi.fsf@oldenburg.str.redhat.com> <87czunoo5m.fsf@oldenburg.str.redhat.com> Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <87czunoo5m.fsf@oldenburg.str.redhat.com> User-Agent: Mutt/1.9.4 (2018-02-28) X-Originating-IP: [217.140.106.55] X-ClientProxiedBy: LO3P265CA0014.GBRP265.PROD.OUTLOOK.COM (2603:10a6:600:bb::19) To PA4PR08MB6320.eurprd08.prod.outlook.com (2603:10a6:102:e5::9) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from arm.com (217.140.106.55) by LO3P265CA0014.GBRP265.PROD.OUTLOOK.COM (2603:10a6:600:bb::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4042.24 via Frontend Transport; Thu, 22 Apr 2021 07:28:29 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 7ddfd2b5-2eb1-4e4c-fecf-08d9056040a1 X-MS-TrafficTypeDiagnostic: PAXPR08MB6752:|DB8PR08MB5433: X-Microsoft-Antispam-PRVS: x-checkrecipientrouted: true NoDisclaimer: true X-MS-Oob-TLC-OOBClassifiers: OLM:2958;OLM:2958; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam-Untrusted: BCL:0; X-Microsoft-Antispam-Message-Info-Original: x51rfcVfYKto7260Fb0uXT6FVtw3Dj7ElhYU5J6NV+R0N2hT+0n3lrTpGwS7Cq56lfOcarVIU+7Sl06rD1URlNsy18KztKWHxLUl4x3KeNx3qlGOgETqpRiakeiWnstoMCEwCTy3yp8BpUez05KFEwU+e9iniZxqb04PmEHdBIfR4LP+2ddxExV85XSrqrKOqqmtYvJK3KyfmJbhYe5B1YMrTZgKoT+wE7gFjdq/iDN6PAjDtU+SDImANrM76OOVhfRDTEx5H+tfP9nG8kLFc1VHz9wduxkg+lMYMm/B5V8wccDRLv0O5z4HQkmuOAcB7fft+O71Kl4yVFZuKhveiopYAwGgfOzK95rc4SqXyY2cxKo6EsixUlmsjxoag4y8Vhainm8Fez1iO69qYYpNEF1+ry1pG12gqLmUMtCf3ntu258kELXQWB+xYlSXmNGNTfK/2BWoGmAV/HpNRHOMVOOnuDZXuROtL7A44BrZ/F66HuRTBp+14q1NFyM9MnjxoOMaE2PfbOPDStjuR0YXeeT/uP/JfB2DKK3L4Qu0iV72Jid5NPJC1d9BxZEf2LDT7TsL4EKLe6QdgXwAZqd5bi0pMNcmXcDFVUkaqB5jABu5wYn7Jbhj9stysHoXK4KuFT0Z+DeNEgz6E8jhidQ8WQ== X-Forefront-Antispam-Report-Untrusted: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:PA4PR08MB6320.eurprd08.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(376002)(346002)(396003)(39860400002)(366004)(136003)(38350700002)(16526019)(55016002)(44832011)(956004)(478600001)(26005)(38100700002)(8676002)(2616005)(6916009)(186003)(4326008)(8936002)(52116002)(7696005)(54906003)(66476007)(83380400001)(66556008)(66946007)(36756003)(33656002)(5660300002)(1076003)(86362001)(8886007)(2906002)(316002); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData: =?utf-8?B?NzhObTNsQ3FlZDBDU0lic0haUTVWemJlV2xITlRxYnp6aFZhQXZ3Zy9RWUhT?= =?utf-8?B?ZWRKMWZmTjNLL2h2L1BJcElNSE5hMGNJMExOcVVhc3g3WlJENFpVREI1UW1I?= =?utf-8?B?L09ORHJxdjY2UnhlZWdPa2U5RTA5WlhyWmZ2c1NodHRkN0J3dU1xT05aVVVw?= =?utf-8?B?aGlyOEFybXYvenNodzYyTHd3Wmg2ZFJLZTF3MWt6WWNxaDR6WDJBaVoxcTJR?= =?utf-8?B?V2hZUEFCQjZDOTA2eFhHalY3b285TWt3Sk9zK255TDQzb1RCa2RUZU5ZM292?= =?utf-8?B?eVhNWUhTQ0xkRVBWV0NEdUpHR2hTTWxaSzJVVjJQS241VitIQUNxa3NxUGti?= =?utf-8?B?RXdrTXRLMFRDeVRXZEtHY2d1dFUzajRaRmNXTG5aZWl4V2dTZEdJTXVUSUFG?= =?utf-8?B?VFJVTGFxejJsTzRjUGVDc2lZM1hzbk1VTmlVRWNGQTJHb1RoTkwxV3JTM1B4?= =?utf-8?B?QU5Rd3JWbURGNENBZlloY1VhRHRYUEY2TEZXRW1iZEl3Qk12b01ZcUc0Q2pW?= =?utf-8?B?dnNGYXB2d3ZsUStkbnQ3OHloTDkyNTRXTWk3MkYrWWtVcW9EaTQzaXpSclFk?= =?utf-8?B?aHF4MnhHU0RXaS82VnpQeXordWlhYnNxYzRVeHNoL1Z5Z1dHWWVtNXJFMVpW?= =?utf-8?B?S1M5bmQ4TmV2R0UvZzJuSnEwb0Jnd1IyMHk2L0tkZGl0SVJueWdMYUhTK2tn?= =?utf-8?B?aVRrYWxVNU5pSXM2Y0VSTUdrL3N3akc0TGdRNDQ4VTUwbkd0RmhhNjBORkZG?= =?utf-8?B?cW5BMjNvQzlnT1ZZa2F5Q283ejFYbEQvTUs2ek9HNytYNlVVYm1SQVBmdzVW?= =?utf-8?B?T0t4YTMxdERpd1VRM3pLMFNxUVpZVjZGQjhqZkdNWjlmU093NERmQk94c25O?= =?utf-8?B?M05KUXFkSHdzdmdRbFVTUnd6Tm9HV21XRWIrNG1wWEdGRlVPT2hCYUU1aHlG?= =?utf-8?B?MmRicUE0QWZNYUxzUjlLZDRVWThueURkM1g2bC9BWVMxZ053dFZ5bmFEK0hi?= =?utf-8?B?cDdTMjhxQWlrY2xWcWdrMGZzdDhkcWJBWUZwTFMzU3IwVUp5NHVqTGhSQUlq?= =?utf-8?B?VGxZWmtyZlhhN1YzTkRhciticVFhSkY4YUk4bGpHWGtaRnFhSEQ3aEE0Wm9N?= =?utf-8?B?ekI1V3ZWZXhhM20xU3Y3R0hKZXQwc3l2VUFORGVEVUdYTTFGZ0gxRm9QNEpn?= =?utf-8?B?eStlSm5vNGd0Um5hOHUzN2ZhenNsWEVpQmE0TXM2Z1dBTjJ5anIxV2tiR2ht?= =?utf-8?B?cHFUd1JBOUY3UFY3TFFBQnJBVzV2YXBwK2NaVk15ZDViTU9uWHFnVzhyMVg3?= =?utf-8?B?dlRGTWFYcWxRdnRZRzArcUd3UTQ2VXdkbkl1NGY1UHRsL1Z5a3pwTXNIZkpH?= =?utf-8?B?ZUZ5MUlrMGVrTTRucGlVNjFSOXh1WWo1ODhQdXVKekNGczZEK0lXRGlMVytH?= =?utf-8?B?RzVkQ3AwRG01MDlCU1NPMjZKMnczVnZoSmRZaFJ1ZjdHbFR0aW52dzFtOHYv?= =?utf-8?B?VjlVZEswaG1QbnoydkllalhQMWI3akdtbDhqN1ZaVFhoWmpUbVBIa2lmb0Jo?= =?utf-8?B?c1l5YkdUQ1FMYUlEazJqWXphQUlHQWw1d1VwWFROTGpEL0V1VTJhQVhWMnlY?= =?utf-8?B?Zmd4dHRVVUNIUXNrQk9KdXoxeEQwNXZvRkNUeEVSVng5ZEw1aUZDN0FHc3lO?= =?utf-8?B?bTkzd3hIbDFubXg3ckhpTEtnNWdwMytVVjJTQjBQZ09xSXpzeTdLNDVWRkcy?= =?utf-8?Q?OhYBxbQI8sfP7qwkjGi2LvQnmSwt78Rsj7M5Dpm?= X-MS-Exchange-Transport-CrossTenantHeadersStamped: PAXPR08MB6752 Original-Authentication-Results: redhat.com; dkim=none (message not signed) header.d=none;redhat.com; dmarc=none action=none header.from=arm.com; X-EOPAttributedMessage: 0 X-MS-Exchange-Transport-CrossTenantHeadersStripped: DB5EUR03FT017.eop-EUR03.prod.protection.outlook.com X-MS-Office365-Filtering-Correlation-Id-Prvs: 880c04eb-dbf4-4c18-c40b-08d9056039bd X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 1a12AkGfehnv46yY7x9cHbB+Au+upl9FiTQFBmrNwH6m6s8p3A+vAKPhc/fi6SWFcKnwgQYn7692oMduz6fsVXiX2CP1baqN7Oq2zCbfTSXY5SFRdvrefRTVH4FYR4s9sHznMFb3jBBt+HAXppLgVbaTB3JGTuXmycL0oesiYOtxtrNNkor91ZGs4E3azfSqbk57+hpudu6nQdE+BQVh+QJRGb614rbYdKFE6uEWfvAu5uhtouSf/bdld8KsfKI1MJGkLJ+one3o/z7lBeBEjyTNI05Dgf8pGb3RJ5wKINKSy6YlvGW/F4D6DuvUfa3WLFEDclzPJThA7C1cRqUZv7qTAzmnjBU5fanrayLCjG8V3IIxT8eoPbR1yxSLr+WldJcxcyCwzEu4ByuBa/woLTTlqrnSI9gk2tuT/To8eGdPDvqDkCfF103sQoqF1jh14ZVkKg4FxNDKra4N6oLeLTzWVCD9ytgQNxY8flY7Vgf4g5ByzkBvBpZtKpDSd3TvNT19UZhJxQhljmGNM8fEh7qmzcNrSUiPdxa83MwoJTP+zD831yub28nmde35DdqWiio1X4QUdY8WKC0ZM+Pfb0RxiQeNxRhve4c7FezEJkcmdC2AZoyNFMJiXAgDMx6t6CMpmLBx1LfpTJTT0evvPBx1+rajpL9pZHbUaqbobWPUV2ZliKPjy8S5m3sXd/W2 X-Forefront-Antispam-Report: CIP:63.35.35.123; CTRY:IE; LANG:en; SCL:1; SRV:; IPV:CAL; SFV:NSPM; H:64aa7808-outbound-1.mta.getcheckrecipient.com; PTR:ec2-63-35-35-123.eu-west-1.compute.amazonaws.com; CAT:NONE; SFS:(4636009)(39860400002)(136003)(376002)(346002)(396003)(36840700001)(46966006)(1076003)(4326008)(36860700001)(54906003)(82310400003)(450100002)(33656002)(2616005)(336012)(82740400003)(8936002)(8886007)(16526019)(47076005)(70206006)(8676002)(70586007)(356005)(2906002)(86362001)(26005)(7696005)(36756003)(81166007)(6862004)(316002)(55016002)(5660300002)(44832011)(478600001)(186003)(956004)(83380400001)(34070700002); DIR:OUT; SFP:1101; X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 22 Apr 2021 07:28:40.8903 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 7ddfd2b5-2eb1-4e4c-fecf-08d9056040a1 X-MS-Exchange-CrossTenant-Id: f34e5979-57d9-4aaa-ad4d-b122a662184d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=f34e5979-57d9-4aaa-ad4d-b122a662184d; Ip=[63.35.35.123]; Helo=[64aa7808-outbound-1.mta.getcheckrecipient.com] X-MS-Exchange-CrossTenant-AuthSource: DB5EUR03FT017.eop-EUR03.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB8PR08MB5433 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: Szabolcs Nagy via Libc-alpha Reply-To: Szabolcs Nagy Cc: Pedro Alves , gdb-patches@sourceware.org, Florian Weimer via Libc-alpha , Kevin Buettner , Simon Marchi Errors-To: libc-alpha-bounces@sourceware.org Sender: "Libc-alpha" The 04/21/2021 13:47, Florian Weimer via Libc-alpha wrote: > * 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. on the aarch64 buildbot i see FAIL: nptl/tst-pthread-gdb-attach $ cat nptl/tst-pthread-gdb-attach.out +set debug libthread-db 1 +add-symbol-file /work/glibc-aarch64-linux/build/build/nptl/tst-pthread-gdb-attach add symbol table from file "/work/glibc-aarch64-linux/build/build/nptl/tst-pthread-gdb-attach" +set auto-load safe-path /work/glibc-aarch64-linux/build/build/nptl_db +set libthread-db-search-path /work/glibc-aarch64-linux/build/build/nptl_db +attach 461328 [New LWP 461329] Trying host libthread_db library: /work/glibc-aarch64-linux/build/build/nptl_db/libthread_db.so.1. td_ta_new failed: application not linked with libthread thread_db_load_search returning 0 Trying host libthread_db library: /work/glibc-aarch64-linux/build/build/nptl_db/libthread_db.so.1. [Thread debugging using libthread_db enabled] Using host libthread_db library "/work/glibc-aarch64-linux/build/build/nptl_db/libthread_db.so.1". thread_db_load_search returning 1 0x0000ffff96d3bb18 in __futex_abstimed_wait_common64 (futex_word=0xffff96cca210, expected=461329, clockid=, abstime=0x0, private=, cancel=cancel@entry=true) at futex-internal.c:74 74 err = INTERNAL_SYSCALL_CANCEL (futex_time64, futex_word, op, expected, +break debugger_inspection_point Breakpoint 1 at 0x1ea8: file tst-pthread-gdb-attach.c, line 76. +continue Timed out: killed the child process Termination time: 2021-04-21T18:44:39.686118409 Last write to standard output: 2021-04-21T18:44:19.867449485 the test nptl/tst-pthread-gdb-attach-static passes: $ cat nptl/tst-pthread-gdb-attach-static.out +set debug libthread-db 1 +set auto-load safe-path /work/glibc-aarch64-linux/build/build/nptl_db +set libthread-db-search-path /work/glibc-aarch64-linux/build/build/nptl_db +attach 461347 [New LWP 461348] Trying host libthread_db library: /work/glibc-aarch64-linux/build/build/nptl_db/libthread_db.so.1. [Thread debugging using libthread_db enabled] Using host libthread_db library "/work/glibc-aarch64-linux/build/build/nptl_db/libthread_db.so.1". thread_db_load_search returning 1 0x0000000000419c40 in __futex_abstimed_wait_common64 (futex_word=0xffff94b08590, expected=461348, clockid=, abstime=0x0, private=, cancel=cancel@entry=true) at futex-internal.c:74 74 err = INTERNAL_SYSCALL_CANCEL (futex_time64, futex_word, op, expected, +break debugger_inspection_point Breakpoint 1 at 0x400720: file tst-pthread-gdb-attach.c, line 76. +continue [Switching to Thread 0xffff94b084c0 (LWP 461348)] Thread 2 "tst-pthread-gdb" hit Breakpoint 1, debugger_inspection_point () at tst-pthread-gdb-attach.c:76 76 } +thread 1 [Switching to thread 1 (Thread 0x828d000 (LWP 461347))] #0 0x0000000000419c40 in __futex_abstimed_wait_common64 (futex_word=0xffff94b08590, expected=461348, clockid=, abstime=0x0, private=, cancel=cancel@entry=true) at futex-internal.c:74 74 err = INTERNAL_SYSCALL_CANCEL (futex_time64, futex_word, op, expected, +print altered_by_debugger $1 = 0 +print altered_by_debugger = 1 $2 = 1 +thread 2 [Switching to thread 2 (Thread 0xffff94b084c0 (LWP 461348))] #0 debugger_inspection_point () at tst-pthread-gdb-attach.c:76 76 } +print altered_by_debugger $3 = 0 +print altered_by_debugger = 2 $4 = 2 +continue [Thread 0xffff94b084c0 (LWP 461348) exited] [Inferior 1 (process 461347) exited normally]