public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug gdb/30622] New: symbol file: create_range_type: Assertion `TYPE_LENGTH (index_type) > 0' failed
@ 2023-07-07 18:22 parkerdahn at gmail dot com
  2023-07-08 14:56 ` [Bug gdb/30622] " tromey at sourceware dot org
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: parkerdahn at gmail dot com @ 2023-07-07 18:22 UTC (permalink / raw)
  To: gdb-prs

https://sourceware.org/bugzilla/show_bug.cgi?id=30622

            Bug ID: 30622
           Summary: symbol file: create_range_type: Assertion `TYPE_LENGTH
                    (index_type) > 0' failed
           Product: gdb
           Version: 12.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: gdb
          Assignee: unassigned at sourceware dot org
          Reporter: parkerdahn at gmail dot com
  Target Milestone: ---

Currently workout out of WSL using Qemu 8.0.2, connecting gdb 12.1 to it, and
if I provide the kernel file for symbols gdb crashes.

I've tried several things but it always crashes when it tries to look up a
memory address, from a search, a breakpoint, or if I continue and stop
execution, whenever it stops it will crash

However if I do not provide the file for symbols it does execute just fine

> gdb-multiarch
GNU gdb (Ubuntu 12.1-0ubuntu1~22.04) 12.1
Copyright (C) 2022 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 "x86_64-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<https://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".
(gdb) set architecture powerpc:common
The target architecture is set to "powerpc:common".
(gdb) set endian big
The target is set to big endian.
(gdb) file target.vxw
Reading symbols from target.vxw...
(gdb) target remote :1234
Remote debugging using :1234
0x00100000 in _sysInit ()
(gdb) b *0x106fa0
/build/gdb-ZgDh0V/gdb-12.1/gdb/gdbtypes.c:936: internal-error:
create_range_type: Assertion `TYPE_LENGTH (index_type) > 0' failed.
A problem internal to GDB has been detected,
further debugging may prove unreliable.
----- Backtrace -----
0x56111bf25197 ???
0x56111c324464 ???
0x56111c3246a0 ???
0x56111c688c64 ???
0x56111c052b33 ???
0x56111c052ca0 ???
0x56111c286662 ???
0x56111c28b5b9 ???
0x56111bfb1a2e ???
0x56111bfb287b ???
0x56111bfaf0aa ???
0x56111c193868 ???
0x56111c195e06 ???
0x56111c29b675 ???
0x56111c2b37e7 ???
0x56111c2b3d48 ???
0x56111c2b41e3 ???
0x56111c0c05b3 ???
0x56111c0c07b6 ???
0x56111bf12d8c ???
0x56111bf17b6e ???
0x56111bf18105 ???
0x56111bf5a774 ???
0x56111c2ead94 ???
0x56111c0286e4 ???
0x56111c028a83 ???
0x56111c029206 ???
0x7fed1dd8ae0d ???
0x56111c0277d5 ???
0x56111c0290b4 ???
0x56111c0273cb ???
0x56111c689395 ???
0x56111c68982a ???
0x56111c0f371c ???
0x56111c0f5404 ???
0x56111be4f0ef ???
0x7fed1cd05d8f __libc_start_call_main
        ../sysdeps/nptl/libc_start_call_main.h:58
0x7fed1cd05e3f __libc_start_main_impl
        ../csu/libc-start.c:392
