public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug symtab/25678] New: gdb crashes with "internal-error: sect_index_text not initialized" when .text missing and >2 segments
@ 2020-03-15  2:24 klkblake at gmail dot com
  2020-04-02 10:12 ` [Bug symtab/25678] " thravran.qathy at gmail dot com
                   ` (15 more replies)
  0 siblings, 16 replies; 17+ messages in thread
From: klkblake at gmail dot com @ 2020-03-15  2:24 UTC (permalink / raw)
  To: gdb-prs

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

            Bug ID: 25678
           Summary: gdb crashes with "internal-error: sect_index_text not
                    initialized" when .text missing and >2 segments
           Product: gdb
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: symtab
          Assignee: unassigned at sourceware dot org
          Reporter: klkblake at gmail dot com
  Target Milestone: ---

Created attachment 12379
  --> https://sourceware.org/bugzilla/attachment.cgi?id=12379&action=edit
testcase for sect_index_text crash

When loading a shared library that has no .text section, and does not have
either 1 or 2 segments, gdb will fail with "internal-error: sect_index_text not
initialized". I've attached a minimal testcase.

$ cat >test.c <<EOF
int main() {}
EOF
$ gcc test.c ./libtestcase.so
$ gdb ./a.out
... <snip> ...
GNU gdb (GDB) 10.0.50.20200307-git
... <snip> ...
Reading symbols from ./a.out...
(gdb) r
Starting program: /tmp/a.out 
../../gdb/objfiles.h:524: internal-error: sect_index_text not initialized
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] 17+ messages in thread

end of thread, other threads:[~2024-01-14  4:45 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-03-15  2:24 [Bug symtab/25678] New: gdb crashes with "internal-error: sect_index_text not initialized" when .text missing and >2 segments klkblake at gmail dot com
2020-04-02 10:12 ` [Bug symtab/25678] " thravran.qathy at gmail dot com
2020-04-02 10:17 ` thravran.qathy at gmail dot com
2020-04-02 15:51 ` keiths at redhat dot com
2020-04-10 16:14 ` thravran.qathy at gmail dot com
2020-05-14 20:05 ` mlimber at gmail dot com
2020-05-16 19:22 ` simark at simark dot ca
2020-05-27  7:58 ` slyfox at inbox dot ru
2020-05-27  8:03 ` slyfox at inbox dot ru
2020-09-19 18:49 ` cebtenzzre at gmail dot com
2020-09-19 19:40 ` cebtenzzre at gmail dot com
2020-09-20  1:31 ` simark at simark dot ca
2020-10-08  9:15 ` napth at protonmail dot com
2023-04-11 21:58 ` jreiser at BitWagon dot com
2023-08-25 16:48 ` dilfridge at gentoo dot org
2024-01-14  4:45 ` sam at gentoo dot org
2024-01-14  4:45 ` sam at gentoo 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).