From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 3AC7F3858412; Mon, 28 Aug 2023 14:27:39 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 3AC7F3858412 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1693232859; bh=hsun+iRqbAFPR48pFq0indqCLBERglOVbXLiRg4e7jk=; h=From:To:Subject:Date:In-Reply-To:References:From; b=bJfUvnRl911A+GpttPT6w9X9vnK0VD/Ysw+oXkg9IADhduh7+WgwBSXH5hgmzlPlS Uv9xI3eL3AKlRmYjbVbKVtw0XKoLPKd31FF89VDngwfODU2xswsYlflWg+1f1IDfeq ouSyJzztdR4vWZGeFuAg396SGqt7fllNrAjnDs5Y= From: "cvs-commit at gcc dot gnu.org" To: gdb-prs@sourceware.org Subject: [Bug symtab/30799] [gdb/symtab] hang in inherit_abstract_dies Date: Mon, 28 Aug 2023 14:27:39 +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: cvs-commit 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 List-Id: https://sourceware.org/bugzilla/show_bug.cgi?id=3D30799 --- Comment #3 from cvs-commit at gcc dot gnu.org --- The master branch has been updated by Tom de Vries : https://sourceware.org/git/gitweb.cgi?p=3Dbinutils-gdb.git;h=3D8d83f51b9107= 2bc3d79061eba7e564ba9be6afd7 commit 8d83f51b91072bc3d79061eba7e564ba9be6afd7 Author: Tom de Vries Date: Mon Aug 28 16:27:58 2023 +0200 [gdb/symtab] Handle self-reference in inherit_abstract_dies Building gdb with gcc 7.5.0 and -flto -O2 -flto-partition=3Done generat= es a self-referencing DIE: ... <2><91dace>: Abbrev Number: 405 (DW_TAG_label) <91dad0> DW_AT_abstract_origin: <0x91dace> ... When encountering the self-reference DIE in inherit_abstract_dies we lo= op following the abstract origin, effectively hanging gdb. Fix this by handling self-referencing DIEs in the loop in inherit_abstract_dies. Tested on x86_64-linux. Approved-By: Tom Tromey PR symtab/30799 https://sourceware.org/bugzilla/show_bug.cgi?id=3D30799 --=20 You are receiving this mail because: You are on the CC list for the bug.=