public inbox for gdb-prs@sourceware.org help / color / mirror / Atom feed
From: "luis.machado at arm dot com" <sourceware-bugzilla@sourceware.org> 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:01:37 +0000 [thread overview] Message-ID: <bug-28219-4717-PFaIpIHY8K@http.sourceware.org/bugzilla/> (raw) In-Reply-To: <bug-28219-4717@http.sourceware.org/bugzilla/> https://sourceware.org/bugzilla/show_bug.cgi?id=28219 --- Comment #13 from Luis Machado <luis.machado at arm dot com> --- It is not directly tied to the size of the binary or the size of the debug information, but older versions of the tools used to produce what was said to be pathological entries. For instance: DW_MACRO_import - offset : 0x0 It was investigated a bit more in here: https://sourceware.org/bugzilla/show_bug.cgi?id=27754 Some hinted at LTO issues, but it doesn't look like it is LTO-specific. Newer versions of the tools started to behave better, as some users reported. The fact is that this isn't an issue specific to 32-bit Arm gdb, though the fact 32-bit Arm is widely used/debugged means people may see it more often in that setup. It is gdb finding some odd input that makes it load more things than it should. Or load the same data multiple times. The Windows tools made available by Arm suffer from a couple of issues. First is the gdb side-effect of bad input. The second is that those Windows tools are 32-bit (which restricts memory use to 4GB). So the first issue may force you to run into the second one. Not good. Some suggested we skip the pathological entries in gdb. And there was also a suggestion to not expand a macro more than once. I did a little experiment with disabling macro expansion (even in the presence of macro information in the debug info) and saw a significant memory use drop. It also loads things much quicker. I think this might be an opportunity to teach gdb how to deal with these a little better. -- You are receiving this mail because: You are on the CC list for the bug.
next prev parent reply other threads:[~2023-07-19 13:01 UTC|newest] Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top 2021-08-10 20:32 [Bug gdb/28219] New: " bmcdonnell at fischerblock dot com 2021-08-10 20:33 ` [Bug gdb/28219] " bmcdonnell at fischerblock dot com 2022-04-22 9:12 ` jose.simoes at eclo dot solutions 2022-05-04 23:58 ` jose.simoes at eclo dot solutions 2022-05-05 13:44 ` simon.marchi at polymtl dot ca 2022-10-13 9:20 ` luis.machado at arm dot com 2022-10-21 10:00 ` luis.machado at arm dot com 2023-07-11 14:45 ` bmcdonnell at fischerblock dot com 2023-07-18 14:10 ` me at dominicclifton dot name 2023-07-18 14:32 ` luis.machado at arm dot com 2023-07-18 16:02 ` me at dominicclifton dot name 2023-07-18 16:10 ` me at dominicclifton dot name 2023-07-19 9:56 ` luis.machado at arm dot com 2023-07-19 12:01 ` me at dominicclifton dot name 2023-07-19 13:01 ` luis.machado at arm dot com [this message] 2023-07-19 13:04 ` luis.machado at arm dot com 2023-07-19 13:35 ` me at dominicclifton dot name 2023-07-19 13:48 ` luis.machado at arm dot com 2023-07-19 13:49 ` luis.machado at arm dot com 2023-07-19 14:07 ` me at dominicclifton dot name 2023-07-19 14:56 ` simon.marchi at polymtl dot ca 2023-07-19 16:12 ` luis.machado at arm dot com 2023-07-20 1:30 ` simon.marchi at polymtl dot ca 2023-07-20 13:45 ` luis.machado at arm dot com
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=bug-28219-4717-PFaIpIHY8K@http.sourceware.org/bugzilla/ \ --to=sourceware-bugzilla@sourceware.org \ --cc=gdb-prs@sourceware.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).