From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id E32193896823; Wed, 7 Apr 2021 07:25:25 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org E32193896823 From: "rdiezmail-binutils at yahoo dot de" To: gdb-prs@sourceware.org Subject: [Bug gdb/23710] gdb is slow and memory hungry consuming debug generated with LTO by GCC Date: Wed, 07 Apr 2021 07:25:25 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: gdb X-Bugzilla-Version: 8.2.1 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: rdiezmail-binutils at yahoo dot de 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: Wed, 07 Apr 2021 07:25:26 -0000 https://sourceware.org/bugzilla/show_bug.cgi?id=3D23710 --- Comment #18 from rdiezmail-binutils at yahoo dot de --- Could someone clarify the status of this issue? Is a fix going to land soon? I would also like to know what the last version of GDB is without this issu= e, if any. And whether it would still work with newer GCC versions. Yesterday, GDB used too much memory on my PC. It even managed to freeze my Linux system, to the point that not even the mouse cursor was moving. I had= to pull the power cord. I don't have a swap file, but the OOM killer did not trigger. I am using a toolchain similar to this one: https://github.com/rdiez/JtagDue/blob/master/Toolchain/Makefile But I am targetting an embedded ARM Cortex-M4 at the moment. The toolchain component versions I was using were: BINUTILS_VERSION :=3D 2.35.1 GMP_VERSION :=3D 6.2.1 MPFR_VERSION :=3D 4.1.0 MPC_VERSION :=3D 1.2.1 GCC_VERSION :=3D 10.2.0 NEWLIB_VERSION :=3D 4.0.0 GDB_VERSION :=3D 10.1 GDB version 10.1 was sluggish with LTO release builds, but because I normal= ly use non-LTO debug builds, I have put up with this issue for a long time. However, I recently upgraded these toolchain component versions and rebuilt= the toolchain: BINUTILS_VERSION :=3D 2.36.1 NEWLIB_VERSION :=3D 4.1.0 After the upgrade, GDB started using gigabytes of memory when programming t= he firmware. The embedded firmware I am building has changed too, but it is very similar= , so it is hard to say if any particular change, for example #including more fil= es (which could bring in more debug symbols), has triggered the problem. --=20 You are receiving this mail because: You are on the CC list for the bug.=