GDB Debugging Crash

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
技术社区计划将于12月21日至1月5日期间进行升级,升级期间暂时无法发布新问题。

GDB Debugging Crash

3,042 次查看
abdrhmn
Contributor I

Hi,

I'm having a some problem to debug using Microsoft Visual Code with MCUXpresso extension. The error happens when I run debugging using JTAG/JLink.

Error is as below:

/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]

This is a bug, please report it. For instructions, see:
<https://www.gnu.org/software/gdb/bugs/>.

/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.
Create a core file of GDB? (y or n) [answered Y; input not from terminal]

I noticed it happens when the arm-none-eabi-gdb.exe memory usage exceeds 1.6GB-1.8GB of RAM. It can be monitor using task manager. I also found out it only happens when I run my code, I'm developing driver for iMX8ULP. By the way, it didn't happens if I use the example provided by NXP. 

Please advice.

 

0 项奖励
回复
3 回复数

3,015 次查看
abdrhmn
Contributor I

Hi,

I already try the solutions that you mentioned. After reinstall I still observed the same issue. 

0 项奖励
回复

3,011 次查看
JorgeCas
NXP TechSupport
NXP TechSupport

Hello,

Which J-link software do you have installed on your setup?

JorgeCas_0-1709139816162.png

Did you check application note AN14120?

Best regards.

0 项奖励
回复

3,029 次查看
JorgeCas
NXP TechSupport
NXP TechSupport

Hello,

 

Could you please try with mentioned on this post?

 

It seems that is an error caused by a bad installation.

 

Best regards.

0 项奖励
回复