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/29561] New: [gdb/symtab] During symbol reading: file index out of range
Date: Thu, 08 Sep 2022 12:13:42 +0000	[thread overview]
Message-ID: <bug-29561-4717@http.sourceware.org/bugzilla/> (raw)

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

            Bug ID: 29561
           Summary: [gdb/symtab] During symbol reading: file index out of
                    range
           Product: gdb
           Version: HEAD
            Status: NEW
          Severity: normal
          Priority: P2
         Component: symtab
          Assignee: unassigned at sourceware dot org
          Reporter: vries at gcc dot gnu.org
  Target Milestone: ---

Fairly simple test-case:
...
$ gcc -g ~/hello.c
...

With gdb build from trunk:
...
$ gdb -q -batch -iex "set complaints 100" ./a.out  -ex "maint expand-symtabs"
During symbol reading: file index out of range
$
...

With system gdb (11.1):
...
$ gdb -q -batch -iex "set complaints 100" ./a.out  -ex "maint expand-symtabs" 
$
...

DIE that is complained about is:
...
 <1><4b>: Abbrev Number: 2 (DW_TAG_variable)
    <4c>   DW_AT_name        : _IO_stdin_used
    <50>   DW_AT_decl_file   : 1
    <51>   DW_AT_decl_line   : 23
    <52>   DW_AT_type        : <0x67>
    <56>   DW_AT_external    : 1
    <56>   DW_AT_location    : 9 byte block: 3 70 5 40 0 0 0 0 0       
(DW_OP_addr: 400570)
...

Referring to file/dir info:
...
 The Directory Table is empty.

 The File Name Table (offset 0x78):
  Entry Dir     Time    Size    Name
  1     0       0       0       init.c
...

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

             reply	other threads:[~2022-09-08 12:13 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-09-08 12:13 vries at gcc dot gnu.org [this message]
2022-09-08 12:17 ` [Bug symtab/29561] " vries at gcc dot gnu.org
2022-09-08 14:51 ` vries at gcc dot gnu.org
2022-09-08 15:24 ` vries at gcc dot gnu.org
2022-09-08 15:37 ` vries at gcc dot gnu.org
2022-09-08 17:33 ` vries at gcc dot gnu.org
2022-09-09  6:52 ` vries at gcc dot gnu.org
2022-09-17  6:28 ` 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-29561-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).