0x56111be54e24 ???
0xffffffffffffffff ???
---------------------
/build/gdb-ZgDh0V/gdb-12.1/gdb/gdbtypes.c:936: internal-error:
create_range_type: Assertion `TYPE_LENGTH (index_type) > 0' failed.
A problem internal to GDB has been detected,
further debugging may prove unreliable.
Quit this debugging session? (y or n) n

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

-- 
You are receiving this mail because:
You are on the CC list for the bug.

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug gdb/30622] symbol file: create_range_type: Assertion `TYPE_LENGTH (index_type) > 0' failed
  2023-07-07 18:22 [Bug gdb/30622] New: symbol file: create_range_type: Assertion `TYPE_LENGTH (index_type) > 0' failed parkerdahn at gmail dot com
@ 2023-07-08 14:56 ` tromey at sourceware dot org
  2023-07-18 15:51 ` parkerdahn at gmail dot com
                   ` (4 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: tromey at sourceware dot org @ 2023-07-08 14:56 UTC (permalink / raw)
  To: gdb-prs

https://sourceware.org/bugzilla/show_bug.cgi?id=30622

Tom Tromey <tromey at sourceware dot org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |tromey at sourceware dot org

--- Comment #1 from Tom Tromey <tromey at sourceware dot org> ---
(In reply to Parker Dahn from comment #0)

> However if I do not provide the file for symbols it does execute just fine

Yeah, this is a crash related to the debug reader, in particular when
making a type.

Can you share your executable?

> GNU gdb (Ubuntu 12.1-0ubuntu1~22.04) 12.1

... or try a newer version.  I don't recall any fixes in this area
but it's hard to be sure.

Without the executable, the only other option is probably to have
you try to debug gdb, for that you'd have to build one with debug info.
The main thing is tracking backward from the crash to find the
"bad" debuginfo so we can make a reproducer.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug gdb/30622] symbol file: create_range_type: Assertion `TYPE_LENGTH (index_type) > 0' failed
  2023-07-07 18:22 [Bug gdb/30622] New: symbol file: create_range_type: Assertion `TYPE_LENGTH (index_type) > 0' failed parkerdahn at gmail dot com
  2023-07-08 14:56 ` [Bug gdb/30622] " tromey at sourceware dot org
@ 2023-07-18 15:51 ` parkerdahn at gmail dot com
  2023-07-18 15:59 ` parkerdahn at gmail dot com
                   ` (3 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: parkerdahn at gmail dot com @ 2023-07-18 15:51 UTC (permalink / raw)
  To: gdb-prs

https://sourceware.org/bugzilla/show_bug.cgi?id=30622

--- Comment #2 from Parker Dahn <parkerdahn at gmail dot com> ---
I apologize for the delay, but I built gdb 13.2 and tried again, ignore the
python issue

gdb -x gdb.txt ./target.vxw
Python Exception <class 'ModuleNotFoundError'>: No module named 'gdb'
/home/user/gdb/build/gdb/gdb: warning:
Could not load the Python gdb module from `/usr/local/share/gdb/python'.
Limited Python support is available from the _gdb module.
Suggest passing --data-directory=/path/to/gdb/data-directory.
GNU gdb (GDB) 13.2
Copyright (C) 2023 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 "x86_64-pc-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<https://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"...
Reading symbols from ./target.vxw...
The target architecture is set to "powerpc:common".
The target is set to big endian.
Python Exception <class 'NameError'>: Installation error:
gdb._execute_unwinders function is missing
0x00100000 in _sysInit ()
(gdb) b *0x10bad8
../../gdb-13.2/gdb/gdbtypes.c:939: internal-error: create_range_type: Assertion
`index_type->length () > 0' failed.
A problem internal to GDB has been detected,
further debugging may prove unreliable.
----- Backtrace -----
0x55a3d6f4edf3 gdb_internal_backtrace_1
        ../../gdb-13.2/gdb/bt-utils.c:122
0x55a3d6f4eeb3 _Z22gdb_internal_backtracev
        ../../gdb-13.2/gdb/bt-utils.c:168
0x55a3d76d71fc internal_vproblem
        ../../gdb-13.2/gdb/utils.c:396
0x55a3d76d7683 _Z15internal_verrorPKciS0_P13__va_list_tag
        ../../gdb-13.2/gdb/utils.c:476
0x55a3d7eefa3c _Z18internal_error_locPKciS0_z
        ../../gdb-13.2/gdbsupport/errors.cc:58
0x55a3d71b0f75 _Z17create_range_typeP4typeS0_PK12dynamic_propS3_l
        ../../gdb-13.2/gdb/gdbtypes.c:939
0x55a3d71b1420 _Z24create_static_range_typeP4typeS0_ll
        ../../gdb-13.2/gdb/gdbtypes.c:1033
0x55a3d75d7d19 read_array_type
        ../../gdb-13.2/gdb/stabsread.c:3533
0x55a3d75d3bf0 read_type
        ../../gdb-13.2/gdb/stabsread.c:1991
0x55a3d75d1644 _Z13define_symbolmPKciiP7objfile
        ../../gdb-13.2/gdb/stabsread.c:1207
0x55a3d7053630
_Z18process_one_symboliimPKcRKSt6vectorImSaImEEP7objfile8language
        ../../gdb-13.2/gdb/dbxread.c:2842
0x55a3d70525b9 read_ofile_symtab
        ../../gdb-13.2/gdb/dbxread.c:2287
0x55a3d7051e20 dbx_expand_psymtab
        ../../gdb-13.2/gdb/dbxread.c:2137
0x55a3d7054e78 _ZN14legacy_psymtab14expand_psymtabEP7objfile
        ../../gdb-13.2/gdb/psympriv.h:430
0x55a3d7051fc6 dbx_read_symtab
        ../../gdb-13.2/gdb/dbxread.c:2167
0x55a3d7054e46 _ZN14legacy_psymtab11read_symtabEP7objfile
        ../../gdb-13.2/gdb/psympriv.h:425
0x55a3d740d0f3 psymtab_to_symtab
        ../../gdb-13.2/gdb/psymtab.c:528
0x55a3d740c31e
_ZN17psymbol_functions28find_pc_sect_compunit_symtabEP7objfile20bound_minimal_symbolmP11obj_sectioni
        ../../gdb-13.2/gdb/psymtab.c:209
0x55a3d75f4a4b
_ZN7objfile28find_pc_sect_compunit_symtabE20bound_minimal_symbolmP11obj_sectioni
        ../../gdb-13.2/gdb/symfile-debug.c:447
0x55a3d761675f _Z28find_pc_sect_compunit_symtabmP11obj_section
        ../../gdb-13.2/gdb/symtab.c:2941
0x55a3d7616cbf _Z17find_pc_sect_linemP11obj_sectioni
        ../../gdb-13.2/gdb/symtab.c:3165
0x55a3d76172a6 _Z12find_pc_linemi
        ../../gdb-13.2/gdb/symtab.c:3303
0x55a3d726a88e convert_address_location_to_sals
        ../../gdb-13.2/gdb/linespec.c:2161
0x55a3d726d222 location_spec_to_sals
        ../../gdb-13.2/gdb/linespec.c:3095
0x55a3d726d5a2
_Z16decode_line_fullP13location_speciP13program_spaceP6symtabiP15linespec_resultPKcS8_
        ../../gdb-13.2/gdb/linespec.c:3151
0x55a3d6f1ddac parse_breakpoint_sals
        ../../gdb-13.2/gdb/breakpoint.c:8683
0x55a3d6f2a7c4 create_sals_from_location_spec_default
        ../../gdb-13.2/gdb/breakpoint.c:12899
0x55a3d6f1eb53
_Z17create_breakpointP7gdbarchP13location_specPKciS4_bii6bptypei12auto_booleanPK14breakpoint_opsiiij
        ../../gdb-13.2/gdb/breakpoint.c:8970
0x55a3d6f1f632 break_command_1
        ../../gdb-13.2/gdb/breakpoint.c:9154
0x55a3d6f1f93b _Z13break_commandPKci
        ../../gdb-13.2/gdb/breakpoint.c:9225
0x55a3d6fac09f do_simple_func
        ../../gdb-13.2/gdb/cli/cli-decode.c:95
0x55a3d6fb1b98 _Z8cmd_funcP16cmd_list_elementPKci
        ../../gdb-13.2/gdb/cli/cli-decode.c:2543
0x55a3d767b7d6 _Z15execute_commandPKci
        ../../gdb-13.2/gdb/top.c:690
0x55a3d715d3ce _Z15command_handlerPKc
        ../../gdb-13.2/gdb/event-top.c:616
0x55a3d715d97f
_Z20command_line_handlerOSt10unique_ptrIcN3gdb13xfree_deleterIcEEE
        ../../gdb-13.2/gdb/event-top.c:852
0x55a3d76a9b64 tui_command_line_handler
        ../../gdb-13.2/gdb/tui/tui-interp.c:104
0x55a3d715ca2f gdb_rl_callback_handler
        ../../gdb-13.2/gdb/event-top.c:246
0x55a3d7768273 rl_callback_read_char
        ../../../gdb-13.2/readline/readline/callback.c:290
0x55a3d715c809 gdb_rl_callback_read_char_wrapper_noexcept
        ../../gdb-13.2/gdb/event-top.c:188
0x55a3d715c8e6 gdb_rl_callback_read_char_wrapper
        ../../gdb-13.2/gdb/event-top.c:221
0x55a3d715d1b0 stdin_event_handler
        ../../gdb-13.2/gdb/event-top.c:541
0x55a3d7ef09cc handle_file_event
        ../../gdb-13.2/gdbsupport/event-loop.cc:573
0x55a3d7ef0fbc gdb_wait_for_event
        ../../gdb-13.2/gdbsupport/event-loop.cc:694
0x55a3d7eefd5b _Z16gdb_do_one_eventi
        ../../gdb-13.2/gdbsupport/event-loop.cc:264
0x55a3d72dc362 start_event_loop
        ../../gdb-13.2/gdb/main.c:411
0x55a3d72dc4b5 captured_command_loop
        ../../gdb-13.2/gdb/main.c:471
0x55a3d72ddfc3 captured_main
        ../../gdb-13.2/gdb/main.c:1330
0x55a3d72de035 _Z8gdb_mainP18captured_main_args
        ../../gdb-13.2/gdb/main.c:1345
0x55a3d6db0685 main
        ../../gdb-13.2/gdb/gdb.c:32
---------------------
../../gdb-13.2/gdb/gdbtypes.c:939: internal-error: create_range_type: Assertion
`index_type->length () > 0' failed.
A problem internal to GDB has been detected,
further debugging may prove unreliable.
Quit this debugging session? (y or n)

What is the "bad" debug info I am looking for

-- 
You are receiving this mail because:
You are on the CC list for the bug.

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug gdb/30622] symbol file: create_range_type: Assertion `TYPE_LENGTH (index_type) > 0' failed
  2023-07-07 18:22 [Bug gdb/30622] New: symbol file: create_range_type: Assertion `TYPE_LENGTH (index_type) > 0' failed parkerdahn at gmail dot com
  2023-07-08 14:56 ` [Bug gdb/30622] " tromey at sourceware dot org
  2023-07-18 15:51 ` parkerdahn at gmail dot com
@ 2023-07-18 15:59 ` parkerdahn at gmail dot com
  2023-07-18 20:41 ` tromey at sourceware dot org
                   ` (2 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: parkerdahn at gmail dot com @ 2023-07-18 15:59 UTC (permalink / raw)
  To: gdb-prs

https://sourceware.org/bugzilla/show_bug.cgi?id=30622

--- Comment #3 from Parker Dahn <parkerdahn at gmail dot com> ---


(In reply to Tom Tromey from comment #1)
> (In reply to Parker Dahn from comment #0)
> 
> > However if I do not provide the file for symbols it does execute just fine
> 
> Yeah, this is a crash related to the debug reader, in particular when
> making a type.
> 
> Can you share your executable?
>  
> > GNU gdb (Ubuntu 12.1-0ubuntu1~22.04) 12.1
> 
> ... or try a newer version.  I don't recall any fixes in this area
> but it's hard to be sure.
> 
> Without the executable, the only other option is probably to have
> you try to debug gdb, for that you'd have to build one with debug info.
> The main thing is tracking backward from the crash to find the
> "bad" debuginfo so we can make a reproducer.

I apologize for the delay
I built 13.2 and tried again, here is the print out of the backtrace. What is
the "bad" debug info you are looking for?

gdb -x gdb.txt ./target.vxw
Python Exception <class 'ModuleNotFoundError'>: No module named 'gdb'
/home/user/gdb/build/gdb/gdb: warning:
Could not load the Python gdb module from `/usr/local/share/gdb/python'.
Limited Python support is available from the _gdb module.
Suggest passing --data-directory=/path/to/gdb/data-directory.
GNU gdb (GDB) 13.2
Copyright (C) 2023 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 "x86_64-pc-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<https://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"...
Reading symbols from ./target.vxw...
The target architecture is set to "powerpc:common".
The target is set to big endian.
Python Exception <class 'NameError'>: Installation error:
gdb._execute_unwinders function is missing
0x00100000 in _sysInit ()
(gdb) b *0x10bad8
../../gdb-13.2/gdb/gdbtypes.c:939: internal-error: create_range_type: Assertion
`index_type->length () > 0' failed.
A problem internal to GDB has been detected,
further debugging may prove unreliable.
----- Backtrace -----
0x55a3d6f4edf3 gdb_internal_backtrace_1
        ../../gdb-13.2/gdb/bt-utils.c:122
0x55a3d6f4eeb3 _Z22gdb_internal_backtracev
        ../../gdb-13.2/gdb/bt-utils.c:168
0x55a3d76d71fc internal_vproblem
        ../../gdb-13.2/gdb/utils.c:396
0x55a3d76d7683 _Z15internal_verrorPKciS0_P13__va_list_tag
        ../../gdb-13.2/gdb/utils.c:476
0x55a3d7eefa3c _Z18internal_error_locPKciS0_z
        ../../gdb-13.2/gdbsupport/errors.cc:58
0x55a3d71b0f75 _Z17create_range_typeP4typeS0_PK12dynamic_propS3_l
        ../../gdb-13.2/gdb/gdbtypes.c:939
0x55a3d71b1420 _Z24create_static_range_typeP4typeS0_ll
        ../../gdb-13.2/gdb/gdbtypes.c:1033
0x55a3d75d7d19 read_array_type
        ../../gdb-13.2/gdb/stabsread.c:3533
0x55a3d75d3bf0 read_type
        ../../gdb-13.2/gdb/stabsread.c:1991
0x55a3d75d1644 _Z13define_symbolmPKciiP7objfile
        ../../gdb-13.2/gdb/stabsread.c:1207
0x55a3d7053630
_Z18process_one_symboliimPKcRKSt6vectorImSaImEEP7objfile8language
        ../../gdb-13.2/gdb/dbxread.c:2842
0x55a3d70525b9 read_ofile_symtab
        ../../gdb-13.2/gdb/dbxread.c:2287
0x55a3d7051e20 dbx_expand_psymtab
        ../../gdb-13.2/gdb/dbxread.c:2137
0x55a3d7054e78 _ZN14legacy_psymtab14expand_psymtabEP7objfile
        ../../gdb-13.2/gdb/psympriv.h:430
0x55a3d7051fc6 dbx_read_symtab
        ../../gdb-13.2/gdb/dbxread.c:2167
0x55a3d7054e46 _ZN14legacy_psymtab11read_symtabEP7objfile
        ../../gdb-13.2/gdb/psympriv.h:425
0x55a3d740d0f3 psymtab_to_symtab
        ../../gdb-13.2/gdb/psymtab.c:528
0x55a3d740c31e
_ZN17psymbol_functions28find_pc_sect_compunit_symtabEP7objfile20bound_minimal_symbolmP11obj_sectioni
        ../../gdb-13.2/gdb/psymtab.c:209
0x55a3d75f4a4b
_ZN7objfile28find_pc_sect_compunit_symtabE20bound_minimal_symbolmP11obj_sectioni
        ../../gdb-13.2/gdb/symfile-debug.c:447
0x55a3d761675f _Z28find_pc_sect_compunit_symtabmP11obj_section
        ../../gdb-13.2/gdb/symtab.c:2941
0x55a3d7616cbf _Z17find_pc_sect_linemP11obj_sectioni
        ../../gdb-13.2/gdb/symtab.c:3165
0x55a3d76172a6 _Z12find_pc_linemi
        ../../gdb-13.2/gdb/symtab.c:3303
0x55a3d726a88e convert_address_location_to_sals
        ../../gdb-13.2/gdb/linespec.c:2161
0x55a3d726d222 location_spec_to_sals
        ../../gdb-13.2/gdb/linespec.c:3095
0x55a3d726d5a2
_Z16decode_line_fullP13location_speciP13program_spaceP6symtabiP15linespec_resultPKcS8_
        ../../gdb-13.2/gdb/linespec.c:3151
0x55a3d6f1ddac parse_breakpoint_sals
        ../../gdb-13.2/gdb/breakpoint.c:8683
0x55a3d6f2a7c4 create_sals_from_location_spec_default
        ../../gdb-13.2/gdb/breakpoint.c:12899
0x55a3d6f1eb53
_Z17create_breakpointP7gdbarchP13location_specPKciS4_bii6bptypei12auto_booleanPK14breakpoint_opsiiij
        ../../gdb-13.2/gdb/breakpoint.c:8970
0x55a3d6f1f632 break_command_1
        ../../gdb-13.2/gdb/breakpoint.c:9154
0x55a3d6f1f93b _Z13break_commandPKci
        ../../gdb-13.2/gdb/breakpoint.c:9225
0x55a3d6fac09f do_simple_func
        ../../gdb-13.2/gdb/cli/cli-decode.c:95
0x55a3d6fb1b98 _Z8cmd_funcP16cmd_list_elementPKci
        ../../gdb-13.2/gdb/cli/cli-decode.c:2543
0x55a3d767b7d6 _Z15execute_commandPKci
        ../../gdb-13.2/gdb/top.c:690
0x55a3d715d3ce _Z15command_handlerPKc
        ../../gdb-13.2/gdb/event-top.c:616
0x55a3d715d97f
_Z20command_line_handlerOSt10unique_ptrIcN3gdb13xfree_deleterIcEEE
        ../../gdb-13.2/gdb/event-top.c:852
0x55a3d76a9b64 tui_command_line_handler
        ../../gdb-13.2/gdb/tui/tui-interp.c:104
0x55a3d715ca2f gdb_rl_callback_handler
        ../../gdb-13.2/gdb/event-top.c:246
0x55a3d7768273 rl_callback_read_char
        ../../../gdb-13.2/readline/readline/callback.c:290
0x55a3d715c809 gdb_rl_callback_read_char_wrapper_noexcept
        ../../gdb-13.2/gdb/event-top.c:188
0x55a3d715c8e6 gdb_rl_callback_read_char_wrapper
        ../../gdb-13.2/gdb/event-top.c:221
0x55a3d715d1b0 stdin_event_handler
        ../../gdb-13.2/gdb/event-top.c:541
0x55a3d7ef09cc handle_file_event
        ../../gdb-13.2/gdbsupport/event-loop.cc:573
0x55a3d7ef0fbc gdb_wait_for_event
        ../../gdb-13.2/gdbsupport/event-loop.cc:694
0x55a3d7eefd5b _Z16gdb_do_one_eventi
        ../../gdb-13.2/gdbsupport/event-loop.cc:264
0x55a3d72dc362 start_event_loop
        ../../gdb-13.2/gdb/main.c:411
0x55a3d72dc4b5 captured_command_loop
        ../../gdb-13.2/gdb/main.c:471
0x55a3d72ddfc3 captured_main
        ../../gdb-13.2/gdb/main.c:1330
0x55a3d72de035 _Z8gdb_mainP18captured_main_args
        ../../gdb-13.2/gdb/main.c:1345
0x55a3d6db0685 main
        ../../gdb-13.2/gdb/gdb.c:32
---------------------
../../gdb-13.2/gdb/gdbtypes.c:939: internal-error: create_range_type: Assertion
`index_type->length () > 0' failed.
A problem internal to GDB has been detected,
further debugging may prove unreliable.
Quit this debugging session? (y or n)

-- 
You are receiving this mail because:
You are on the CC list for the bug.

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug gdb/30622] symbol file: create_range_type: Assertion `TYPE_LENGTH (index_type) > 0' failed
  2023-07-07 18:22 [Bug gdb/30622] New: symbol file: create_range_type: Assertion `TYPE_LENGTH (index_type) > 0' failed parkerdahn at gmail dot com
                   ` (2 preceding siblings ...)
  2023-07-18 15:59 ` parkerdahn at gmail dot com
@ 2023-07-18 20:41 ` tromey at sourceware dot org
  2023-07-18 20:44 ` parkerdahn at gmail dot com
  2023-07-19 13:36 ` tromey at sourceware dot org
  5 siblings, 0 replies; 7+ messages in thread
From: tromey at sourceware dot org @ 2023-07-18 20:41 UTC (permalink / raw)
  To: gdb-prs

https://sourceware.org/bugzilla/show_bug.cgi?id=30622

--- Comment #4 from Tom Tromey <tromey at sourceware dot org> ---
(In reply to Parker Dahn from comment #3)

> I apologize for the delay

No problem :)

> I built 13.2 and tried again, here is the print out of the backtrace. What
> is the "bad" debug info you are looking for?

Normally what I'd want to see is the executable you are trying to debug.
However, in this case, the stack trace from gdb tells us something:

> 0x55a3d75d7d19 read_array_type
>         ../../gdb-13.2/gdb/stabsread.c:3533

... this means you are using the "stabs" debug format.
stabs aren't really maintained in gdb at all.  They've been
obsolete for decades now.

Are you forced to use stabs for some reason?  If so, then probably the
bug can be fixed in gdb ... but most likely you'd be on your own.

Otherwise, if you don't have to use stabs, then most likely your problem
can be fixed by switching debug formats.  That is, change "-gstabs"
to "-g" and rebuild from scratch.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug gdb/30622] symbol file: create_range_type: Assertion `TYPE_LENGTH (index_type) > 0' failed
  2023-07-07 18:22 [Bug gdb/30622] New: symbol file: create_range_type: Assertion `TYPE_LENGTH (index_type) > 0' failed parkerdahn at gmail dot com
                   ` (3 preceding siblings ...)
  2023-07-18 20:41 ` tromey at sourceware dot org
@ 2023-07-18 20:44 ` parkerdahn at gmail dot com
  2023-07-19 13:36 ` tromey at sourceware dot org
  5 siblings, 0 replies; 7+ messages in thread
From: parkerdahn at gmail dot com @ 2023-07-18 20:44 UTC (permalink / raw)
  To: gdb-prs

https://sourceware.org/bugzilla/show_bug.cgi?id=30622

--- Comment #5 from Parker Dahn <parkerdahn at gmail dot com> ---
(In reply to Tom Tromey from comment #4)
> (In reply to Parker Dahn from comment #3)
> 
> > I apologize for the delay
> 
> No problem :)
> 
> > I built 13.2 and tried again, here is the print out of the backtrace. What
> > is the "bad" debug info you are looking for?
> 
> Normally what I'd want to see is the executable you are trying to debug.
> However, in this case, the stack trace from gdb tells us something:
> 
> > 0x55a3d75d7d19 read_array_type
> >         ../../gdb-13.2/gdb/stabsread.c:3533
> 
> ... this means you are using the "stabs" debug format.
> stabs aren't really maintained in gdb at all.  They've been
> obsolete for decades now.
> 
> Are you forced to use stabs for some reason?  If so, then probably the
> bug can be fixed in gdb ... but most likely you'd be on your own.
> 
> Otherwise, if you don't have to use stabs, then most likely your problem
> can be fixed by switching debug formats.  That is, change "-gstabs"
> to "-g" and rebuild from scratch.

Unfortunately I am unable to recompile the target binary, but thank you for the
quick assistance.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug gdb/30622] symbol file: create_range_type: Assertion `TYPE_LENGTH (index_type) > 0' failed
  2023-07-07 18:22 [Bug gdb/30622] New: symbol file: create_range_type: Assertion `TYPE_LENGTH (index_type) > 0' failed parkerdahn at gmail dot com
                   ` (4 preceding siblings ...)
  2023-07-18 20:44 ` parkerdahn at gmail dot com
@ 2023-07-19 13:36 ` tromey at sourceware dot org
  5 siblings, 0 replies; 7+ messages in thread
From: tromey at sourceware dot org @ 2023-07-19 13:36 UTC (permalink / raw)
  To: gdb-prs

https://sourceware.org/bugzilla/show_bug.cgi?id=30622

--- Comment #6 from Tom Tromey <tromey at sourceware dot org> ---
(In reply to Parker Dahn from comment #5)

> Unfortunately I am unable to recompile the target binary, but thank you for
> the quick assistance.

I'm very curious if you can say more about this.  How/when was it made?
How long do you expect to support it?  What do you do if you find a bug?

We've been discussing removing stabs from gdb entirely.
However I wonder how many other people out there have to use it, and why.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2023-07-19 13:36 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-07-07 18:22 [Bug gdb/30622] New: symbol file: create_range_type: Assertion `TYPE_LENGTH (index_type) > 0' failed parkerdahn at gmail dot com
2023-07-08 14:56 ` [Bug gdb/30622] " tromey at sourceware dot org
2023-07-18 15:51 ` parkerdahn at gmail dot com
2023-07-18 15:59 ` parkerdahn at gmail dot com
2023-07-18 20:41 ` tromey at sourceware dot org
2023-07-18 20:44 ` parkerdahn at gmail dot com
2023-07-19 13:36 ` tromey at sourceware dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).