public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
From: "vries at gcc dot gnu.org" <sourceware-bugzilla@sourceware.org>
To: gdb-prs@sourceware.org
Subject: [Bug symtab/29572] [gdb/symtab] read.h:298: internal-error: length: Assertion `m_length != 0' failed.
Date: Wed, 14 Sep 2022 08:30:01 +0000	[thread overview]
Message-ID: <bug-29572-4717-SwiPagcWoq@http.sourceware.org/bugzilla/> (raw)
In-Reply-To: <bug-29572-4717@http.sourceware.org/bugzilla/>

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

--- Comment #1 from Tom de Vries <vries at gcc dot gnu.org> ---
Backtrace at assert:
...
(gdb) bt
#0  __GI_raise (sig=6) at ../sysdeps/unix/sysv/linux/raise.c:51
#1  0x00007ffff4a05375 in __GI_abort () at abort.c:79
#2  0x0000000000c81e49 in dump_core ()
    at /home/vries/gdb_versions/devel/src/gdb/utils.c:202
#3  0x0000000000c8247f in internal_vproblem(internal_problem *, const char *,
int, const char *, typedef __va_list_tag __va_list_tag *) (
    problem=0x2785c60 <internal_error_problem>, 
    file=0x14cf880 "/home/vries/gdb_versions/devel/src/gdb/dwarf2/read.h", 
    line=298, fmt=0x14cf850 "%s: Assertion `%s' failed.", ap=0x7fffffff90e8)
    at /home/vries/gdb_versions/devel/src/gdb/utils.c:450
#4  0x0000000000c82555 in internal_verror (
    file=0x14cf880 "/home/vries/gdb_versions/devel/src/gdb/dwarf2/read.h", 
    line=298, fmt=0x14cf850 "%s: Assertion `%s' failed.", ap=0x7fffffff90e8)
    at /home/vries/gdb_versions/devel/src/gdb/utils.c:476
#5  0x00000000013cef2f in internal_error (
    file=0x14cf880 "/home/vries/gdb_versions/devel/src/gdb/dwarf2/read.h", 
    line=298, fmt=0x14cf850 "%s: Assertion `%s' failed.")
    at /home/vries/gdb_versions/devel/src/gdbsupport/errors.cc:58
#6  0x00000000006b1b37 in dwarf2_per_cu_data::length (this=0x369e3a0)
    at /home/vries/gdb_versions/devel/src/gdb/dwarf2/read.h:298
#7  0x00000000007121d2 in dwarf2_find_containing_comp_unit (
    sect_off=(unknown: 0xa5), offset_in_dwz=0, 
    all_comp_units=std::vector of length 9, capacity 9 = {...})
    at /home/vries/gdb_versions/devel/src/gdb/dwarf2/read.c:23558
#8  0x0000000000712280 in dwarf2_find_containing_comp_unit (
    sect_off=(unknown: 0xa5), offset_in_dwz=0, per_bfd=0x369cf80)
    at /home/vries/gdb_versions/devel/src/gdb/dwarf2/read.c:23576
#9  0x00000000006ec16b in process_imported_unit_die (die=0x36bdc50,
cu=0x2d26d00)
    at /home/vries/gdb_versions/devel/src/gdb/dwarf2/read.c:8577
#10 0x00000000006ec6c8 in process_die (die=0x36bdc50, cu=0x2d26d00)
    at /home/vries/gdb_versions/devel/src/gdb/dwarf2/read.c:8735
#11 0x00000000006ee4f4 in read_file_scope (die=0x36bdb50, cu=0x2d26d00)
    at /home/vries/gdb_versions/devel/src/gdb/dwarf2/read.c:9642
#12 0x00000000006ec448 in process_die (die=0x36bdb50, cu=0x2d26d00)
    at /home/vries/gdb_versions/devel/src/gdb/dwarf2/read.c:8643
#13 0x00000000006ebbcc in process_full_comp_unit (cu=0x2d26d00, 
    pretend_language=language_minimal)
    at /home/vries/gdb_versions/devel/src/gdb/dwarf2/read.c:8412
#14 0x00000000006e91f6 in process_queue (per_objfile=0x2d28540)
    at /home/vries/gdb_versions/devel/src/gdb/dwarf2/read.c:7658
#15 0x00000000006db090 in dw2_do_instantiate_symtab (per_cu=0x369e420, 
    per_objfile=0x2d28540, skip_partial=false)
    at /home/vries/gdb_versions/devel/src/gdb/dwarf2/read.c:2063
#16 0x00000000006db139 in dw2_instantiate_symtab (per_cu=0x369e420, 
    per_objfile=0x2d28540, skip_partial=false)
    at /home/vries/gdb_versions/devel/src/gdb/dwarf2/read.c:2085
...

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

  reply	other threads:[~2022-09-14  8:30 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-09-14  8:28 [Bug symtab/29572] New: " vries at gcc dot gnu.org
2022-09-14  8:30 ` vries at gcc dot gnu.org [this message]
2022-09-14  8:31 ` [Bug symtab/29572] " vries at gcc dot gnu.org
2022-09-14  9:52 ` vries at gcc dot gnu.org
2022-09-14  9:53 ` vries at gcc dot gnu.org
2022-09-14 12:30 ` vries at gcc dot gnu.org
2022-09-14 13:02 ` vries at gcc dot gnu.org
2022-09-14 13:50 ` vries at gcc dot gnu.org
2022-09-14 15:49 ` vries at gcc dot gnu.org
2023-07-20 12:44 ` vries at gcc dot gnu.org
2023-08-10 13:46 ` cvs-commit at gcc dot gnu.org
2023-12-06  9:29 ` cvs-commit at gcc dot gnu.org
2023-12-06  9:35 ` vries at gcc dot gnu.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-29572-4717-SwiPagcWoq@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).