From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 5F4D13982060; Mon, 10 May 2021 14:51:28 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 5F4D13982060 From: "tromey at sourceware dot org" To: gdb-prs@sourceware.org Subject: [Bug macros/27754] Excessive CPU load and memory usage with -g3 debug info Date: Mon, 10 May 2021 14:51:27 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: macros X-Bugzilla-Version: 10.1 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: tromey at sourceware dot org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: gdb-prs@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb-prs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 10 May 2021 14:51:28 -0000 https://sourceware.org/bugzilla/show_bug.cgi?id=3D27754 --- Comment #9 from Tom Tromey --- (In reply to Richard Biener from comment #6) > The non-LTO .debug_macro has >=20 > DW_MACRO_import - offset : 0x0 > DW_MACRO_end_file >=20 > as well, whatever that means. The problem with LTO is that the output is pathological. For example I see this sequence: DW_MACRO_import - offset : 0x0 DW_MACRO_end_file DW_MACRO_import - offset : 0x0 DW_MACRO_end_file DW_MACRO_import - offset : 0x0 DW_MACRO_end_file This says to import the macros from offset 0 three times in succession. While this is technically ok, it's also absurd. Is this really intentional? This file imports the unit at offset 0x0 multiple times -- 108 in fact. We can probably work around it in gdb somehow. My first thought is to have it simply skip multiple imports of the same unit. This could in theory yield the wrong answer sometimes, though. Looks vaguely related to bug#26303, in the "suspicious import" sense. --=20 You are receiving this mail because: You are on the CC list for the bug.=