From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 145FE3858D39; Sun, 17 Mar 2024 22:01:34 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 145FE3858D39 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1710712894; bh=1uCcmQdRPv6dJIaFXNepbQPGL3eU9NXaT6G06QMNw34=; h=From:To:Subject:Date:In-Reply-To:References:From; b=YR/AKK3SnBAZdNiac+kq3Az/ObLZjQYG5ne4RAy9PFVezCWVFpdrq/3oa0SCTB5Yr LASCg1KZQIK0bvU1f9frdRk5RLLAvJXnX0DXXjTkjU4GPuBQ7Rqg0UOdFrPrP7uRRF k17e4eJJ4KCz45OGXE32M0WodTb1OtVaOdlyFvdQ= From: "tromey at sourceware dot org" To: gdb-prs@sourceware.org Subject: [Bug gdb/31497] gdb internal fatal error while opening a core dump; binary built with '-gsplit-dwarf' Date: Sun, 17 Mar 2024 22:01:33 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: gdb X-Bugzilla-Version: HEAD X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: tromey at sourceware dot org 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: 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=3D31497 --- Comment #3 from Tom Tromey --- Re-reading is no problem, section::read is idempotent. I wonder if we have enough information to write a test case. >From the stack trace I'd guess this is happening during symtab expansion. So the core file shouldn't be needed, it might reproduce with just any old small test case with the appropriate compiler & flags, and "gdb -readnow"... If you want to send it as a gdb patch, see: https://sourceware.org/gdb/wiki/ContributionChecklist FWIW I think gdb should move away from lazily reading section info and back toward reading it when the file is opened. This would also eliminate this bug. --=20 You are receiving this mail because: You are on the CC list for the bug.=