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] New: symbol file: create_range_type: Assertion `TYPE_LENGTH (index_type) > 0' failed
Date: Fri, 07 Jul 2023 18:22:43 +0000	[thread overview]
Message-ID: <bug-30622-4717@http.sourceware.org/bugzilla/> (raw)

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.

             reply	other threads:[~2023-07-07 18:22 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-07-07 18:22 parkerdahn at gmail dot com [this message]
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

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@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).