public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
From: "parkerdahn at gmail dot com" <sourceware-bugzilla@sourceware.org>
To: gdb-prs@sourceware.org
Subject: [Bug gdb/30622] symbol file: create_range_type: Assertion `TYPE_LENGTH (index_type) > 0' failed
Date: Tue, 18 Jul 2023 15:59:27 +0000	[thread overview]
Message-ID: <bug-30622-4717-ZZwVSLXmQD@http.sourceware.org/bugzilla/> (raw)
In-Reply-To: <bug-30622-4717@http.sourceware.org/bugzilla/>

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.

  parent reply	other threads:[~2023-07-18 15:59 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-07-07 18:22 [Bug gdb/30622] New: " 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 [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=bug-30622-4717-ZZwVSLXmQD@http.sourceware.org/bugzilla/ \
    --to=sourceware-bugzilla@sourceware.org \
    --cc=gdb-prs@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).