From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from EUR01-VE1-obe.outbound.protection.outlook.com (mail-eopbgr140048.outbound.protection.outlook.com [40.107.14.48]) by sourceware.org (Postfix) with ESMTPS id 07E88385843A for ; Tue, 8 Mar 2022 08:58:33 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 07E88385843A Received: from AS9PR06CA0056.eurprd06.prod.outlook.com (2603:10a6:20b:463::28) by AM5PR0802MB2595.eurprd08.prod.outlook.com (2603:10a6:203:a2::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5038.14; Tue, 8 Mar 2022 08:58:26 +0000 Received: from VE1EUR03FT058.eop-EUR03.prod.protection.outlook.com (2603:10a6:20b:463:cafe::89) by AS9PR06CA0056.outlook.office365.com (2603:10a6:20b:463::28) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5038.14 via Frontend Transport; Tue, 8 Mar 2022 08:58:25 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 63.35.35.123) smtp.mailfrom=arm.com; dkim=pass (signature was verified) header.d=armh.onmicrosoft.com;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 VE1EUR03FT058.mail.protection.outlook.com (10.152.19.86) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5017.22 via Frontend Transport; Tue, 8 Mar 2022 08:58:25 +0000 Received: ("Tessian outbound 826a6d8e58c3:v113"); Tue, 08 Mar 2022 08:58:25 +0000 X-CheckRecipientChecked: true X-CR-MTA-CID: 91290fcdd87660b9 X-CR-MTA-TID: 64aa7808 Received: from f6f250480b62.1 by 64aa7808-outbound-1.mta.getcheckrecipient.com id 70AADA8A-9468-490E-94D3-3C95B3B20697.1; Tue, 08 Mar 2022 08:58:18 +0000 Received: from EUR05-DB8-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id f6f250480b62.1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Tue, 08 Mar 2022 08:58:18 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Zb0MFxlY/+p3NFEBrT2hkT596k324iue8ImIgqt8uSZ/CKJ35wK7ovEfCefP4LGa4XkUL0QDETUvG54bWEL3FvvYOfohJTi1NbNPk1IfLYRmymkQps/WT7xj1/lCL5483F27FzjPiVdXBvToOILlabPI3uMocDJMCtwo2w2QEytgHTglFmgErgO9vqu2nnys6VSYC1+ELxLMfk606vhYyfP78YOKg+At+Y69wcQ3VOz7cVVF+IVS1Vyld6y8HuAD+QGv3CE0UDTNlU5lRTKIrD9V113FWwDSa6Vhr9LsA/0W2Jal7089jbc+2ZKARK49QIoVheg83X9KfD7ILFMj6g== 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=ZPYGyM04gBwUj7PDYLvaLyhL5796ItZ6IpKIOiT4BzY=; b=BCHf4kY9oWJvSFNJARUEhxbrMHrFTcxyzBA2asvQrs2Sw0I+rFqV/0Stlztssa2X+pD5KoRYSTaFfi8Muc+BRBz6ouMedumdANeXc9NBsKY4CsrkNnr/QlTCTtoUdz7KGJnZiNNdB1FoQeOVDUywV+Qbv+Enf1WTmr17AwZtktm6E4KL4l4RadYnromMFe3kuMmVY/qMwsPVn6qt3T5tk5EQhVsG6ZKHAKCcIDJIZ0YAT5aLKCXfsPixxfjmxbtkPTI8BRkhqq715+F/i6GzczcLjFtSNt2JPSTRg/wc22uyNGrYRi5/Z4j99weyEbgZYKY37ELbJ63mUx6cMbV6Uw== 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: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=arm.com; Received: from VI1PR08MB3919.eurprd08.prod.outlook.com (2603:10a6:803:c4::31) by VI1PR0801MB2029.eurprd08.prod.outlook.com (2603:10a6:800:84::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5038.15; Tue, 8 Mar 2022 08:58:16 +0000 Received: from VI1PR08MB3919.eurprd08.prod.outlook.com ([fe80::457d:362e:8883:dd2a]) by VI1PR08MB3919.eurprd08.prod.outlook.com ([fe80::457d:362e:8883:dd2a%7]) with mapi id 15.20.5038.027; Tue, 8 Mar 2022 08:58:16 +0000 Message-ID: Date: Tue, 8 Mar 2022 08:58:09 +0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.5.0 Subject: Re: Internal error with gcc 4.7 elffile Content-Language: en-US To: Fabian Cenedese , gdb@sourceware.org References: <20220308075403.BD4194ACEF70@macserver.private> From: Luis Machado In-Reply-To: <20220308075403.BD4194ACEF70@macserver.private> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable X-ClientProxiedBy: SA9P221CA0024.NAMP221.PROD.OUTLOOK.COM (2603:10b6:806:25::29) To VI1PR08MB3919.eurprd08.prod.outlook.com (2603:10a6:803:c4::31) MIME-Version: 1.0 X-MS-Office365-Filtering-Correlation-Id: efe43100-f05d-4432-4a74-08da00e1ce74 X-MS-TrafficTypeDiagnostic: VI1PR0801MB2029:EE_|VE1EUR03FT058:EE_|AM5PR0802MB2595:EE_ X-Microsoft-Antispam-PRVS: x-checkrecipientrouted: true NoDisclaimer: true X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam-Untrusted: BCL:0; X-Microsoft-Antispam-Message-Info-Original: TYXs5ERXMSjKcTpQn0IcfHAo8iK+A0gAA/c2ih1AJHwBAIWU5j9elJ7ft+mO8XVRLUgmjga3Oyv4okpY3v25zuxMZlEdexzytczA2PtuO3jpJxMxLvqEVIOxVI+8+9pO/DISqNTUqZ4EpF8+mpz8RwcFPYDShGTvBgraEZ/O1c3AymjxgmifFixkGy1qE2ZbJDpLlDJE3E9ZpcVAUxOxA3rGdRRYNtsmRGgS1UfVrN9kVz6gEVAf94+vj5a1HE1Vcms9sPISpdBL008DkXW2+VhO6+xvfIgCfmhrVEKABOpdP6CN1wJibOIIMHJg1bnlXbkOaQDP24dVQ0nB43ZQaxpplzL1Y4TwtsiHz+cahsqVbSbs6R5d7kICfuJTB1d1DA0aTLOu5guZBNNIGlSCQvt67opfAzS1QKpI7VigcOGRKDIF31vQBStU9RKxqDHoam8neL5Ve/GFXDSvOVr/D/DjNNbZ+3b7adg6IPORCW0vJT/U1w75rq2uh0hZ+AxagBhXOtDX1vnnzFbf3mwpalmp11vxUWMPO24EjHqa3+d6u683eNkVhFhESc16C62R+/eyPiy1+eniJpU9vdWru6c/WaI3FGJeNF5F0FH+DdfARd4iTpUN7W9DDbC4wuy+u726DbZRlTxFH7QJgrb9WI4o1+KpjJW8rEUL/L531W4tJR6lYpdRYAbys1TFriCahcR1aosvjpqLtELgYyZ0g6UCKfmistyusqL+NPsIMYI1et0DvTlViB/WmEYJiCMMgmGpq7JPbCJrT8BqEtkrB6Nw27bg7RagqO+MoSRGlsgKh8tL969lC+hdojma1U4Q X-Forefront-Antispam-Report-Untrusted: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:VI1PR08MB3919.eurprd08.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230001)(4636009)(366004)(26005)(2616005)(508600001)(8676002)(44832011)(83380400001)(186003)(36756003)(31686004)(86362001)(6506007)(53546011)(2906002)(6666004)(31696002)(5660300002)(8936002)(66556008)(66476007)(6486002)(66946007)(966005)(316002)(38100700002)(6512007)(43740500002)(45980500001); DIR:OUT; SFP:1101; X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR0801MB2029 Original-Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=arm.com; X-EOPAttributedMessage: 0 X-MS-Exchange-Transport-CrossTenantHeadersStripped: VE1EUR03FT058.eop-EUR03.prod.protection.outlook.com X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id-Prvs: ca1aa2d4-2c02-48cb-9004-08da00e1c863 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: UYgJ/sVEeEh1AoJDSscINHk31omrJ0ejE41t+n9tElMfdBJUmz+OTEfRiaFoCDRAAKLfmy6xK43CLL770JmNQpaAMry/12zijtsumee7tTYxPRvGoKcLO3vfpEjXiupZGJVyqoj0y/t2alcPRDerhNkpmhOKkCg32YnRfwBZ3pYmkrud8LtKoYCs/8J7m42SFagzj7fm1UaUyWpfxEQHlKI0OEnhHyWEqefJ1tf/GWpqYuV5/L/mg1nkrQdYS3hTKp1aEZXIAA+tBbZgDM6G9Rn1udNv4LAad9qf+wXUrAQgoU38ZpZjT1GIOS6/Q+83GpusuK00Wq4+AbfIgyUYUyRE120k40rYhexHQ67EC62YSLlBKGuqIFK+DMAGBEpd7qriCScPlNlR51t2xiGJH6sDaEeD2i4pub49JTewnLAWieL7SqBUsPRpYjT0MV/1msT5Eh6kUtUEBwTRySZek36a2TZrahQzTI6ujRuMm7Hi3ZUHdttUoD+PLB5Pamt7unaKxQdStH0PdP4Bu6vhBy/k5kDda2WMKMFglx383pDYn9DkfkaOxnEAH06fgqyRUCd34xYm9HRVGbrikQldDHNbbw0UUe9rmyuZT0rXhGgHMv/SR0yz1k8u6E7WXlfxZKvTfB7AUsErAAdjW8Qypsxb8fW2VkbxlIcZPoxJ7GrwMH+/KW33ikmYTr5tyJrbb7QMy6PJweZA5UGQ9NEsenKvPvCdPS5ZBmei8ruiIT2K6sWxFYs/aRLqK8CMdQYOZNtlvbJfYG8YjqY0pUd+IJKQKf6dYsWZoXsQKK8SJWc= 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:(13230001)(4636009)(46966006)(40470700004)(36840700001)(86362001)(508600001)(6666004)(8676002)(82310400004)(70586007)(70206006)(5660300002)(40460700003)(31696002)(966005)(6486002)(316002)(83380400001)(47076005)(36860700001)(6512007)(53546011)(6506007)(336012)(26005)(186003)(2616005)(356005)(81166007)(8936002)(36756003)(31686004)(2906002)(44832011)(43740500002); DIR:OUT; SFP:1101; X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 08 Mar 2022 08:58:25.6647 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: efe43100-f05d-4432-4a74-08da00e1ce74 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: VE1EUR03FT058.eop-EUR03.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM5PR0802MB2595 X-Spam-Status: No, score=-6.1 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, NICE_REPLY_A, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2, SPF_HELO_PASS, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE, UNPARSEABLE_RELAY 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: gdb@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 08 Mar 2022 08:58:36 -0000 Hi, On 3/8/22 07:54, Fabian Cenedese wrote: > Hello > > I'm currently working with a gdb 11.2.90.20220208, used for cross-compile= d > .elf files for PowerPC and ARM. There are no problems with elf files from > gcc 7 or 10 or clang 12. However an elf file from a gcc 4.7 leads to an > internal error in gdb. Somehow it can't detect the architecture. It shoul= d > be PowerPC as readelf is able to confirm. > > ---------------------------- > Reading symbols from inos_testing.elf... > ../../gdb/gdbarch.c:3576: internal-error: bool gdbarch_elf_make_msymbol_s= pecial_p(gdbarch*): Assertion `gdbarch !=3D NULL' failed. > A problem internal to GDB has been detected, > further debugging may prove unreliable. > Quit this debugging session? > ---------------------------- > > First I wanted to know if this should work at all or is gcc 4.7 too old t= o > be supported by gdb 11? If it should still work, is this a known problem? > I couldn't find bugs mentioning gdbarch.c > The same elffile works perfectly fine with a gdb 7.6. A workaround seems > to be to first start gdb, then set architecture before loading elffile. Although gcc 4.7 is fairly old, it could be a bug or deficiency in GDB. It might be the case that GDB is not finding what it is looking for, thus ending up in an inconsistent state. If you have a reproducer, it might be worth opening a bug ticket against GDB so developers can take a look: https://sourceware.org/bugzilla/ IMPORTANT NOTICE: The contents of this email and any attachments are confid= ential and may also be privileged. If you are not the intended recipient, p= lease notify the sender immediately and do not disclose the contents to any= other person, use it for any purpose, or store or copy the information in = any medium. Thank you.