From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 7969C39450F3; Sun, 15 Mar 2020 02:24:27 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 7969C39450F3 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1584239067; bh=SxRb7hjm8DrHCgmkwKDZ6xg0q03UTCTqzOt9IAGFU4o=; h=From:To:Subject:Date:From; b=d0TCvxivbsntIhnsALSeFnKAEDpCorOfHp3ZU2dR7wxCcNGklt6VJ5v5vAXnD85/g MaT78cmEEYW8eQUDDfb0PPDL40ubG+SvqpWt3LJQhp+c1pZGykTrvpTCNVOZ5GTSLH tySwPpRuuwfz/qg4p9664eQnAuYha9JDXADEy6R0= From: "klkblake at gmail dot com" To: gdb-prs@sourceware.org Subject: [Bug symtab/25678] New: gdb crashes with "internal-error: sect_index_text not initialized" when .text missing and >2 segments Date: Sun, 15 Mar 2020 02:24:27 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: symtab X-Bugzilla-Version: unknown X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: klkblake at gmail dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone attachments.created Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: gdb-prs@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb-prs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 15 Mar 2020 02:24:27 -0000 https://sourceware.org/bugzilla/show_bug.cgi?id=3D25678 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=3D12379&action=3Ded= it 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 < ... GNU gdb (GDB) 10.0.50.20200307-git ... ... Reading symbols from ./a.out... (gdb) r Starting program: /tmp/a.out=20 ../../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) --=20 You are receiving this mail because: You are on the CC list for the bug.=