-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
GDB failing on breakpoint in STM32F7 #9219
Comments
It looks like an issue with the version of GDB you are using. My only suggestion is to try upgrading to a later version GDB. It is requesting stack frames
If you go through the logs, you can see all the commands we send to GDB.
There will be other commands in the log similar to the format You may want to share the steps to https://sourceware.org/bugzilla/ |
OK... I was afraid that you would say something like this... 😐 I'm on the latest official GCC version so there is no newer one. If you have any other suggestions I would really appreciate it! |
Seems that there is already a report of this same bug. |
Worth mentioning that this same code, when compiled and running on a different MCU series (STM32F4 or L4), the issue DOES NOT happen. |
This issue has been closed automatically because it's labeled as 'external'. |
I've updated to the latest GCC 11.2-2022.02 and the exception is the same. I've also tried several builds of OpenOCD from the Microsoft one (openocd-ms-v0.11.0) to early versions that I had around. This feels a bit odd, as despite the underlying tools change the behavior remains. I've debug this code with these several months ago. @WardenGnaw can I ask you to please reopen this so it can be investigated? Let me know what other details I can provide to help getting to the bottom of this. |
This issue has been re-opened as requested, but the core issue is in gdb itself. In the linked bug, it mentions
Does this toolchain version not work either? |
When I've raised the issue, coincidentally, that was the last version I recall using on which I debug successfully. |
Here's some extra information about this: I'm compiling with After changing the build options to Tested this with gdb from GCC 8-2019-q3-update and the latest 11.2-2022.02. I'm reporting this too to the bugzilla issue. |
This issue has been closed because it is external or not applicable to the extension. |
Error: "gdb/utils.c:717\ : internal-error: virtual memory exhausted: can't allocate 4064 bytes.\nA problem internal to GDB ha\ s been detected,\nfurther debugging may prove unreliable." Reference: microsoft/vscode-cpptools#9219 (comment)
The cause seems to be the macro debugging information which when generated by the compiler, apparently incorrectly, causes GDB to use excessive amounts of CPU and crash. Error: "gdb/utils.c:717\ : internal-error: virtual memory exhausted: can't allocate 4064 bytes.\nA problem internal to GDB ha\ s been detected,\nfurther debugging may prove unreliable." Reference: https://sourceware.org/bugzilla/show_bug.cgi?id=28219#c15 microsoft/vscode-cpptools#9219 (comment)
The cause seems to be the macro debugging information which when generated by the compiler, apparently incorrectly, causes GDB to use excessive amounts of CPU and crash. Error: "gdb/utils.c:717\ : internal-error: virtual memory exhausted: can't allocate 4064 bytes.\nA problem internal to GDB ha\ s been detected,\nfurther debugging may prove unreliable." Reference: * https://sourceware.org/bugzilla/show_bug.cgi?id=28219#c15 * microsoft/vscode-cpptools#9219 (comment) Note this crashing behavior is observed with `GCC > 9.3.1`, `9.3.1` itself is OK.
The cause seems to be the macro debugging information which when generated by the compiler, apparently incorrectly, causes GDB to use excessive amounts of CPU and crash. Error: "gdb/utils.c:717\ : internal-error: virtual memory exhausted: can't allocate 4064 bytes.\nA problem internal to GDB ha\ s been detected,\nfurther debugging may prove unreliable." Reference: * https://sourceware.org/bugzilla/show_bug.cgi?id=28219#c15 * microsoft/vscode-cpptools#9219 (comment) Note this crashing behavior is observed with `GCC > 9.3.1`, `9.3.1` itself is OK.
The cause seems to be the macro debugging information which when generated by the compiler, apparently incorrectly, causes GDB to use excessive amounts of CPU and crash. Error: "gdb/utils.c:717\ : internal-error: virtual memory exhausted: can't allocate 4064 bytes.\nA problem internal to GDB ha\ s been detected,\nfurther debugging may prove unreliable." Reference: * https://sourceware.org/bugzilla/show_bug.cgi?id=28219#c15 * microsoft/vscode-cpptools#9219 (comment) Note this crashing behavior is observed with `GCC > 9.3.1`, `9.3.1` itself is OK.
The cause seems to be the macro debugging information which when generated by the compiler, apparently incorrectly, causes GDB to use excessive amounts of CPU and crash. Error: "gdb/utils.c:717\ : internal-error: virtual memory exhausted: can't allocate 4064 bytes.\nA problem internal to GDB ha\ s been detected,\nfurther debugging may prove unreliable." Reference: * https://sourceware.org/bugzilla/show_bug.cgi?id=28219#c15 * microsoft/vscode-cpptools#9219 (comment) Note this crashing behavior is observed with `GCC > 9.3.1`, `9.3.1` itself is OK.
…12971) Makefile - use gddb2, not gddb3 due to issues with GDB crashing. The cause seems to be the macro debugging information which when generated by the compiler, apparently incorrectly, causes GDB to use excessive amounts of CPU and crash. Error: "gdb/utils.c:717\ : internal-error: virtual memory exhausted: can't allocate 4064 bytes.\nA problem internal to GDB ha\ s been detected,\nfurther debugging may prove unreliable." Reference: * https://sourceware.org/bugzilla/show_bug.cgi?id=28219#c15 * microsoft/vscode-cpptools#9219 (comment) Note this crashing behavior is observed with `GCC > 9.3.1`, `9.3.1` itself is OK.
…etaflight#12971) Makefile - use gddb2, not gddb3 due to issues with GDB crashing. The cause seems to be the macro debugging information which when generated by the compiler, apparently incorrectly, causes GDB to use excessive amounts of CPU and crash. Error: "gdb/utils.c:717\ : internal-error: virtual memory exhausted: can't allocate 4064 bytes.\nA problem internal to GDB ha\ s been detected,\nfurther debugging may prove unreliable." Reference: * https://sourceware.org/bugzilla/show_bug.cgi?id=28219#c15 * microsoft/vscode-cpptools#9219 (comment) Note this crashing behavior is observed with `GCC > 9.3.1`, `9.3.1` itself is OK.
…etaflight#12971) Makefile - use gddb2, not gddb3 due to issues with GDB crashing. The cause seems to be the macro debugging information which when generated by the compiler, apparently incorrectly, causes GDB to use excessive amounts of CPU and crash. Error: "gdb/utils.c:717\ : internal-error: virtual memory exhausted: can't allocate 4064 bytes.\nA problem internal to GDB ha\ s been detected,\nfurther debugging may prove unreliable." Reference: * https://sourceware.org/bugzilla/show_bug.cgi?id=28219#c15 * microsoft/vscode-cpptools#9219 (comment) Note this crashing behavior is observed with `GCC > 9.3.1`, `9.3.1` itself is OK.
Environment
Bug Summary and Steps to Reproduce
Bug Summary: When setting a breakpoint the debug stops (or doesn't start if the breakpoint has been previously set) with the message:
/mnt/workspace/workspace/GCC-10-pipeline/jenkins-GCC-10-pipeline-338_20211018_1634516203/src/gdb/gdb/utils.c:671: internal-error: virtual memory exhausted: can't allocate 4064 bytes.
A problem internal to GDB has been detected,
further debugging may prove unreliable.
Quit this debugging session? (y or n) [answered Y; input not from terminal]
/mnt/workspace/workspace/GCC-10-pipeline/jenkins-GCC-10-pipeline-338_20211018_1634516203/src/gdb/gdb/utils.c:671: internal-error: virtual memory exhausted: can't allocate 4064 bytes.
A problem internal to GDB has been detected,
further debugging may prove unreliable.
Debugger Configurations
Debugger Logs
Other Extensions
No response
Additional Information
Any hits on how I can get more details or get past this?
Thanks!
The text was updated successfully, but these errors were encountered: