From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id ACB0538582A1; Wed, 19 Jul 2023 13:35:08 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org ACB0538582A1 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1689773708; bh=VJYuDXmPDy7aSxDCtRI29LK4HJtz9BPYw1HUTgDXQ18=; h=From:To:Subject:Date:In-Reply-To:References:From; b=ZB+R/pE3KXKA802rMxbJPSaAl5ZZouiW7gyBXQ8sqtQBjZn1UoniRqcrKaUDlb2OC Ayg7LMsd7sxJyKPjcDtdjMElwFpTu4OV8FgX5PaFNkw5/njun1axAyyg1aoZjqUYt5 bslZcZ8hb1WHjc1azTfGpNVaGlZtNXvNA467a1vk= From: "me at dominicclifton dot name" To: gdb-prs@sourceware.org Subject: [Bug gdb/28219] arm-none-eabi-gdb, .../gdb/utils.c:671: "internal-error: virtual memory exhausted: can't allocate 4064 bytes" Date: Wed, 19 Jul 2023 13:35:07 +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: unknown X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: me at dominicclifton dot name X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: FIXED 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 List-Id: https://sourceware.org/bugzilla/show_bug.cgi?id=3D28219 --- Comment #15 from Dominic Clifton --- Hi Luis, thanks again for the continued updates on this. your replies are much appreciated. The code used to build the binary is using LTO, you can see the flags here: https://github.com/hydra/betaflight/blob/master/Makefile#L153C26-L153C85 specifically: '-flto -fuse-linker-plugin -ffast-math -fmerge-all-constants'= are passed to LD here, via `LD_FLAGS`: https://github.com/hydra/betaflight/blob/master/Makefile#L288 and to GCC here, via `CC_*_OPTIMIZATION`: https://github.com/hydra/betaflight/blob/master/Makefile#L429-L453 Yes, the code was built with '12.2-Rel1' too, as mentioned my 'local.mk' has 12.2.1 in it (see https://sourceware.org/bugzilla/show_bug.cgi?id=3D28219#c= 10) and the gcc version is checked before compiling, and I have double checked = that the check is also working. (See https://github.com/hydra/betaflight/blob/master/mk/tools.mk#L261-L269) I agree that some improvements should be made in both the generation of deb= ug information (cc/ld) and in the handling of debug information (gdb). What's the best way to proceed at this point? --=20 You are receiving this mail because: You are on the CC list for the bug.=