gdb crashes when loading .elf file whose path has more than 120 characters

Bug #1592297 reported by changan
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
GNU Arm Embedded Toolchain
Invalid
Undecided
Unassigned

Bug Description

We are working with gcc-arm-none-eabi-5_2-2015q4-20151219-win32.zip on Windows(32bit/64bit).
The testSTMB000.elf file is generated with its tool arm-none-eabi-gcc.exe.

However, when we load elf file with arm-none-eabi-gdb.exe:
1. gdb works fine (length of elf file path <= 120 characters).
{toolchain_path}\bin> arm-none-eabi-gdb.exe D:\aaaaaaaa\bbbbbbbb\cccccccc\dddddddd\eeeeeeee\ffffffff\gg\testSTM0\board\testSTMB000\Makefile\bin\gcc\testSTMB000.elf

2. gdb crashes (length of elf file path > 120 characters).
{toolchain_path}\bin> arm-none-eabi-gdb.exe D:\aaaaaaaa\bbbbbbbb\cccccccc\dddddddd\eeeeeeee\ffffffff\gg\testSTM0\board\testSTMB000\Makefile\bin\gcc\testSTMB000.elf

This issue is observed on Windows (both 32bit & 64bit), but not on Linux.
When 'length of elf file path > 102 characters', gdb in gcc-arm-none-eabi-5_3-2016q1-20160330-win32.zip will crash, too.

PS: the attachment is elf test files.

Revision history for this message
changan (changan-xia) wrote :
Revision history for this message
Andre Vieira (andre-simoesdiasvieira) wrote :

Hi changan,

This is a known windows limitation. There is not much gdb can do about it.

Cheers,
Andre

Changed in gcc-arm-embedded:
status: New → Invalid
Revision history for this message
changan (changan-xia) wrote :

OK~_~
Thank you, Andre.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.