GDB Debugging Crash

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

GDB Debugging Crash

278件の閲覧回数
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 返答(返信)

251件の閲覧回数
abdrhmn
Contributor I

Hi,

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

0 件の賞賛

247件の閲覧回数
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 件の賞賛

265件の閲覧回数
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 件の賞賛