From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 5D4E3384B826; Mon, 1 Feb 2021 14:45:22 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 5D4E3384B826 From: "vries at gcc dot gnu.org" To: gdb-prs@sourceware.org Subject: [Bug symtab/24620] [cc-with-gdb-index] SIGSEGV in write_one_signatured_type in fission-reread Date: Mon, 01 Feb 2021 14:45:22 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: symtab X-Bugzilla-Version: HEAD X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: vries at gcc dot gnu.org X-Bugzilla-Status: NEW 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: Message-ID: In-Reply-To: References: 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: Mon, 01 Feb 2021 14:45:22 -0000 https://sourceware.org/bugzilla/show_bug.cgi?id=3D24620 --- Comment #5 from Tom de Vries --- (In reply to Tom de Vries from comment #3) > This fixes it: > ... > diff --git a/gdb/testsuite/gdb.dwarf2/fission-reread.S > b/gdb/testsuite/gdb.dwarf2/fiss > ion-reread.S > index 92087aa7ad9..c0d8545969c 100644 > --- a/gdb/testsuite/gdb.dwarf2/fission-reread.S > +++ b/gdb/testsuite/gdb.dwarf2/fission-reread.S > @@ -143,7 +143,7 @@ SYMBOL(main): > .4byte 0 /* Offset to Type DIE */ > .uleb128 0x2 /* (DIE (0) DW_TAG_type_unit) */ > .ascii "/tmp/src/gdb/testsuite\0" /* DW_AT_comp_dir */ > - .ascii "fission-reread.dwo\0" /* DW_AT_GNU_dwo_name */ > + .ascii "outputs/gdb.dwarf2/fission-reread/fission-reread.dwo\0" /* > DW_AT_GNU_ > dwo_name */ > .4byte .Ldebug_pubnames0 /* DW_AT_GNU_pubnames */ > .4byte .Ldebug_pubtypes0 /* DW_AT_GNU_pubtypes */ > .4byte .Ldebug_addr0 /* DW_AT_GNU_addr_base */ > @@ -214,7 +214,7 @@ SYMBOL(main): > .4byte .Letext0-.Ltext0 /* DW_AT_high_pc */ > .4byte .Ldebug_line0 /* DW_AT_stmt_list */ > .ascii "/tmp/src/gdb/testsuite\0" /* DW_AT_comp_dir */ > - .ascii "fission-reread.dwo\0" /* DW_AT_GNU_dwo_name */ > + .ascii "outputs/gdb.dwarf2/fission-reread/fission-reread.dwo\0" /* > DW_AT_GNU_ > dwo_name */ > .4byte .Ldebug_pubnames0 /* DW_AT_GNU_pubnames */ > .4byte .Ldebug_pubtypes0 /* DW_AT_GNU_pubtypes */ > .4byte .Ldebug_addr0 /* DW_AT_GNU_addr_base */ > ... >=20 > Basically commit c2b2ccc5edd "Make more robust when run in parallel mode" > strips the directory from DW_AT_GNU_dwo_name, and counteracts this using > "set debug-file-directory". >=20 > That setting is not active however during > build_executable_from_fission_assembler, which (when using target board > cc-with-gdb-index) is when gdb is called to generate gdb-index. >=20 > So, we try to generate a gdb-index for an executable which links to a .dwo > file that we can't find, and we run into the segfault. Patch fixing test-cases submitted: https://sourceware.org/pipermail/gdb-patches/2021-February/175665.html --=20 You are receiving this mail because: You are on the CC list for the bug.=