gdb crash: internal-error: cp_search_static_and_baseclass: Assertion `name[prefix_len + 1] == ':'' failed

Asked by Robert Baruch

O/S: Windows 10

Eclipse Version: Mars.2 Release (4.5.2)
Build id: 20160218-0600

ARM toolchain version: 5.4 2016q3

I have a Segger J-Link EDU plugged into a Freescale/NXP FRDM-K64F board, which has a Cortex-M4 processor.

When I try to debug a program, I get this output (see below).

This appears to be caused by this bug: https://sourceware.org/bugzilla/show_bug.cgi?id=18303

Does anyone have a fix or workaround?

GNU gdb (GNU Tools for ARM Embedded Processors) 7.10.1.20160923-cvs
Copyright (C) 2015 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "--host=i686-w64-mingw32 --target=arm-none-eabi".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word".
Warning: the current language does not match this frame.
/home/build/work/GCC-5-build/src/gdb/gdb/cp-namespace.c:343: internal-error: cp_search_static_and_baseclasses: Assertion `name[prefix_len + 1] == ':'' failed.
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:
<http://www.gnu.org/software/gdb/bugs/>.

/home/build/work/GCC-5-build/src/gdb/gdb/cp-namespace.c:343: internal-error: cp_search_static_and_baseclasses: Assertion `name[prefix_len + 1] == ':'' failed.
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]

This application has requested the Runtime to terminate it in an unusual way.
Please contact the application's support team for more information.

Question information

Language:
English Edit question
Status:
Expired
For:
GNU Arm Embedded Toolchain Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Thomas Preud'homme (thomas-preudhomme) said :
#1

Hi Robert,

If the bug is indeed the same as in https://sourceware.org/bugzilla/show_bug.cgi?id=18303 (and it does look to be the same indeed) then it will be fixed in our next major release (2016Q4).

Best regards.

Revision history for this message
Launchpad Janitor (janitor) said :
#2

This question was expired because it remained in the 'Open' state without activity for the last 15 days.